summaryrefslogtreecommitdiff
path: root/plugins/dex
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/dex
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/dex')
-rw-r--r--plugins/dex/python/constants.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/dex/python/constants.c b/plugins/dex/python/constants.c
index ac50eb8..3e77fd6 100644
--- a/plugins/dex/python/constants.c
+++ b/plugins/dex/python/constants.c
@@ -56,25 +56,25 @@ static bool define_python_dex_format_common_constants(PyTypeObject *obj_type)
/* Définition des drapeaux d'accès */
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_PUBLIC);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_PRIVATE);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_PROTECTED);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_STATIC);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_FINAL);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_SYNCHRONIZED);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_VOLATILE);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_BRIDGE);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_TRANSIENT);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_VARARGS);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_NATIVE);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_INTERFACE);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_ABSTRACT);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_STRICT);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_SYNTHETIC);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_ANNOTATION);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_ENUM);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_CONSTRUCTOR);
- if (result) result = PyDict_AddIntMacro(obj_type, ACC_DECLARED_SYNCHRONIZED);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_PUBLIC);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_PRIVATE);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_PROTECTED);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_STATIC);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_FINAL);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_SYNCHRONIZED);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_VOLATILE);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_BRIDGE);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_TRANSIENT);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_VARARGS);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_NATIVE);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_INTERFACE);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_ABSTRACT);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_STRICT);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_SYNTHETIC);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_ANNOTATION);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_ENUM);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_CONSTRUCTOR);
+ if (result) result = PyDict_AddULongMacro(obj_type, ACC_DECLARED_SYNCHRONIZED);
return result;