diff options
Diffstat (limited to 'plugins')
21 files changed, 431 insertions, 431 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; diff --git a/plugins/elf/python/constants.c b/plugins/elf/python/constants.c index 25b739a..1a616ea 100644 --- a/plugins/elf/python/constants.c +++ b/plugins/elf/python/constants.c @@ -58,149 +58,149 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) * En-tête de fichier ELF (32 et 64 bits) */ - if (result) result = PyDict_AddIntMacro(obj_type, EI_NIDENT); + if (result) result = PyDict_AddULongMacro(obj_type, EI_NIDENT); /* Composition du champ e_ident */ - if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG0); - if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG1); - if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG2); - if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG3); - if (result) result = PyDict_AddIntMacro(obj_type, EI_CLASS); - if (result) result = PyDict_AddIntMacro(obj_type, EI_DATA); - if (result) result = PyDict_AddIntMacro(obj_type, EI_VERSION); - if (result) result = PyDict_AddIntMacro(obj_type, EI_OSABI); - if (result) result = PyDict_AddIntMacro(obj_type, EI_ABIVERSION); - if (result) result = PyDict_AddIntMacro(obj_type, EI_PAD); + if (result) result = PyDict_AddULongMacro(obj_type, EI_MAG0); + if (result) result = PyDict_AddULongMacro(obj_type, EI_MAG1); + if (result) result = PyDict_AddULongMacro(obj_type, EI_MAG2); + if (result) result = PyDict_AddULongMacro(obj_type, EI_MAG3); + if (result) result = PyDict_AddULongMacro(obj_type, EI_CLASS); + if (result) result = PyDict_AddULongMacro(obj_type, EI_DATA); + if (result) result = PyDict_AddULongMacro(obj_type, EI_VERSION); + if (result) result = PyDict_AddULongMacro(obj_type, EI_OSABI); + if (result) result = PyDict_AddULongMacro(obj_type, EI_ABIVERSION); + if (result) result = PyDict_AddULongMacro(obj_type, EI_PAD); /* ... EI_CLASS */ - if (result) result = PyDict_AddIntMacro(obj_type, ELFCLASSNONE); - if (result) result = PyDict_AddIntMacro(obj_type, ELFCLASS32); - if (result) result = PyDict_AddIntMacro(obj_type, ELFCLASS64); + if (result) result = PyDict_AddULongMacro(obj_type, ELFCLASSNONE); + if (result) result = PyDict_AddULongMacro(obj_type, ELFCLASS32); + if (result) result = PyDict_AddULongMacro(obj_type, ELFCLASS64); /* ... EI_DATA */ - if (result) result = PyDict_AddIntMacro(obj_type, ELFDATANONE); - if (result) result = PyDict_AddIntMacro(obj_type, ELFDATA2LSB); - if (result) result = PyDict_AddIntMacro(obj_type, ELFDATA2MSB); + if (result) result = PyDict_AddULongMacro(obj_type, ELFDATANONE); + if (result) result = PyDict_AddULongMacro(obj_type, ELFDATA2LSB); + if (result) result = PyDict_AddULongMacro(obj_type, ELFDATA2MSB); /* ... EI_VERSION */ - if (result) result = PyDict_AddIntMacro(obj_type, EV_NONE); - if (result) result = PyDict_AddIntMacro(obj_type, EV_CURRENT); + if (result) result = PyDict_AddULongMacro(obj_type, EV_NONE); + if (result) result = PyDict_AddULongMacro(obj_type, EV_CURRENT); /* ... EI_OSABI */ - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_NONE); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_SYSV); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_HPUX); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_NETBSD); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_GNU); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_LINUX); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_SOLARIS); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_AIX); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_IRIX); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_FREEBSD); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_TRU64); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_MODESTO); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_OPENBSD); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_ARM_AEABI); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_ARM); - if (result) result = PyDict_AddIntMacro(obj_type, ELFOSABI_STANDALONE); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_NONE); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_SYSV); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_HPUX); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_NETBSD); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_GNU); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_LINUX); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_SOLARIS); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_AIX); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_IRIX); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_FREEBSD); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_TRU64); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_MODESTO); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_OPENBSD); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_ARM_AEABI); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_ARM); + if (result) result = PyDict_AddULongMacro(obj_type, ELFOSABI_STANDALONE); /* Valeurs possibles pour e_type */ - if (result) result = PyDict_AddIntMacro(obj_type, ET_NONE); - if (result) result = PyDict_AddIntMacro(obj_type, ET_REL); - if (result) result = PyDict_AddIntMacro(obj_type, ET_EXEC); - if (result) result = PyDict_AddIntMacro(obj_type, ET_DYN); - if (result) result = PyDict_AddIntMacro(obj_type, ET_CORE); - if (result) result = PyDict_AddIntMacro(obj_type, ET_LOOS); - if (result) result = PyDict_AddIntMacro(obj_type, ET_HIOS); - if (result) result = PyDict_AddIntMacro(obj_type, ET_LOPROC); - if (result) result = PyDict_AddIntMacro(obj_type, ET_HIPROC); + if (result) result = PyDict_AddULongMacro(obj_type, ET_NONE); + if (result) result = PyDict_AddULongMacro(obj_type, ET_REL); + if (result) result = PyDict_AddULongMacro(obj_type, ET_EXEC); + if (result) result = PyDict_AddULongMacro(obj_type, ET_DYN); + if (result) result = PyDict_AddULongMacro(obj_type, ET_CORE); + if (result) result = PyDict_AddULongMacro(obj_type, ET_LOOS); + if (result) result = PyDict_AddULongMacro(obj_type, ET_HIOS); + if (result) result = PyDict_AddULongMacro(obj_type, ET_LOPROC); + if (result) result = PyDict_AddULongMacro(obj_type, ET_HIPROC); /* Valeurs possibles pour e_machine */ - if (result) result = PyDict_AddIntMacro(obj_type, EM_NONE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_M32); - if (result) result = PyDict_AddIntMacro(obj_type, EM_SPARC); - if (result) result = PyDict_AddIntMacro(obj_type, EM_386); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68K); - if (result) result = PyDict_AddIntMacro(obj_type, EM_88K); - if (result) result = PyDict_AddIntMacro(obj_type, EM_860); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MIPS); - if (result) result = PyDict_AddIntMacro(obj_type, EM_S370); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MIPS_RS3_LE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PARISC); - if (result) result = PyDict_AddIntMacro(obj_type, EM_VPP500); - if (result) result = PyDict_AddIntMacro(obj_type, EM_SPARC32PLUS); - if (result) result = PyDict_AddIntMacro(obj_type, EM_960); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PPC); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PPC64); - if (result) result = PyDict_AddIntMacro(obj_type, EM_S390); - if (result) result = PyDict_AddIntMacro(obj_type, EM_V800); - if (result) result = PyDict_AddIntMacro(obj_type, EM_FR20); - if (result) result = PyDict_AddIntMacro(obj_type, EM_RH32); - if (result) result = PyDict_AddIntMacro(obj_type, EM_RCE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ARM); - if (result) result = PyDict_AddIntMacro(obj_type, EM_FAKE_ALPHA); - if (result) result = PyDict_AddIntMacro(obj_type, EM_SH); - if (result) result = PyDict_AddIntMacro(obj_type, EM_SPARCV9); - if (result) result = PyDict_AddIntMacro(obj_type, EM_TRICORE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ARC); - if (result) result = PyDict_AddIntMacro(obj_type, EM_H8_300); - if (result) result = PyDict_AddIntMacro(obj_type, EM_H8_300H); - if (result) result = PyDict_AddIntMacro(obj_type, EM_H8S); - if (result) result = PyDict_AddIntMacro(obj_type, EM_H8_500); - if (result) result = PyDict_AddIntMacro(obj_type, EM_IA_64); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MIPS_X); - if (result) result = PyDict_AddIntMacro(obj_type, EM_COLDFIRE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68HC12); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MMA); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PCP); - if (result) result = PyDict_AddIntMacro(obj_type, EM_NCPU); - if (result) result = PyDict_AddIntMacro(obj_type, EM_NDR1); - if (result) result = PyDict_AddIntMacro(obj_type, EM_STARCORE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ME16); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ST100); - if (result) result = PyDict_AddIntMacro(obj_type, EM_TINYJ); - if (result) result = PyDict_AddIntMacro(obj_type, EM_X86_64); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PDSP); - if (result) result = PyDict_AddIntMacro(obj_type, EM_FX66); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ST9PLUS); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ST7); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68HC16); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68HC11); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68HC08); - if (result) result = PyDict_AddIntMacro(obj_type, EM_68HC05); - if (result) result = PyDict_AddIntMacro(obj_type, EM_SVX); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ST19); - if (result) result = PyDict_AddIntMacro(obj_type, EM_VAX); - if (result) result = PyDict_AddIntMacro(obj_type, EM_CRIS); - if (result) result = PyDict_AddIntMacro(obj_type, EM_JAVELIN); - if (result) result = PyDict_AddIntMacro(obj_type, EM_FIREPATH); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ZSP); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MMIX); - if (result) result = PyDict_AddIntMacro(obj_type, EM_HUANY); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PRISM); - if (result) result = PyDict_AddIntMacro(obj_type, EM_AVR); - if (result) result = PyDict_AddIntMacro(obj_type, EM_FR30); - if (result) result = PyDict_AddIntMacro(obj_type, EM_D10V); - if (result) result = PyDict_AddIntMacro(obj_type, EM_D30V); - if (result) result = PyDict_AddIntMacro(obj_type, EM_V850); - if (result) result = PyDict_AddIntMacro(obj_type, EM_M32R); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MN10300); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MN10200); - if (result) result = PyDict_AddIntMacro(obj_type, EM_PJ); - if (result) result = PyDict_AddIntMacro(obj_type, EM_OPENRISC); - if (result) result = PyDict_AddIntMacro(obj_type, EM_ARC_A5); - if (result) result = PyDict_AddIntMacro(obj_type, EM_XTENSA); - if (result) result = PyDict_AddIntMacro(obj_type, EM_AARCH64); - if (result) result = PyDict_AddIntMacro(obj_type, EM_TILEPRO); - if (result) result = PyDict_AddIntMacro(obj_type, EM_MICROBLAZE); - if (result) result = PyDict_AddIntMacro(obj_type, EM_TILEGX); + if (result) result = PyDict_AddULongMacro(obj_type, EM_NONE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_M32); + if (result) result = PyDict_AddULongMacro(obj_type, EM_SPARC); + if (result) result = PyDict_AddULongMacro(obj_type, EM_386); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68K); + if (result) result = PyDict_AddULongMacro(obj_type, EM_88K); + if (result) result = PyDict_AddULongMacro(obj_type, EM_860); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MIPS); + if (result) result = PyDict_AddULongMacro(obj_type, EM_S370); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MIPS_RS3_LE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PARISC); + if (result) result = PyDict_AddULongMacro(obj_type, EM_VPP500); + if (result) result = PyDict_AddULongMacro(obj_type, EM_SPARC32PLUS); + if (result) result = PyDict_AddULongMacro(obj_type, EM_960); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PPC); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PPC64); + if (result) result = PyDict_AddULongMacro(obj_type, EM_S390); + if (result) result = PyDict_AddULongMacro(obj_type, EM_V800); + if (result) result = PyDict_AddULongMacro(obj_type, EM_FR20); + if (result) result = PyDict_AddULongMacro(obj_type, EM_RH32); + if (result) result = PyDict_AddULongMacro(obj_type, EM_RCE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ARM); + if (result) result = PyDict_AddULongMacro(obj_type, EM_FAKE_ALPHA); + if (result) result = PyDict_AddULongMacro(obj_type, EM_SH); + if (result) result = PyDict_AddULongMacro(obj_type, EM_SPARCV9); + if (result) result = PyDict_AddULongMacro(obj_type, EM_TRICORE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ARC); + if (result) result = PyDict_AddULongMacro(obj_type, EM_H8_300); + if (result) result = PyDict_AddULongMacro(obj_type, EM_H8_300H); + if (result) result = PyDict_AddULongMacro(obj_type, EM_H8S); + if (result) result = PyDict_AddULongMacro(obj_type, EM_H8_500); + if (result) result = PyDict_AddULongMacro(obj_type, EM_IA_64); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MIPS_X); + if (result) result = PyDict_AddULongMacro(obj_type, EM_COLDFIRE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68HC12); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MMA); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PCP); + if (result) result = PyDict_AddULongMacro(obj_type, EM_NCPU); + if (result) result = PyDict_AddULongMacro(obj_type, EM_NDR1); + if (result) result = PyDict_AddULongMacro(obj_type, EM_STARCORE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ME16); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ST100); + if (result) result = PyDict_AddULongMacro(obj_type, EM_TINYJ); + if (result) result = PyDict_AddULongMacro(obj_type, EM_X86_64); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PDSP); + if (result) result = PyDict_AddULongMacro(obj_type, EM_FX66); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ST9PLUS); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ST7); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68HC16); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68HC11); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68HC08); + if (result) result = PyDict_AddULongMacro(obj_type, EM_68HC05); + if (result) result = PyDict_AddULongMacro(obj_type, EM_SVX); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ST19); + if (result) result = PyDict_AddULongMacro(obj_type, EM_VAX); + if (result) result = PyDict_AddULongMacro(obj_type, EM_CRIS); + if (result) result = PyDict_AddULongMacro(obj_type, EM_JAVELIN); + if (result) result = PyDict_AddULongMacro(obj_type, EM_FIREPATH); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ZSP); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MMIX); + if (result) result = PyDict_AddULongMacro(obj_type, EM_HUANY); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PRISM); + if (result) result = PyDict_AddULongMacro(obj_type, EM_AVR); + if (result) result = PyDict_AddULongMacro(obj_type, EM_FR30); + if (result) result = PyDict_AddULongMacro(obj_type, EM_D10V); + if (result) result = PyDict_AddULongMacro(obj_type, EM_D30V); + if (result) result = PyDict_AddULongMacro(obj_type, EM_V850); + if (result) result = PyDict_AddULongMacro(obj_type, EM_M32R); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MN10300); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MN10200); + if (result) result = PyDict_AddULongMacro(obj_type, EM_PJ); + if (result) result = PyDict_AddULongMacro(obj_type, EM_OPENRISC); + if (result) result = PyDict_AddULongMacro(obj_type, EM_ARC_A5); + if (result) result = PyDict_AddULongMacro(obj_type, EM_XTENSA); + if (result) result = PyDict_AddULongMacro(obj_type, EM_AARCH64); + if (result) result = PyDict_AddULongMacro(obj_type, EM_TILEPRO); + if (result) result = PyDict_AddULongMacro(obj_type, EM_MICROBLAZE); + if (result) result = PyDict_AddULongMacro(obj_type, EM_TILEGX); /** * En-tête des programmes Elf @@ -208,34 +208,34 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) /* Valeurs possibles pour p_type */ - if (result) result = PyDict_AddIntMacro(obj_type, PT_NULL); - if (result) result = PyDict_AddIntMacro(obj_type, PT_LOAD); - if (result) result = PyDict_AddIntMacro(obj_type, PT_DYNAMIC); - if (result) result = PyDict_AddIntMacro(obj_type, PT_INTERP); - if (result) result = PyDict_AddIntMacro(obj_type, PT_NOTE); - if (result) result = PyDict_AddIntMacro(obj_type, PT_SHLIB); - if (result) result = PyDict_AddIntMacro(obj_type, PT_PHDR); - if (result) result = PyDict_AddIntMacro(obj_type, PT_TLS); - if (result) result = PyDict_AddIntMacro(obj_type, PT_NUM); - if (result) result = PyDict_AddIntMacro(obj_type, PT_LOOS); - if (result) result = PyDict_AddIntMacro(obj_type, PT_GNU_EH_FRAME); - if (result) result = PyDict_AddIntMacro(obj_type, PT_GNU_STACK); - if (result) result = PyDict_AddIntMacro(obj_type, PT_GNU_RELRO); - if (result) result = PyDict_AddIntMacro(obj_type, PT_LOSUNW); - if (result) result = PyDict_AddIntMacro(obj_type, PT_SUNWBSS); - if (result) result = PyDict_AddIntMacro(obj_type, PT_SUNWSTACK); - if (result) result = PyDict_AddIntMacro(obj_type, PT_HISUNW); - if (result) result = PyDict_AddIntMacro(obj_type, PT_HIOS); - if (result) result = PyDict_AddIntMacro(obj_type, PT_LOPROC); - if (result) result = PyDict_AddIntMacro(obj_type, PT_HIPROC); + if (result) result = PyDict_AddULongMacro(obj_type, PT_NULL); + if (result) result = PyDict_AddULongMacro(obj_type, PT_LOAD); + if (result) result = PyDict_AddULongMacro(obj_type, PT_DYNAMIC); + if (result) result = PyDict_AddULongMacro(obj_type, PT_INTERP); + if (result) result = PyDict_AddULongMacro(obj_type, PT_NOTE); + if (result) result = PyDict_AddULongMacro(obj_type, PT_SHLIB); + if (result) result = PyDict_AddULongMacro(obj_type, PT_PHDR); + if (result) result = PyDict_AddULongMacro(obj_type, PT_TLS); + if (result) result = PyDict_AddULongMacro(obj_type, PT_NUM); + if (result) result = PyDict_AddULongMacro(obj_type, PT_LOOS); + if (result) result = PyDict_AddULongMacro(obj_type, PT_GNU_EH_FRAME); + if (result) result = PyDict_AddULongMacro(obj_type, PT_GNU_STACK); + if (result) result = PyDict_AddULongMacro(obj_type, PT_GNU_RELRO); + if (result) result = PyDict_AddULongMacro(obj_type, PT_LOSUNW); + if (result) result = PyDict_AddULongMacro(obj_type, PT_SUNWBSS); + if (result) result = PyDict_AddULongMacro(obj_type, PT_SUNWSTACK); + if (result) result = PyDict_AddULongMacro(obj_type, PT_HISUNW); + if (result) result = PyDict_AddULongMacro(obj_type, PT_HIOS); + if (result) result = PyDict_AddULongMacro(obj_type, PT_LOPROC); + if (result) result = PyDict_AddULongMacro(obj_type, PT_HIPROC); /* Valeurs possibles pour p_flags */ - if (result) result = PyDict_AddIntMacro(obj_type, PF_X); - if (result) result = PyDict_AddIntMacro(obj_type, PF_W); - if (result) result = PyDict_AddIntMacro(obj_type, PF_R); - if (result) result = PyDict_AddIntMacro(obj_type, PF_MASKOS); - if (result) result = PyDict_AddIntMacro(obj_type, PF_MASKPROC); + if (result) result = PyDict_AddULongMacro(obj_type, PF_X); + if (result) result = PyDict_AddULongMacro(obj_type, PF_W); + if (result) result = PyDict_AddULongMacro(obj_type, PF_R); + if (result) result = PyDict_AddULongMacro(obj_type, PF_MASKOS); + if (result) result = PyDict_AddULongMacro(obj_type, PF_MASKPROC); /** * En-tête des sections Elf @@ -243,59 +243,59 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) /* Valeurs possibles pour sh_type */ - if (result) result = PyDict_AddIntMacro(obj_type, SHT_NULL); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_PROGBITS); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SYMTAB); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_STRTAB); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_RELA); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_HASH); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_DYNAMIC); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_NOTE); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_NOBITS); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_REL); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SHLIB); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_DYNSYM); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_INIT_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_FINI_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_PREINIT_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GROUP); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SYMTAB_SHNDX); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_NUM); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_LOOS); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_ATTRIBUTES); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_HASH); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_LIBLIST); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_CHECKSUM); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_LOSUNW); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SUNW_move); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SUNW_COMDAT); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_SUNW_syminfo); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_verdef); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_verneed); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_GNU_versym); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_HISUNW); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_HIOS); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_LOPROC); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_HIPROC); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_LOUSER); - if (result) result = PyDict_AddIntMacro(obj_type, SHT_HIUSER); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_NULL); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_PROGBITS); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SYMTAB); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_STRTAB); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_RELA); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_HASH); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_DYNAMIC); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_NOTE); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_NOBITS); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_REL); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SHLIB); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_DYNSYM); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_INIT_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_FINI_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_PREINIT_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GROUP); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SYMTAB_SHNDX); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_NUM); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_LOOS); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_ATTRIBUTES); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_HASH); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_LIBLIST); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_CHECKSUM); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_LOSUNW); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SUNW_move); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SUNW_COMDAT); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_SUNW_syminfo); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_verdef); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_verneed); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_GNU_versym); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_HISUNW); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_HIOS); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_LOPROC); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_HIPROC); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_LOUSER); + if (result) result = PyDict_AddULongMacro(obj_type, SHT_HIUSER); /* Valeurs possibles pour sh_flags */ - if (result) result = PyDict_AddIntMacro(obj_type, SHF_WRITE); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_ALLOC); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_EXECINSTR); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_MERGE); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_STRINGS); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_INFO_LINK); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_LINK_ORDER); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_OS_NONCONFORMING); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_GROUP); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_TLS); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_MASKOS); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_MASKPROC); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_ORDERED); - if (result) result = PyDict_AddIntMacro(obj_type, SHF_EXCLUDE); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_WRITE); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_ALLOC); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_EXECINSTR); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_MERGE); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_STRINGS); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_INFO_LINK); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_LINK_ORDER); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_OS_NONCONFORMING); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_GROUP); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_TLS); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_MASKOS); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_MASKPROC); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_ORDERED); + if (result) result = PyDict_AddULongMacro(obj_type, SHF_EXCLUDE); /** * Données pour le linker @@ -303,41 +303,41 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) /* Valeurs possibles pour d_tag */ - if (result) result = PyDict_AddIntMacro(obj_type, DT_NULL); - if (result) result = PyDict_AddIntMacro(obj_type, DT_NEEDED); - if (result) result = PyDict_AddIntMacro(obj_type, DT_PLTRELSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_PLTGOT); - if (result) result = PyDict_AddIntMacro(obj_type, DT_HASH); - if (result) result = PyDict_AddIntMacro(obj_type, DT_STRTAB); - if (result) result = PyDict_AddIntMacro(obj_type, DT_SYMTAB); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RELA); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RELASZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RELAENT); - if (result) result = PyDict_AddIntMacro(obj_type, DT_STRSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_SYMENT); - if (result) result = PyDict_AddIntMacro(obj_type, DT_INIT); - if (result) result = PyDict_AddIntMacro(obj_type, DT_FINI); - if (result) result = PyDict_AddIntMacro(obj_type, DT_SONAME); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RPATH); - if (result) result = PyDict_AddIntMacro(obj_type, DT_SYMBOLIC); - if (result) result = PyDict_AddIntMacro(obj_type, DT_REL); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RELSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RELENT); - if (result) result = PyDict_AddIntMacro(obj_type, DT_PLTREL); - if (result) result = PyDict_AddIntMacro(obj_type, DT_DEBUG); - if (result) result = PyDict_AddIntMacro(obj_type, DT_TEXTREL); - if (result) result = PyDict_AddIntMacro(obj_type, DT_JMPREL); - if (result) result = PyDict_AddIntMacro(obj_type, DT_BIND_NOW); - if (result) result = PyDict_AddIntMacro(obj_type, DT_INIT_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, DT_FINI_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, DT_INIT_ARRAYSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_FINI_ARRAYSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_RUNPATH); - if (result) result = PyDict_AddIntMacro(obj_type, DT_FLAGS); - if (result) result = PyDict_AddIntMacro(obj_type, DT_ENCODING); - if (result) result = PyDict_AddIntMacro(obj_type, DT_PREINIT_ARRAY); - if (result) result = PyDict_AddIntMacro(obj_type, DT_PREINIT_ARRAYSZ); - if (result) result = PyDict_AddIntMacro(obj_type, DT_NUM); + if (result) result = PyDict_AddULongMacro(obj_type, DT_NULL); + if (result) result = PyDict_AddULongMacro(obj_type, DT_NEEDED); + if (result) result = PyDict_AddULongMacro(obj_type, DT_PLTRELSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_PLTGOT); + if (result) result = PyDict_AddULongMacro(obj_type, DT_HASH); + if (result) result = PyDict_AddULongMacro(obj_type, DT_STRTAB); + if (result) result = PyDict_AddULongMacro(obj_type, DT_SYMTAB); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RELA); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RELASZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RELAENT); + if (result) result = PyDict_AddULongMacro(obj_type, DT_STRSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_SYMENT); + if (result) result = PyDict_AddULongMacro(obj_type, DT_INIT); + if (result) result = PyDict_AddULongMacro(obj_type, DT_FINI); + if (result) result = PyDict_AddULongMacro(obj_type, DT_SONAME); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RPATH); + if (result) result = PyDict_AddULongMacro(obj_type, DT_SYMBOLIC); + if (result) result = PyDict_AddULongMacro(obj_type, DT_REL); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RELSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RELENT); + if (result) result = PyDict_AddULongMacro(obj_type, DT_PLTREL); + if (result) result = PyDict_AddULongMacro(obj_type, DT_DEBUG); + if (result) result = PyDict_AddULongMacro(obj_type, DT_TEXTREL); + if (result) result = PyDict_AddULongMacro(obj_type, DT_JMPREL); + if (result) result = PyDict_AddULongMacro(obj_type, DT_BIND_NOW); + if (result) result = PyDict_AddULongMacro(obj_type, DT_INIT_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, DT_FINI_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, DT_INIT_ARRAYSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_FINI_ARRAYSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_RUNPATH); + if (result) result = PyDict_AddULongMacro(obj_type, DT_FLAGS); + if (result) result = PyDict_AddULongMacro(obj_type, DT_ENCODING); + if (result) result = PyDict_AddULongMacro(obj_type, DT_PREINIT_ARRAY); + if (result) result = PyDict_AddULongMacro(obj_type, DT_PREINIT_ARRAYSZ); + if (result) result = PyDict_AddULongMacro(obj_type, DT_NUM); /** * Symboles de binaires Elf @@ -345,9 +345,9 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) /* Valeurs pour le sous-champ ST_TYPE de st_info */ - if (result) result = PyDict_AddIntMacro(obj_type, STT_NOTYPE); - if (result) result = PyDict_AddIntMacro(obj_type, STT_OBJECT); - if (result) result = PyDict_AddIntMacro(obj_type, STT_FUNC); + if (result) result = PyDict_AddULongMacro(obj_type, STT_NOTYPE); + if (result) result = PyDict_AddULongMacro(obj_type, STT_OBJECT); + if (result) result = PyDict_AddULongMacro(obj_type, STT_FUNC); /** * Informations de relocalisation @@ -355,12 +355,12 @@ static bool define_python_elf_format_common_constants(PyTypeObject *obj_type) /* Type de relocalisation (x86) */ - if (result) result = PyDict_AddIntMacro(obj_type, R_386_NONE); - if (result) result = PyDict_AddIntMacro(obj_type, R_386_JMP_SLOT); + if (result) result = PyDict_AddULongMacro(obj_type, R_386_NONE); + if (result) result = PyDict_AddULongMacro(obj_type, R_386_JMP_SLOT); /* Type de relocalisation (ARM) */ - if (result) result = PyDict_AddIntMacro(obj_type, R_ARM_JUMP_SLOT); + if (result) result = PyDict_AddULongMacro(obj_type, R_ARM_JUMP_SLOT); return result; diff --git a/plugins/pychrysalide/analysis/type.c b/plugins/pychrysalide/analysis/type.c index ea81642..0134b0a 100644 --- a/plugins/pychrysalide/analysis/type.c +++ b/plugins/pychrysalide/analysis/type.c @@ -406,12 +406,12 @@ static bool py_data_type_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, TQF_NONE); - result &= PyDict_AddIntMacro(obj_type, TQF_RESTRICT); - result &= PyDict_AddIntMacro(obj_type, TQF_VOLATILE); - result &= PyDict_AddIntMacro(obj_type, TQF_CONST); + result &= PyDict_AddULongMacro(obj_type, TQF_NONE); + result &= PyDict_AddULongMacro(obj_type, TQF_RESTRICT); + result &= PyDict_AddULongMacro(obj_type, TQF_VOLATILE); + result &= PyDict_AddULongMacro(obj_type, TQF_CONST); - result &= PyDict_AddIntMacro(obj_type, TQF_ALL); + result &= PyDict_AddULongMacro(obj_type, TQF_ALL); return result; 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; diff --git a/plugins/pychrysalide/arch/immediate.c b/plugins/pychrysalide/arch/immediate.c index 5ee2d41..4c538e4 100644 --- a/plugins/pychrysalide/arch/immediate.c +++ b/plugins/pychrysalide/arch/immediate.c @@ -579,12 +579,12 @@ static bool py_imm_operand_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, IOD_BIN); - result &= PyDict_AddIntMacro(obj_type, IOD_OCT); - result &= PyDict_AddIntMacro(obj_type, IOD_DEC); - result &= PyDict_AddIntMacro(obj_type, IOD_HEX); - result &= PyDict_AddIntMacro(obj_type, IOD_CHAR); - result &= PyDict_AddIntMacro(obj_type, IOD_COUNT); + result &= PyDict_AddULongMacro(obj_type, IOD_BIN); + result &= PyDict_AddULongMacro(obj_type, IOD_OCT); + result &= PyDict_AddULongMacro(obj_type, IOD_DEC); + result &= PyDict_AddULongMacro(obj_type, IOD_HEX); + result &= PyDict_AddULongMacro(obj_type, IOD_CHAR); + result &= PyDict_AddULongMacro(obj_type, IOD_COUNT); return result; diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c index 6399d63..ce554ee 100644 --- a/plugins/pychrysalide/arch/instruction.c +++ b/plugins/pychrysalide/arch/instruction.c @@ -443,15 +443,15 @@ static bool py_arch_instruction_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, ILT_EXEC_FLOW); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP); - result &= PyDict_AddIntMacro(obj_type, ILT_CASE_JUMP); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_TRUE); - result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_FALSE); - result &= PyDict_AddIntMacro(obj_type, ILT_LOOP); - result &= PyDict_AddIntMacro(obj_type, ILT_CALL); - result &= PyDict_AddIntMacro(obj_type, ILT_CATCH_EXCEPTION); - result &= PyDict_AddIntMacro(obj_type, ILT_REF); + result &= PyDict_AddULongMacro(obj_type, ILT_EXEC_FLOW); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP); + result &= PyDict_AddULongMacro(obj_type, ILT_CASE_JUMP); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_TRUE); + result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_FALSE); + result &= PyDict_AddULongMacro(obj_type, ILT_LOOP); + result &= PyDict_AddULongMacro(obj_type, ILT_CALL); + result &= PyDict_AddULongMacro(obj_type, ILT_CATCH_EXCEPTION); + result &= PyDict_AddULongMacro(obj_type, ILT_REF); return result; diff --git a/plugins/pychrysalide/arch/module.c b/plugins/pychrysalide/arch/module.c index db514ef..40b8d71 100644 --- a/plugins/pychrysalide/arch/module.c +++ b/plugins/pychrysalide/arch/module.c @@ -69,25 +69,25 @@ static bool py_base_define_constants(PyTypeObject *obj_type) result = true; - if (result) result = PyDict_AddIntMacro(obj_type, MDS_UNDEFINED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS_UNSIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS_UNSIGNED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS_SIGNED); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS_SIGNED); - - if (result) result = PyDict_AddIntMacro(obj_type, MDS_4_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_8_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_16_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_32_BITS); - if (result) result = PyDict_AddIntMacro(obj_type, MDS_64_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_UNDEFINED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_UNSIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_UNSIGNED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_SIGNED); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_SIGNED); + + if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS); + if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS); /** * Comme il existe déjà le module struct, de nouvelles primitives de @@ -97,10 +97,10 @@ static bool py_base_define_constants(PyTypeObject *obj_type) * pour exporter les constantes suivantes. */ - if (result) result = PyDict_AddIntMacro(obj_type, SRE_LITTLE); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_LITTLE_WORD); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_BIG_WORD); - if (result) result = PyDict_AddIntMacro(obj_type, SRE_BIG); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE_WORD); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG_WORD); + if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG); return result; diff --git a/plugins/pychrysalide/arch/processor.c b/plugins/pychrysalide/arch/processor.c index 2ecf6b8..115f980 100644 --- a/plugins/pychrysalide/arch/processor.c +++ b/plugins/pychrysalide/arch/processor.c @@ -850,8 +850,8 @@ static bool define_python_arch_processor_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, APE_DISASSEMBLY); - result &= PyDict_AddIntMacro(obj_type, APE_LABEL); + result &= PyDict_AddULongMacro(obj_type, APE_DISASSEMBLY); + result &= PyDict_AddULongMacro(obj_type, APE_LABEL); return result; diff --git a/plugins/pychrysalide/arch/vmpa.c b/plugins/pychrysalide/arch/vmpa.c index f2450bb..b89c3d7 100644 --- a/plugins/pychrysalide/arch/vmpa.c +++ b/plugins/pychrysalide/arch/vmpa.c @@ -535,8 +535,8 @@ static bool py_vmpa_define_constants(PyTypeObject *obj_type) result = true; - if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_PHYSICAL); - if (result) result = PyDict_AddIntMacro(obj_type, VMPA_NO_VIRTUAL); + if (result) result = PyDict_AddULongMacro(obj_type, VMPA_NO_PHYSICAL); + if (result) result = PyDict_AddULongMacro(obj_type, VMPA_NO_VIRTUAL); return result; diff --git a/plugins/pychrysalide/core/logs.c b/plugins/pychrysalide/core/logs.c index 589315e..38084c4 100644 --- a/plugins/pychrysalide/core/logs.c +++ b/plugins/pychrysalide/core/logs.c @@ -233,13 +233,13 @@ static bool define_python_log_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, LMT_INFO); - result &= PyDict_AddIntMacro(obj_type, LMT_PROCESS); - result &= PyDict_AddIntMacro(obj_type, LMT_WARNING); - result &= PyDict_AddIntMacro(obj_type, LMT_BAD_BINARY); - result &= PyDict_AddIntMacro(obj_type, LMT_ERROR); - result &= PyDict_AddIntMacro(obj_type, LMT_EXT_ERROR); - result &= PyDict_AddIntMacro(obj_type, LMT_COUNT); + result &= PyDict_AddULongMacro(obj_type, LMT_INFO); + result &= PyDict_AddULongMacro(obj_type, LMT_PROCESS); + result &= PyDict_AddULongMacro(obj_type, LMT_WARNING); + result &= PyDict_AddULongMacro(obj_type, LMT_BAD_BINARY); + result &= PyDict_AddULongMacro(obj_type, LMT_ERROR); + result &= PyDict_AddULongMacro(obj_type, LMT_EXT_ERROR); + result &= PyDict_AddULongMacro(obj_type, LMT_COUNT); return result; diff --git a/plugins/pychrysalide/format/format.c b/plugins/pychrysalide/format/format.c index 154bef3..2affeba 100644 --- a/plugins/pychrysalide/format/format.c +++ b/plugins/pychrysalide/format/format.c @@ -614,8 +614,8 @@ static bool define_python_binary_format_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, BFE_SPECIFICATION); - result &= PyDict_AddIntMacro(obj_type, BFE_STRUCTURE); + result &= PyDict_AddULongMacro(obj_type, BFE_SPECIFICATION); + result &= PyDict_AddULongMacro(obj_type, BFE_STRUCTURE); return result; diff --git a/plugins/pychrysalide/format/strsym.c b/plugins/pychrysalide/format/strsym.c index f0f47d0..30224f8 100644 --- a/plugins/pychrysalide/format/strsym.c +++ b/plugins/pychrysalide/format/strsym.c @@ -161,11 +161,11 @@ static bool py_string_symbol_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, SET_ASCII); - result &= PyDict_AddIntMacro(obj_type, SET_UTF_8); - result &= PyDict_AddIntMacro(obj_type, SET_MUTF_8); + result &= PyDict_AddULongMacro(obj_type, SET_ASCII); + result &= PyDict_AddULongMacro(obj_type, SET_UTF_8); + result &= PyDict_AddULongMacro(obj_type, SET_MUTF_8); - result &= PyDict_AddIntMacro(obj_type, SET_GUESS); + result &= PyDict_AddULongMacro(obj_type, SET_GUESS); return result; diff --git a/plugins/pychrysalide/format/symbol.c b/plugins/pychrysalide/format/symbol.c index f75f762..c948423 100644 --- a/plugins/pychrysalide/format/symbol.c +++ b/plugins/pychrysalide/format/symbol.c @@ -339,19 +339,19 @@ static bool py_binary_symbol_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, STP_DATA); - result &= PyDict_AddIntMacro(obj_type, STP_ROUTINE); - result &= PyDict_AddIntMacro(obj_type, STP_CODE_LABEL); - result &= PyDict_AddIntMacro(obj_type, STP_OBJECT); - result &= PyDict_AddIntMacro(obj_type, STP_ENTRY_POINT); - result &= PyDict_AddIntMacro(obj_type, STP_RO_STRING); - result &= PyDict_AddIntMacro(obj_type, STP_DYN_STRING); - result &= PyDict_AddIntMacro(obj_type, STP_COUNT); - - result &= PyDict_AddIntMacro(obj_type, SSS_INTERNAL); - result &= PyDict_AddIntMacro(obj_type, SSS_EXPORTED); - result &= PyDict_AddIntMacro(obj_type, SSS_IMPORTED); - result &= PyDict_AddIntMacro(obj_type, SSS_DYNAMIC); + result &= PyDict_AddULongMacro(obj_type, STP_DATA); + result &= PyDict_AddULongMacro(obj_type, STP_ROUTINE); + result &= PyDict_AddULongMacro(obj_type, STP_CODE_LABEL); + result &= PyDict_AddULongMacro(obj_type, STP_OBJECT); + result &= PyDict_AddULongMacro(obj_type, STP_ENTRY_POINT); + result &= PyDict_AddULongMacro(obj_type, STP_RO_STRING); + result &= PyDict_AddULongMacro(obj_type, STP_DYN_STRING); + result &= PyDict_AddULongMacro(obj_type, STP_COUNT); + + result &= PyDict_AddULongMacro(obj_type, SSS_INTERNAL); + result &= PyDict_AddULongMacro(obj_type, SSS_EXPORTED); + result &= PyDict_AddULongMacro(obj_type, SSS_IMPORTED); + result &= PyDict_AddULongMacro(obj_type, SSS_DYNAMIC); return result; diff --git a/plugins/pychrysalide/glibext/bufferline.c b/plugins/pychrysalide/glibext/bufferline.c index 5bc8449..40bbcbf 100644 --- a/plugins/pychrysalide/glibext/bufferline.c +++ b/plugins/pychrysalide/glibext/bufferline.c @@ -253,23 +253,23 @@ static bool py_buffer_line_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, BLC_PHYSICAL); - result &= PyDict_AddIntMacro(obj_type, BLC_VIRTUAL); - result &= PyDict_AddIntMacro(obj_type, BLC_BINARY); - result &= PyDict_AddIntMacro(obj_type, BLC_ASSEMBLY_HEAD); - result &= PyDict_AddIntMacro(obj_type, BLC_ASSEMBLY); - result &= PyDict_AddIntMacro(obj_type, BLC_COMMENTS); - result &= PyDict_AddIntMacro(obj_type, BLC_COUNT); - result &= PyDict_AddIntMacro(obj_type, BLC_LAST_USED); - result &= PyDict_AddIntMacro(obj_type, BLC_INVALID); - result &= PyDict_AddIntMacro(obj_type, BLC_MAIN); - result &= PyDict_AddIntMacro(obj_type, BLC_FIRST); - result &= PyDict_AddIntMacro(obj_type, BLC_DISPLAY); - - result &= PyDict_AddIntMacro(obj_type, BLF_NONE); - result &= PyDict_AddIntMacro(obj_type, BLF_HAS_CODE); - result &= PyDict_AddIntMacro(obj_type, BLF_ENTRYPOINT); - result &= PyDict_AddIntMacro(obj_type, BLF_BOOKMARK); + result &= PyDict_AddULongMacro(obj_type, BLC_PHYSICAL); + result &= PyDict_AddULongMacro(obj_type, BLC_VIRTUAL); + result &= PyDict_AddULongMacro(obj_type, BLC_BINARY); + result &= PyDict_AddULongMacro(obj_type, BLC_ASSEMBLY_HEAD); + result &= PyDict_AddULongMacro(obj_type, BLC_ASSEMBLY); + result &= PyDict_AddULongMacro(obj_type, BLC_COMMENTS); + result &= PyDict_AddULongMacro(obj_type, BLC_COUNT); + result &= PyDict_AddULongMacro(obj_type, BLC_LAST_USED); + result &= PyDict_AddULongMacro(obj_type, BLC_INVALID); + result &= PyDict_AddULongMacro(obj_type, BLC_MAIN); + result &= PyDict_AddULongMacro(obj_type, BLC_FIRST); + result &= PyDict_AddULongMacro(obj_type, BLC_DISPLAY); + + result &= PyDict_AddULongMacro(obj_type, BLF_NONE); + result &= PyDict_AddULongMacro(obj_type, BLF_HAS_CODE); + result &= PyDict_AddULongMacro(obj_type, BLF_ENTRYPOINT); + result &= PyDict_AddULongMacro(obj_type, BLF_BOOKMARK); return result; diff --git a/plugins/pychrysalide/glibext/loadedpanel.c b/plugins/pychrysalide/glibext/loadedpanel.c index 4dfb5c2..ce94b27 100644 --- a/plugins/pychrysalide/glibext/loadedpanel.c +++ b/plugins/pychrysalide/glibext/loadedpanel.c @@ -160,10 +160,10 @@ static bool py_loaded_panel_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, SPT_RAW); - result &= PyDict_AddIntMacro(obj_type, SPT_TOP); - result &= PyDict_AddIntMacro(obj_type, SPT_CENTER); - result &= PyDict_AddIntMacro(obj_type, SPT_BOTTOM); + result &= PyDict_AddULongMacro(obj_type, SPT_RAW); + result &= PyDict_AddULongMacro(obj_type, SPT_TOP); + result &= PyDict_AddULongMacro(obj_type, SPT_CENTER); + result &= PyDict_AddULongMacro(obj_type, SPT_BOTTOM); return result; diff --git a/plugins/pychrysalide/gui/panels/panel.c b/plugins/pychrysalide/gui/panels/panel.c index 1721780..37b682f 100644 --- a/plugins/pychrysalide/gui/panels/panel.c +++ b/plugins/pychrysalide/gui/panels/panel.c @@ -199,13 +199,13 @@ static bool py_panel_item_define_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, PIP_INVALID); + result &= PyDict_AddULongMacro(obj_type, PIP_INVALID); - result &= PyDict_AddIntMacro(obj_type, PIP_SINGLETON); - result &= PyDict_AddIntMacro(obj_type, PIP_BINARY_VIEW); - result &= PyDict_AddIntMacro(obj_type, PIP_OTHER); + result &= PyDict_AddULongMacro(obj_type, PIP_SINGLETON); + result &= PyDict_AddULongMacro(obj_type, PIP_BINARY_VIEW); + result &= PyDict_AddULongMacro(obj_type, PIP_OTHER); - result &= PyDict_AddIntMacro(obj_type, PIP_COUNT); + result &= PyDict_AddULongMacro(obj_type, PIP_COUNT); return result; diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c index dae2aea..ce3d0f4 100644 --- a/plugins/pychrysalide/helpers.c +++ b/plugins/pychrysalide/helpers.c @@ -217,7 +217,7 @@ PyObject *run_python_method(PyObject *module, const char *method, PyObject *args * * ******************************************************************************/ -bool PyDict_AddIntConstant(PyTypeObject *obj_type, const char *key, long value) +bool PyDict_AddULongConstant(PyTypeObject *obj_type, const char *key, unsigned long value) { bool result; /* Bilan à retourner */ PyObject *item; /* Nouvel élément à insérer */ diff --git a/plugins/pychrysalide/helpers.h b/plugins/pychrysalide/helpers.h index 9f02daa..c31c7ad 100644 --- a/plugins/pychrysalide/helpers.h +++ b/plugins/pychrysalide/helpers.h @@ -47,13 +47,13 @@ PyObject *_run_python_method(PyObject *, PyObject *); PyObject *run_python_method(PyObject *, const char *, PyObject *); /* Ajoute une constante au dictionnaire d'un type Python donné. */ -bool PyDict_AddIntConstant(PyTypeObject *, const char *, long); +bool PyDict_AddULongConstant(PyTypeObject *, const char *, unsigned long); /* Ajoute une constante au dictionnaire d'un type Python donné. */ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); -#define PyDict_AddIntMacro(tp, c) PyDict_AddIntConstant(tp, #c, c) +#define PyDict_AddULongMacro(tp, c) PyDict_AddULongConstant(tp, #c, c) #define PyDict_AddStringMacro(tp, c) PyDict_AddStringConstant(tp, #c, c) 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; |