diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/routine.c | 28 | ||||
-rw-r--r-- | src/analysis/routine.h | 3 | ||||
-rw-r--r-- | src/analysis/variable.c | 4 |
3 files changed, 32 insertions, 3 deletions
diff --git a/src/analysis/routine.c b/src/analysis/routine.c index 651b7c6..b4fc51f 100644 --- a/src/analysis/routine.c +++ b/src/analysis/routine.c @@ -140,6 +140,32 @@ GBinRoutine *g_binary_routine_new(void) } + +/****************************************************************************** +* * +* Paramètres : type = type mis en place par la future routine. * +* * +* Description : Crée une représentation de routine construisant une instance.* +* * +* Retour : Adresse de la structure mise en place. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GBinRoutine *g_binary_routine_new_constructor(GOpenidaType *type) +{ + GBinRoutine *result; /* Structure à retourner */ + + result = g_object_new(G_TYPE_BIN_ROUTINE, NULL); + + g_binary_routine_set_name(result, _g_openida_type_to_string(type, true)); + + return result; + +} + + /****************************************************************************** * * * Paramètres : routine = routine à effacer. * @@ -896,7 +922,7 @@ void g_binary_routine_print_code(const GBinRoutine *routine, GLangOutput *lang, len = 3; } - g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, len, RTT_RAW); + g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, len, RTT_COMMENT); diff --git a/src/analysis/routine.h b/src/analysis/routine.h index 59569fb..8a5085b 100644 --- a/src/analysis/routine.h +++ b/src/analysis/routine.h @@ -76,6 +76,9 @@ GType g_bin_routine_get_type(void); /* Crée une représentation de routine. */ GBinRoutine *g_binary_routine_new(void); +/* Crée une représentation de routine construisant une instance. */ +GBinRoutine *g_binary_routine_new_constructor(GOpenidaType *); + /* Etablit la comparaison ascendante entre deux routines. */ int g_binary_routine_compare(const GBinRoutine **, const GBinRoutine **); diff --git a/src/analysis/variable.c b/src/analysis/variable.c index 932d165..2da691d 100644 --- a/src/analysis/variable.c +++ b/src/analysis/variable.c @@ -251,12 +251,12 @@ char *g_binary_variable_to_string(const GBinVariable *var, bool simple) { char *result; /* Valeur à retourner */ - result = _g_openida_type_to_string(var->type, simple); + result = strdup(""); /* FIXME : arg _g_openida_type_to_string(var->type, simple);*/ if (var->name != NULL) { if (!g_openida_type_is_pointer(var->type, true)) - result = stradd(result, " "); + /*result = stradd(result, " ")*/; result = stradd(result, var->name); |