summaryrefslogtreecommitdiff
path: root/src/decomp/instr/ite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/decomp/instr/ite.h')
-rw-r--r--src/decomp/instr/ite.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/decomp/instr/ite.h b/src/decomp/instr/ite.h
index 7137452..91c18ae 100644
--- a/src/decomp/instr/ite.h
+++ b/src/decomp/instr/ite.h
@@ -30,6 +30,7 @@
#include "../expression.h"
#include "../instruction.h"
+#include "../expr/cond.h"
@@ -53,11 +54,17 @@ typedef struct _GITEInstructionClass GITEInstructionClass;
GType g_ite_instruction_get_type(void);
/* Exprime un aiguillage du flux en fonction d'une condition. */
-GDecInstruction *g_ite_instruction_new(GDecExpression *, vmpa_t, vmpa_t);
+GDecInstruction *g_ite_instruction_new(GCondExpression *, vmpa_t, vmpa_t);
+
+/* Fournit la condition régissant la suite de l'exécution. */
+GCondExpression *g_ite_instruction_get_condition(const GITEInstruction *);
/* Détermine le corps des différentes branches possibles. */
void g_ite_instruction_set_branches(GITEInstruction *, GDecInstruction *, GDecInstruction *);
+/* Fournit le corps des différentes branches possibles. */
+void g_ite_instruction_get_branches(const GITEInstruction *, GDecInstruction **, GDecInstruction **);
+
#endif /* _DECOMP_INSTR_ITE_H */