summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/analysis/block.c39
1 files changed, 8 insertions, 31 deletions
diff --git a/plugins/pychrysalide/analysis/block.c b/plugins/pychrysalide/analysis/block.c
index edd364d..e646ba8 100644
--- a/plugins/pychrysalide/analysis/block.c
+++ b/plugins/pychrysalide/analysis/block.c
@@ -34,6 +34,9 @@
#include "../helpers.h"
+//////////////////////////////////////////////////////////
+#if 0
+
/* Permet la jonction entre C et Python lors des visites */
typedef struct _py_block_vdata
@@ -163,31 +166,7 @@ static PyObject *py_instructions_block_get_links_block(PyObject *self, PyObject
}
-/******************************************************************************
-* *
-* Paramètres : obj_type = type dont le dictionnaire est à compléter. *
-* *
-* Description : Définit les constantes pour les blocs basiques. *
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static bool py_instructions_block_define_constants(PyTypeObject *obj_type)
-{
- bool result; /* Bilan à retourner */
-
- result = true;
-
- result &= PyDict_AddIntMacro(obj_type, BVO_IN);
- result &= PyDict_AddIntMacro(obj_type, BVO_PENDING);
- result &= PyDict_AddIntMacro(obj_type, BVO_OUT);
-
- return result;
-
-}
+#endif
/******************************************************************************
@@ -205,16 +184,13 @@ static bool py_instructions_block_define_constants(PyTypeObject *obj_type)
PyTypeObject *get_python_instr_block_type(void)
{
static PyMethodDef py_instr_block_methods[] = {
- {
- "visit", (PyCFunction)py_instructions_block_visit,
- METH_VARARGS,
- "visit($self, cb, data, /)\n--\n\nVisit all the basic blocks, starting at the provided one."
- },
+#if 0
{
"get_links_block", (PyCFunction)py_instructions_block_get_links_block,
METH_VARARGS,
"get_links_block($self, /)\n--\n\nGet the block containing all blocks linked to the caller."
},
+#endif
{ NULL }
};
@@ -256,6 +232,7 @@ PyTypeObject *get_python_instr_block_type(void)
bool register_python_instr_block(PyObject *module)
{
+#if 0
PyTypeObject *py_instr_block_type; /* Type Python 'InstrBlock' */
PyObject *dict; /* Dictionnaire du module */
@@ -268,7 +245,7 @@ bool register_python_instr_block(PyObject *module)
if (!py_instructions_block_define_constants(py_instr_block_type))
return false;
-
+#endif
return true;
}