summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch/constants.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-02-18 22:24:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-02-18 22:24:55 (GMT)
commitd6b2e6639698674cbdaf7dc2e5f5a637abcfadb0 (patch)
tree13394ab4695d8f4b60195961f24dd498c6bcbbe6 /plugins/pychrysalide/arch/constants.c
parent95e204291faa4800781d2f302c41f86a3f01851d (diff)
Relocated the raw instructions.
Diffstat (limited to 'plugins/pychrysalide/arch/constants.c')
-rw-r--r--plugins/pychrysalide/arch/constants.c43
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;
-
-}