diff options
Diffstat (limited to 'src/analysis/routine.c')
-rw-r--r-- | src/analysis/routine.c | 28 |
1 files changed, 27 insertions, 1 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); |