diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-04-20 12:13:33 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-04-20 12:13:39 (GMT) |
commit | 7e945d90b17b58832f561cce8ce778abcd4a360f (patch) | |
tree | d8e121d1d056eb7f666d6d3a38c4b3b3d2be6332 | |
parent | 14d17285cdfae2fe6bd7df0e873ef11ef876e12c (diff) |
Counted available references between instructions.
-rw-r--r-- | plugins/pychrysalide/arch/instruction.c | 1 | ||||
-rw-r--r-- | src/arch/instruction.h | 4 |
2 files changed, 4 insertions, 1 deletions
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; |