From 7e945d90b17b58832f561cce8ce778abcd4a360f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sat, 20 Apr 2019 14:13:33 +0200 Subject: Counted available references between instructions. --- plugins/pychrysalide/arch/instruction.c | 1 + src/arch/instruction.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c index fb2df5b..1be3edb 100644 --- a/plugins/pychrysalide/arch/instruction.c +++ b/plugins/pychrysalide/arch/instruction.c @@ -864,6 +864,7 @@ static bool py_arch_instruction_define_constants(PyTypeObject *obj_type) result &= PyDict_AddULongMacro(obj_type, ILT_CALL); result &= PyDict_AddULongMacro(obj_type, ILT_CATCH_EXCEPTION); result &= PyDict_AddULongMacro(obj_type, ILT_REF); + result &= PyDict_AddULongMacro(obj_type, ILT_COUNT); return result; diff --git a/src/arch/instruction.h b/src/arch/instruction.h index 217e38b..cf9189b 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -206,7 +206,9 @@ typedef enum _InstructionLinkType ILT_LOOP, /* Retour en arrière (boucle) */ ILT_CALL, /* Appel d'une fonction */ ILT_CATCH_EXCEPTION, /* Gestion d'une exception */ - ILT_REF /* Simple référence croisée */ + ILT_REF, /* Simple référence croisée */ + + ILT_COUNT } InstructionLinkType; -- cgit v0.11.2-87-g4458