From 7b3364f3af43961df7c5c7bcd0fe7407e944f16f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 3 Jan 2016 23:58:48 +0100 Subject: Removed deprecated direct management of routines. --- ChangeLog | 6 +++++ src/format/format.c | 70 ----------------------------------------------------- src/format/format.h | 6 ----- 3 files changed, 6 insertions(+), 76 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4061e1..4fe2f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +16-01-03 Cyrille Bagard + + * src/format/format.c: + * src/format/format.h: + Remove deprecated direct management of routines. + 15-12-29 Cyrille Bagard * src/format/format.c: diff --git a/src/format/format.c b/src/format/format.c index 63c4deb..dd70281 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -826,76 +826,6 @@ bool g_binary_format_resolve_symbol(const GBinFormat *format, const vmpa2t *addr /****************************************************************************** * * -* Paramètres : format = informations chargées à compléter. * -* routine = routine à ajouter à la liste. * -* * -* Description : Ajoute une routine à la collection du format binaire. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -void g_binary_format_add_routine(GBinFormat *format, GBinRoutine *routine) -{ - format->routines = (GBinRoutine **)realloc(format->routines, - ++format->routines_count * sizeof(GBinRoutine *)); - - format->routines[format->routines_count - 1] = routine; - -} - - -/****************************************************************************** -* * -* Paramètres : format = informations chargées à compléter. * -* routine = routine à ajouter à la liste. * -* * -* Description : Retire une routine de la collection du format binaire. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -void g_binary_format_remove_routine(GBinFormat *format, GBinRoutine *routine) -{ - size_t index; /* Indice trouvé à utiliser */ - size_t i; /* Boucle de parcours */ - GBinSymbol *symbol; /* Symbole en cours d'analyse */ - - index = format->symbols_count; - - for (i = 0; i < format->symbols_count && index == format->symbols_count; i++) - { - symbol = format->symbols[i]; - - switch (g_binary_symbol_get_target_type(symbol)) - { - case STP_ROUTINE: - case STP_ENTRY_POINT: - - if (g_binary_symbol_get_routine(symbol) == routine) - index = i; - - break; - - default: - break; - - } - - } - - _g_binary_format_remove_symbol(format, index); - -} - - -/****************************************************************************** -* * * Paramètres : format = informations chargées à consulter. * * count = taille du tableau créé. [OUT] * * * diff --git a/src/format/format.h b/src/format/format.h index 18dfda1..b1f0110 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -95,12 +95,6 @@ bool g_binary_format_find_next_symbol_at(const GBinFormat *, const vmpa2t *, GBi /* Recherche le symbole correspondant à une adresse. */ bool g_binary_format_resolve_symbol(const GBinFormat *, const vmpa2t *, GBinSymbol **, phys_t *); -/* Ajoute une routine à la collection du format binaire. */ -void g_binary_format_add_routine(GBinFormat *, GBinRoutine *) __attribute__ ((deprecated)); - -/* Retire une routine de la collection du format binaire. */ -void g_binary_format_remove_routine(GBinFormat *, GBinRoutine *); - /* Fournit le prototype de toutes les routines détectées. */ GBinRoutine **g_binary_format_get_routines(const GBinFormat *, size_t *); -- cgit v0.11.2-87-g4458