diff options
Diffstat (limited to 'src/decomp/context-int.h')
-rw-r--r-- | src/decomp/context-int.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/decomp/context-int.h b/src/decomp/context-int.h index 8139077..7e5b1b0 100644 --- a/src/decomp/context-int.h +++ b/src/decomp/context-int.h @@ -33,6 +33,9 @@ +/* Duplique un contexte de compilation. */ +typedef GDecContext * (* dup_dec_context_fc) (GDecContext *); + /* Convertit un registre machine en un pseudo-registre. */ typedef GDecInstruction * (* convert_register_fc) (GDecContext *, gpointer, bool); @@ -42,13 +45,14 @@ struct _GDecContext { GObject parent; /* A laisser en premier */ + dup_dec_context_fc dup; /* Duplication de contexte */ + convert_register_fc convert_reg; /* Traduction des registres */ + GExeFormat *format; /* Format binaire concerné */ GBinRoutine *routine; /* Routine visée par l'opérat° */ GDecInstruction *list; /* Chaîne décompilée */ - convert_register_fc convert_reg; /* Traduction des registres */ - }; @@ -60,5 +64,9 @@ struct _GDecContextClass }; +/* Duplique partiellement un contexte de compilation. */ +void _g_dec_context_dup(GDecContext *, GDecContext *); + + #endif /* _DECOMP_CONTEXT_INT_H */ |