diff options
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/immediate.c | 12 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/instruction.c | 18 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/module.c | 46 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/processor.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/vmpa.c | 4 |
5 files changed, 42 insertions, 42 deletions
diff --git a/plugins/pychrysalide/arch/immediate.c b/plugins/pychrysalide/arch/immediate.c index 5ee2d41..4c538e4 100644 --- a/plugins/pychrysalide/arch/immediate.c +++ b/plugins/pychrysalide/arch/immediate.c @@ -579,12 +579,12 @@ static bool py_imm_operand_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, IOD_BIN); - result &= PyDict_AddIntMacro(obj_type, IOD_OCT); - result &= PyDict_AddIntMacro(obj_type, IOD_DEC); - result &= PyDict_AddIntMacro(obj_type, IOD_HEX); - result &= PyDict_AddIntMacro(obj_type, IOD_CHAR); - result &= PyDict_AddIntMacro(obj_type, IOD_COUNT); + result &= PyDict_AddULongMacro(obj_type, IOD_BIN); + result &= PyDict_AddULongMacro(obj_type, IOD_OCT); + result &= PyDict_AddULongMacro(obj_type, IOD_DEC); + result &= PyDict_AddULongMacro(obj_type, IOD_HEX); + result &= PyDict_AddULongMacro(obj_type, IOD_CHAR); + result &= PyDict_AddULongMacro(obj_type, IOD_COUNT); return result; diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c index 6399d63..ce554ee 100644 --- a/plugins/pychrysalide/arch/instruction.c +++ b/plugins/pychrysalide/arch/instruction.c @@ -443,15 +443,15 @@ static bool py_arch_instruction_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, ILT_EXEC_FLOW); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP); - result &= PyDict_AddIntMacro(obj_type, ILT_CASE_JUMP); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_TRUE); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_FALSE); - result &= PyDict_AddIntMacro(obj_type, ILT_LOOP); - result &= PyDict_AddIntMacro(obj_type, ILT_CALL); - result &= PyDict_AddIntMacro(obj_type, ILT_CATCH_EXCEPTION); - result &= PyDict_AddIntMacro(obj_type, ILT_REF); + result &= PyDict_AddULongMacro(obj_type, ILT_EXEC_FLOW); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP); + result &= PyDict_AddULongMacro(obj_type, ILT_CASE_JUMP); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_TRUE); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_FALSE); + result &= PyDict_AddULongMacro(obj_type, ILT_LOOP); + result &= PyDict_AddULongMacro(obj_type, ILT_CALL); + result &= PyDict_AddULongMacro(obj_type, ILT_CATCH_EXCEPTION); + result &= PyDict_AddULongMacro(obj_type, ILT_REF); return result; diff --git a/plugins/pychrysalide/arch/module.c b/plugins/pychrysalide/arch/module.c index db514ef..40b8d71 100644 --- a/plugins/pychrysalide/arch/module.c +++ b/plugins/pychrysalide/arch/module.c @@ -69,25 +69,25 @@ static bool py_base_define_constants(PyTypeObject *obj_type) result = true; - if (result) result = PyDict_AddIntMacro(obj_type, MDS_UNDEFINED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS_UNSIGNED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS_SIGNED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_UNDEFINED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_UNSIGNED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_SIGNED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS); /** * Comme il existe déjà le module struct, de nouvelles primitives de @@ -97,10 +97,10 @@ static bool py_base_define_constants(PyTypeObject *obj_type) * pour exporter les constantes suivantes. */ - if (result) result = PyDict_AddIntMacro(obj_type, SRE_LITTLE); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_LITTLE_WORD); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_BIG_WORD); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_BIG); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE_WORD); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG_WORD); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG); return result; diff --git a/plugins/pychrysalide/arch/processor.c b/plugins/pychrysalide/arch/processor.c index 2ecf6b8..115f980 100644 --- a/plugins/pychrysalide/arch/processor.c +++ b/plugins/pychrysalide/arch/processor.c @@ -850,8 +850,8 @@ static bool define_python_arch_processor_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, APE_DISASSEMBLY); - result &= PyDict_AddIntMacro(obj_type, APE_LABEL); + result &= PyDict_AddULongMacro(obj_type, APE_DISASSEMBLY); + result &= PyDict_AddULongMacro(obj_type, APE_LABEL); return result; diff --git a/plugins/pychrysalide/arch/vmpa.c b/plugins/pychrysalide/arch/vmpa.c index f2450bb..b89c3d7 100644 --- a/plugins/pychrysalide/arch/vmpa.c +++ b/plugins/pychrysalide/arch/vmpa.c @@ -535,8 +535,8 @@ static bool py_vmpa_define_constants(PyTypeObject *obj_type) result = true; - if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_PHYSICAL); - if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_VIRTUAL); + if (result) result = PyDict_AddULongMacro(obj_type, VMPA_NO_PHYSICAL); + if (result) result = PyDict_AddULongMacro(obj_type, VMPA_NO_VIRTUAL); return result; |