summaryrefslogtreecommitdiff
path: root/src/decomp/instruction-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/decomp/instruction-int.h')
-rw-r--r--src/decomp/instruction-int.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/decomp/instruction-int.h b/src/decomp/instruction-int.h
index 9b29162..f0c503b 100644
--- a/src/decomp/instruction-int.h
+++ b/src/decomp/instruction-int.h
@@ -32,7 +32,10 @@
/* Visite un ensemble hiérarchique d'instructions décompilées. */
-typedef void (* dec_instr_visit_fc) (GDecInstruction *, process_decomp_fc, void *, bool);
+typedef bool (* dec_instr_visit_fc) (GDecInstruction *, dec_instr_visitor_cb, DecInstrVisitFlags, void *);
+
+/* Remplace une instruction décompilée par une autre. */
+typedef bool (* dec_instr_replace_fc) (GDecInstruction *, GDecInstruction *, GDecInstruction *);
/* Imprime pour l'écran un version humaine d'une instruction. */
typedef GBufferLine * (* dec_instr_print_fc) (const GDecInstruction *, GCodeBuffer *, GBufferLine *, GLangOutput *);
@@ -48,6 +51,7 @@ struct _GDecInstruction
vmpa_t address; /* Position associée */
dec_instr_visit_fc visit; /* Visite des instructions */
+ dec_instr_replace_fc replace; /* Remplacement à la volée */
dec_instr_print_fc print; /* Impression pour à l'écran */
};