diff options
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/processor.c | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/plugins/pychrysalide/arch/processor.c b/plugins/pychrysalide/arch/processor.c index 557e7a7..71ef153 100644 --- a/plugins/pychrysalide/arch/processor.c +++ b/plugins/pychrysalide/arch/processor.c @@ -45,31 +45,6 @@ -#define ARCH_PROCESSOR_DOC \ - "The ArchProcessor object aims to get subclassed to create" \ - " processors for new architectures.\n" \ - "\n" \ - "Several items have to be defined as class attributes in the final" \ - " class:\n" \ - "* *_key*: a string providing a small name used to identify the" \ - " architecture;\n" \ - "* *_desc*: a string for a human readable description of the" \ - " new architecture;\n" \ - "* *_memory_size*: size of the memory space, as a" \ - " pychrysalide.analysis.BinContent.MemoryDataSize value;\n" \ - "* *_ins_min_size*: size of the smallest instruction, as a" \ - " pychrysalide.analysis.BinContent.MemoryDataSize value;\n" \ - "* *_virtual_space*: a boolean value indicating if the architecture"\ - " supports a virtual space.\n" \ - "\n" \ - "Calls to the *__init__* constructor of this abstract object expect"\ - " the following arguments as keyword parameters:\n" \ - "* *endianness*: endianness to apply to the binary content to" \ - " disassemble, as a pychrysalide.analysis.BinContent.SourceEndian" \ - " value.\n" - - - /* ------------------------ GLUE POUR CREATION DEPUIS PYTHON ------------------------ */ @@ -308,6 +283,29 @@ static int py_arch_processor_init(PyObject *self, PyObject *args, PyObject *kwds static char *kwlist[] = { "endianness", NULL }; +#define ARCH_PROCESSOR_DOC \ + "The ArchProcessor object aims to get subclassed to create" \ + " processors for new architectures.\n" \ + "\n" \ + "Several items have to be defined as class attributes in the final" \ + " class:\n" \ + "* *_key*: a string providing a small name used to identify the" \ + " architecture;\n" \ + "* *_desc*: a string for a human readable description of the" \ + " new architecture;\n" \ + "* *_memory_size*: size of the memory space, as a" \ + " pychrysalide.analysis.BinContent.MemoryDataSize value;\n" \ + "* *_ins_min_size*: size of the smallest instruction, as a" \ + " pychrysalide.analysis.BinContent.MemoryDataSize value;\n" \ + "* *_virtual_space*: a boolean value indicating if the architecture"\ + " supports a virtual space.\n" \ + "\n" \ + "Calls to the *__init__* constructor of this abstract object expect"\ + " the following arguments as keyword parameters:\n" \ + "* *endianness*: endianness to apply to the binary content to" \ + " disassemble, as a pychrysalide.analysis.BinContent.SourceEndian" \ + " value." + /* Récupération des paramètres */ ret = PyArg_ParseTupleAndKeywords(args, kwds, "I", kwlist, &endianness); |