diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-19 22:38:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-19 22:38:17 (GMT) |
commit | 5d09d85a5e606e5ac458abd37e72b73ce52541cb (patch) | |
tree | 9e9bd0581cc433fc7d8392a137b5a83dc46a9098 /plugins/pychrysalide/arch | |
parent | 93b452d5258aa07d24ec233f2de930343be1d974 (diff) |
Improved the use of the known format object.
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); |