diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-26 18:18:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-26 18:18:35 (GMT) |
commit | c951852890ce173c4d65450157d42127da2d061c (patch) | |
tree | e5de7f1de2f5c775f2c52db20641d8af35590086 /plugins/pychrysalide/arch/vmpa.c | |
parent | a5974124ce05dc7ee58a4e80809aa5e090692758 (diff) |
Changed the Python module exporting endianness values.
Diffstat (limited to 'plugins/pychrysalide/arch/vmpa.c')
-rw-r--r-- | plugins/pychrysalide/arch/vmpa.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/pychrysalide/arch/vmpa.c b/plugins/pychrysalide/arch/vmpa.c index abca73f..cdf20c9 100644 --- a/plugins/pychrysalide/arch/vmpa.c +++ b/plugins/pychrysalide/arch/vmpa.c @@ -39,7 +39,6 @@ -#include <common/endianness.h> /* TODO : à bouger vers base ? */ @@ -536,14 +535,8 @@ static bool py_vmpa_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, VMPA_NO_PHYSICAL); - result &= PyDict_AddIntMacro(obj_type, VMPA_NO_VIRTUAL); - - /* TODO : à bouger vers base ? */ - result &= PyDict_AddIntMacro(obj_type, SRE_LITTLE); - result &= PyDict_AddIntMacro(obj_type, SRE_LITTLE_WORD); - result &= PyDict_AddIntMacro(obj_type, SRE_BIG_WORD); - result &= PyDict_AddIntMacro(obj_type, SRE_BIG); + if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_PHYSICAL); + if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_VIRTUAL); return result; |