summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis/types
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/analysis/types
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/analysis/types')
-rw-r--r--plugins/pychrysalide/analysis/types/basic.c58
-rw-r--r--plugins/pychrysalide/analysis/types/cse.c18
-rw-r--r--plugins/pychrysalide/analysis/types/encaps.c12
3 files changed, 44 insertions, 44 deletions
diff --git a/plugins/pychrysalide/analysis/types/basic.c b/plugins/pychrysalide/analysis/types/basic.c
index 1bb294b..e421389 100644
--- a/plugins/pychrysalide/analysis/types/basic.c
+++ b/plugins/pychrysalide/analysis/types/basic.c
@@ -184,35 +184,35 @@ static bool py_basic_type_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, BTP_VOID);
- result &= PyDict_AddIntMacro(obj_type, BTP_WCHAR_T);
- result &= PyDict_AddIntMacro(obj_type, BTP_BOOL);
- result &= PyDict_AddIntMacro(obj_type, BTP_CHAR);
- result &= PyDict_AddIntMacro(obj_type, BTP_SCHAR);
- result &= PyDict_AddIntMacro(obj_type, BTP_UCHAR);
- result &= PyDict_AddIntMacro(obj_type, BTP_SHORT);
- result &= PyDict_AddIntMacro(obj_type, BTP_USHORT);
- result &= PyDict_AddIntMacro(obj_type, BTP_INT);
- result &= PyDict_AddIntMacro(obj_type, BTP_UINT);
- result &= PyDict_AddIntMacro(obj_type, BTP_LONG);
- result &= PyDict_AddIntMacro(obj_type, BTP_ULONG);
- result &= PyDict_AddIntMacro(obj_type, BTP_LONG_LONG);
- result &= PyDict_AddIntMacro(obj_type, BTP_ULONG_LONG);
- result &= PyDict_AddIntMacro(obj_type, BTP_INT128);
- result &= PyDict_AddIntMacro(obj_type, BTP_UINT128);
- result &= PyDict_AddIntMacro(obj_type, BTP_FLOAT);
- result &= PyDict_AddIntMacro(obj_type, BTP_DOUBLE);
- result &= PyDict_AddIntMacro(obj_type, BTP_LONG_DOUBLE);
- result &= PyDict_AddIntMacro(obj_type, BTP_FLOAT128);
- result &= PyDict_AddIntMacro(obj_type, BTP_ELLIPSIS);
- result &= PyDict_AddIntMacro(obj_type, BTP_754R_64);
- result &= PyDict_AddIntMacro(obj_type, BTP_754R_128);
- result &= PyDict_AddIntMacro(obj_type, BTP_754R_32);
- result &= PyDict_AddIntMacro(obj_type, BTP_754R_16);
- result &= PyDict_AddIntMacro(obj_type, BTP_CHAR32_T);
- result &= PyDict_AddIntMacro(obj_type, BTP_CHAR16_T);
-
- result &= PyDict_AddIntMacro(obj_type, BTP_INVALID);
+ result &= PyDict_AddULongMacro(obj_type, BTP_VOID);
+ result &= PyDict_AddULongMacro(obj_type, BTP_WCHAR_T);
+ result &= PyDict_AddULongMacro(obj_type, BTP_BOOL);
+ result &= PyDict_AddULongMacro(obj_type, BTP_CHAR);
+ result &= PyDict_AddULongMacro(obj_type, BTP_SCHAR);
+ result &= PyDict_AddULongMacro(obj_type, BTP_UCHAR);
+ result &= PyDict_AddULongMacro(obj_type, BTP_SHORT);
+ result &= PyDict_AddULongMacro(obj_type, BTP_USHORT);
+ result &= PyDict_AddULongMacro(obj_type, BTP_INT);
+ result &= PyDict_AddULongMacro(obj_type, BTP_UINT);
+ result &= PyDict_AddULongMacro(obj_type, BTP_LONG);
+ result &= PyDict_AddULongMacro(obj_type, BTP_ULONG);
+ result &= PyDict_AddULongMacro(obj_type, BTP_LONG_LONG);
+ result &= PyDict_AddULongMacro(obj_type, BTP_ULONG_LONG);
+ result &= PyDict_AddULongMacro(obj_type, BTP_INT128);
+ result &= PyDict_AddULongMacro(obj_type, BTP_UINT128);
+ result &= PyDict_AddULongMacro(obj_type, BTP_FLOAT);
+ result &= PyDict_AddULongMacro(obj_type, BTP_DOUBLE);
+ result &= PyDict_AddULongMacro(obj_type, BTP_LONG_DOUBLE);
+ result &= PyDict_AddULongMacro(obj_type, BTP_FLOAT128);
+ result &= PyDict_AddULongMacro(obj_type, BTP_ELLIPSIS);
+ result &= PyDict_AddULongMacro(obj_type, BTP_754R_64);
+ result &= PyDict_AddULongMacro(obj_type, BTP_754R_128);
+ result &= PyDict_AddULongMacro(obj_type, BTP_754R_32);
+ result &= PyDict_AddULongMacro(obj_type, BTP_754R_16);
+ result &= PyDict_AddULongMacro(obj_type, BTP_CHAR32_T);
+ result &= PyDict_AddULongMacro(obj_type, BTP_CHAR16_T);
+
+ result &= PyDict_AddULongMacro(obj_type, BTP_INVALID);
return result;
diff --git a/plugins/pychrysalide/analysis/types/cse.c b/plugins/pychrysalide/analysis/types/cse.c
index 4643a8d..5f0bb0a 100644
--- a/plugins/pychrysalide/analysis/types/cse.c
+++ b/plugins/pychrysalide/analysis/types/cse.c
@@ -222,15 +222,15 @@ static bool py_class_enum_type_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, CET_UNKNOWN);
- result &= PyDict_AddIntMacro(obj_type, CET_STRUCT);
- result &= PyDict_AddIntMacro(obj_type, CET_ENUM);
- result &= PyDict_AddIntMacro(obj_type, CET_CLASS);
- result &= PyDict_AddIntMacro(obj_type, CET_NAMESPACE);
- result &= PyDict_AddIntMacro(obj_type, CET_VIRTUAL_TABLE);
- result &= PyDict_AddIntMacro(obj_type, CET_VIRTUAL_STRUCT);
-
- result &= PyDict_AddIntMacro(obj_type, CET_COUNT);
+ result &= PyDict_AddULongMacro(obj_type, CET_UNKNOWN);
+ result &= PyDict_AddULongMacro(obj_type, CET_STRUCT);
+ result &= PyDict_AddULongMacro(obj_type, CET_ENUM);
+ result &= PyDict_AddULongMacro(obj_type, CET_CLASS);
+ result &= PyDict_AddULongMacro(obj_type, CET_NAMESPACE);
+ result &= PyDict_AddULongMacro(obj_type, CET_VIRTUAL_TABLE);
+ result &= PyDict_AddULongMacro(obj_type, CET_VIRTUAL_STRUCT);
+
+ result &= PyDict_AddULongMacro(obj_type, CET_COUNT);
return result;
diff --git a/plugins/pychrysalide/analysis/types/encaps.c b/plugins/pychrysalide/analysis/types/encaps.c
index 2961853..c2d435c 100644
--- a/plugins/pychrysalide/analysis/types/encaps.c
+++ b/plugins/pychrysalide/analysis/types/encaps.c
@@ -217,13 +217,13 @@ static bool py_encapsulated_type_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, ECT_POINTER);
- result &= PyDict_AddIntMacro(obj_type, ECT_REFERENCE);
- result &= PyDict_AddIntMacro(obj_type, ECT_RVALUE_REF);
- result &= PyDict_AddIntMacro(obj_type, ECT_COMPLEX);
- result &= PyDict_AddIntMacro(obj_type, ECT_IMAGINARY);
+ result &= PyDict_AddULongMacro(obj_type, ECT_POINTER);
+ result &= PyDict_AddULongMacro(obj_type, ECT_REFERENCE);
+ result &= PyDict_AddULongMacro(obj_type, ECT_RVALUE_REF);
+ result &= PyDict_AddULongMacro(obj_type, ECT_COMPLEX);
+ result &= PyDict_AddULongMacro(obj_type, ECT_IMAGINARY);
- result &= PyDict_AddIntMacro(obj_type, ECT_COUNT);
+ result &= PyDict_AddULongMacro(obj_type, ECT_COUNT);
return result;