summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/plugin.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-13 21:53:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-13 21:53:43 (GMT)
commitccf90bf696a0852ef34ac2a86137b34e92827ec0 (patch)
treed43c65faf4316d8a55d67c74f363f3f4371068cd /plugins/pychrysalide/plugin.c
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/plugin.c')
-rw-r--r--plugins/pychrysalide/plugin.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/plugins/pychrysalide/plugin.c b/plugins/pychrysalide/plugin.c
index fb2044d..6b6060d 100644
--- a/plugins/pychrysalide/plugin.c
+++ b/plugins/pychrysalide/plugin.c
@@ -742,34 +742,34 @@ static bool py_plugin_module_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, PGA_BASIC_NONE);
-
- result &= PyDict_AddIntMacro(obj_type, PGA_PLUGIN_INIT);
- result &= PyDict_AddIntMacro(obj_type, PGA_PLUGIN_EXIT);
-
- result &= PyDict_AddIntMacro(obj_type, PGA_CONTENT_EXPLORER);
- result &= PyDict_AddIntMacro(obj_type, PGA_CONTENT_RESOLVER);
- result &= PyDict_AddIntMacro(obj_type, PGA_CONTENT_ANALYZED);
-
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ANALYSIS_STARTED);
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_PRELOAD);
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ATTACH_DEBUG);
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_ANALYSIS_ENDED);
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_STARTED);
- result &= PyDict_AddIntMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_ENDED);
-
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_STARTED);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_RAW);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_HOOKED_LINK);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_HOOKED_POST);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_LIMITED);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_LOOPS);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_LINKED);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_GROUPED);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_RANKED);
- result &= PyDict_AddIntMacro(obj_type, PGA_DISASSEMBLY_ENDED);
-
- result &= PyDict_AddIntMacro(obj_type, PGA_DETECTION_OBFUSCATORS);
+ result &= PyDict_AddULongMacro(obj_type, PGA_BASIC_NONE);
+
+ result &= PyDict_AddULongMacro(obj_type, PGA_PLUGIN_INIT);
+ result &= PyDict_AddULongMacro(obj_type, PGA_PLUGIN_EXIT);
+
+ result &= PyDict_AddULongMacro(obj_type, PGA_CONTENT_EXPLORER);
+ result &= PyDict_AddULongMacro(obj_type, PGA_CONTENT_RESOLVER);
+ result &= PyDict_AddULongMacro(obj_type, PGA_CONTENT_ANALYZED);
+
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_ANALYSIS_STARTED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_PRELOAD);
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_ATTACH_DEBUG);
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_ANALYSIS_ENDED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_STARTED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_FORMAT_POST_ANALYSIS_ENDED);
+
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_STARTED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_RAW);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_HOOKED_LINK);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_HOOKED_POST);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_LIMITED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_LOOPS);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_LINKED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_GROUPED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_RANKED);
+ result &= PyDict_AddULongMacro(obj_type, PGA_DISASSEMBLY_ENDED);
+
+ result &= PyDict_AddULongMacro(obj_type, PGA_DETECTION_OBFUSCATORS);
return result;