summaryrefslogtreecommitdiff
path: root/src/analysis/disass/rank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/disass/rank.c')
-rw-r--r--src/analysis/disass/rank.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/src/analysis/disass/rank.c b/src/analysis/disass/rank.c
index 2ad1cdf..9b9f29e 100644
--- a/src/analysis/disass/rank.c
+++ b/src/analysis/disass/rank.c
@@ -177,11 +177,7 @@ static bool rank_flow_block(GFlowBlock *block, BlockVisitOrder order, const GIns
/******************************************************************************
* *
-* Paramètres : list = ensemble d'instructions à relier. *
-* routines = prototypes existants à insérer. *
-* count = quantité de ces prototypes. *
-* statusbar = barre de statut avec progression à mettre à jour.*
-* id = identifiant du message affiché à l'utilisateur. *
+* Paramètres : routine = routine regroupant les blocs à traiter. *
* *
* Description : Classe les blocs des routines. *
* *
@@ -191,24 +187,22 @@ static bool rank_flow_block(GFlowBlock *block, BlockVisitOrder order, const GIns
* *
******************************************************************************/
-void rank_routines_blocks(GBinRoutine **routines, size_t count, GtkExtStatusBar *statusbar, bstatus_id_t id)
+void rank_routine_blocks(GBinRoutine *routine)
{
- size_t i; /* Boucle de parcours */
GInstrBlock *main_block; /* Ensemble des blocs d'instr. */
- for (i = 0; i < count; i++)
- {
- main_block = g_binary_routine_get_basic_blocks(routines[i]);
+ main_block = g_binary_routine_get_basic_blocks(routine);
- if (main_block == NULL) continue;
+ if (main_block == NULL) return;
- g_instr_block_visit(main_block, (instr_block_visitor_cb)rank_flow_block, main_block);
+ g_instr_block_visit(main_block, (instr_block_visitor_cb)rank_flow_block, main_block);
+#if 0
- printf("===== BLOCK(S) xXXx ======\n");
+ printf("===== BLOCK(S) xXXx ======\n");
bool visit_ranked_block(GInstrBlock *blk, BlockVisitOrder order, int *indent)
@@ -259,16 +253,9 @@ void rank_routines_blocks(GBinRoutine **routines, size_t count, GtkExtStatusBar
printf("\n");
+#endif
-
-
-
-
-
-
- }
-
}