diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
commit | ccf90bf696a0852ef34ac2a86137b34e92827ec0 (patch) | |
tree | d43c65faf4316d8a55d67c74f363f3f4371068cd /plugins/pychrysalide/analysis/types/basic.c | |
parent | 0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff) |
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/analysis/types/basic.c')
-rw-r--r-- | plugins/pychrysalide/analysis/types/basic.c | 58 |
1 files changed, 29 insertions, 29 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; |