diff options
Diffstat (limited to 'plugins/pychrysalide/arch/constants.c')
-rw-r--r-- | plugins/pychrysalide/arch/constants.c | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/plugins/pychrysalide/arch/constants.c b/plugins/pychrysalide/arch/constants.c index b6b0e62..5e9ad37 100644 --- a/plugins/pychrysalide/arch/constants.c +++ b/plugins/pychrysalide/arch/constants.c @@ -25,7 +25,7 @@ #include "constants.h" -#include <arch/raw.h> +#include <arch/instruction.h> #include <arch/vmpa.h> @@ -149,44 +149,3 @@ bool define_arch_vmpa_constants(PyTypeObject *type) return result; } - - -/****************************************************************************** -* * -* Paramètres : type = type dont le dictionnaire est à compléter. * -* * -* Description : Définit les constantes relatives aux instructions brutes. * -* * -* Retour : true en cas de succès de l'opération, false sinon. * -* * -* Remarques : - * -* * -******************************************************************************/ - -bool define_raw_instruction_constants(PyTypeObject *type) -{ - bool result; /* Bilan à retourner */ - PyObject *values; /* Groupe de valeurs à établir */ - - values = PyDict_New(); - - result = add_const_to_group(values, "PADDING", RIF_PADDING); - if (result) result = add_const_to_group(values, "STRING", RIF_STRING); - - if (!result) - { - Py_DECREF(values); - goto exit; - } - - result = attach_constants_group_to_type(type, true, "RawInstrFlag", values, - "Flags for some instruction properties.\n" - "\n" - "They can be seen as an extension of" \ - " pychrysalide.arch.ArchInstruction.ArchInstrFlag"); - - exit: - - return result; - -} |