diff options
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/src/format/format.c b/src/format/format.c index 2101767..449f0f0 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -488,6 +488,32 @@ void g_binary_format_complete_analysis(GBinFormat *format, wgroup_id_t gid, GtkS /****************************************************************************** * * * Paramètres : format = format binaire à consulter pour l'opération. * +* * +* Description : Fournit le décodeur de symboles privilégié pour un format. * +* * +* Retour : Décodeur préféré ou NULL s'il n'est pas renseigné. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GCompDemangler *g_binary_format_get_demangler(const GBinFormat *format) +{ + GCompDemangler *result; /* Décodeur à retourner */ + + result = format->demangler; + + if (result != NULL) + g_object_ref(G_OBJECT(result)); + + return result; + +} + + +/****************************************************************************** +* * +* Paramètres : format = format binaire à consulter pour l'opération. * * desc = chaîne de caractères à décoder. * * * * Description : Décode une chaîne de caractères donnée en type. * @@ -503,7 +529,7 @@ GDataType *g_binary_format_decode_type(const GBinFormat *format, const char *des GDataType *result; /* Construction à remonter */ GCompDemangler *demangler; /* Accès plus lisible */ - demangler = G_BIN_FORMAT(format)->demangler; + demangler = format->demangler; if (demangler != NULL) result = g_compiler_demangler_decode_type(demangler, desc); @@ -533,7 +559,7 @@ GBinRoutine *g_binary_format_decode_routine(const GBinFormat *format, const char GBinRoutine *result; /* Construction à remonter */ GCompDemangler *demangler; /* Accès plus lisible */ - demangler = G_BIN_FORMAT(format)->demangler; + demangler = format->demangler; if (demangler != NULL) result = g_compiler_demangler_decode_routine(demangler, desc); |