diff options
Diffstat (limited to 'plugins/dex/python/pool.c')
-rw-r--r-- | plugins/dex/python/pool.c | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/plugins/dex/python/pool.c b/plugins/dex/python/pool.c index f68fe98..ddfc900 100644 --- a/plugins/dex/python/pool.c +++ b/plugins/dex/python/pool.c @@ -100,19 +100,19 @@ static PyObject *py_dex_pool_get_raw_type(PyObject *self, PyObject *args) type_id_item type_id; /* Elément à transmettre */ bool status; /* Bilan de l'opération */ -#define DEX_POOL_GET_RAW_TYPE_METHOD PYTHON_METHOD_DEF \ -( \ - get_raw_type, "$self, index, /", \ - METH_VARARGS, py_dex_pool, \ - "Provide the raw data of a given type in the Dex pool as a pychrysalide.PyStructObject" \ - " instance." \ - "\n" \ - "Indexes start at 0.\n" \ - "\n" \ - "All the fields are extracted from the Dex *type_id_item* structure:\n" \ - "* descriptor_idx: index into the string_ids list for the descriptor string.\n" \ - "\n" \ - "In case of error, the function returns None." \ +#define DEX_POOL_GET_RAW_TYPE_METHOD PYTHON_METHOD_DEF \ +( \ + get_raw_type, "$self, index, /", \ + METH_VARARGS, py_dex_pool, \ + "Provide the raw data of a given type in the Dex pool as a pychrysalide.StructObject" \ + " instance." \ + "\n" \ + "Indexes start at 0.\n" \ + "\n" \ + "All the fields are extracted from the Dex *type_id_item* structure:\n" \ + "* descriptor_idx: index into the string_ids list for the descriptor string.\n" \ + "\n" \ + "In case of error, the function returns None." \ ) ret = PyArg_ParseTuple(args, "I", &index); @@ -158,21 +158,21 @@ static PyObject *py_dex_pool_get_raw_field(PyObject *self, PyObject *args) field_id_item field_id; /* Elément à transmettre */ bool status; /* Bilan de l'opération */ -#define DEX_POOL_GET_RAW_FIELD_METHOD PYTHON_METHOD_DEF \ -( \ - get_raw_field, "$self, index, /", \ - METH_VARARGS, py_dex_pool, \ - "Provide the raw data of a given field in the Dex pool as a pychrysalide.PyStructObject" \ - " instance." \ - "\n" \ - "Indexes start at 0.\n" \ - "\n" \ - "All the fields are extracted from the Dex *field_id_item* structure:\n" \ - "* class_idx: index into the type_ids list for the definer of the field ;\n" \ - "* type_idx: index into the type_ids list for the type of the field ;\n" \ - "* name_idx: index into the string_ids list for the name of the field.\n" \ - "\n" \ - "In case of error, the function returns None." \ +#define DEX_POOL_GET_RAW_FIELD_METHOD PYTHON_METHOD_DEF \ +( \ + get_raw_field, "$self, index, /", \ + METH_VARARGS, py_dex_pool, \ + "Provide the raw data of a given field in the Dex pool as a pychrysalide.StructObject" \ + " instance." \ + "\n" \ + "Indexes start at 0.\n" \ + "\n" \ + "All the fields are extracted from the Dex *field_id_item* structure:\n" \ + "* class_idx: index into the type_ids list for the definer of the field ;\n" \ + "* type_idx: index into the type_ids list for the type of the field ;\n" \ + "* name_idx: index into the string_ids list for the name of the field.\n" \ + "\n" \ + "In case of error, the function returns None." \ ) ret = PyArg_ParseTuple(args, "I", &index); @@ -218,21 +218,21 @@ static PyObject *py_dex_pool_get_raw_prototype(PyObject *self, PyObject *args) proto_id_item proto_id; /* Elément à transmettre */ bool status; /* Bilan de l'opération */ -#define DEX_POOL_GET_RAW_PROTOTYPE_METHOD PYTHON_METHOD_DEF \ -( \ - get_raw_prototype, "$self, index, /", \ - METH_VARARGS, py_dex_pool, \ - "Provide the raw data of a given prototype in the Dex pool as a pychrysalide.PyStructObject" \ - " instance." \ - "\n" \ - "Indexes start at 0.\n" \ - "\n" \ - "All the fields are extracted from the Dex *proto_id_item* structure:\n" \ - "* shorty_idx: index into the *string_ids* list for the short-form descriptor string ;\n" \ - "* return_type_idx: index into the *type_ids* list for the return type ;\n" \ - "* parameters_off: offset from the start of the Dex file to the list of parameter types." \ - "\n" \ - "In case of error, the function returns None." \ +#define DEX_POOL_GET_RAW_PROTOTYPE_METHOD PYTHON_METHOD_DEF \ +( \ + get_raw_prototype, "$self, index, /", \ + METH_VARARGS, py_dex_pool, \ + "Provide the raw data of a given prototype in the Dex pool as a pychrysalide.StructObject" \ + " instance." \ + "\n" \ + "Indexes start at 0.\n" \ + "\n" \ + "All the fields are extracted from the Dex *proto_id_item* structure:\n" \ + "* shorty_idx: index into the *string_ids* list for the short-form descriptor string ;\n" \ + "* return_type_idx: index into the *type_ids* list for the return type ;\n" \ + "* parameters_off: offset from the start of the Dex file to the list of parameter types." \ + "\n" \ + "In case of error, the function returns None." \ ) ret = PyArg_ParseTuple(args, "I", &index); @@ -278,21 +278,21 @@ static PyObject *py_dex_pool_get_raw_method(PyObject *self, PyObject *args) method_id_item method_id; /* Elément à transmettre */ bool status; /* Bilan de l'opération */ -#define DEX_POOL_GET_RAW_METHOD_METHOD PYTHON_METHOD_DEF \ -( \ - get_raw_method, "$self, index, /", \ - METH_VARARGS, py_dex_pool, \ - "Provide the raw data of a given method in the Dex pool as a pychrysalide.PyStructObject" \ - " instance." \ - "\n" \ - "Indexes start at 0.\n" \ - "\n" \ - "All the fields are extracted from the Dex *method_id_item* structure:\n" \ - "* class_idx: index into the type_ids list for the definer of the method ;\n" \ - "* proto_idx: index into the proto_ids list for the prototype of the method ;\n" \ - "* name_idx: index into the string_ids list for the name of the method.\n" \ - "\n" \ - "In case of error, the function returns None." \ +#define DEX_POOL_GET_RAW_METHOD_METHOD PYTHON_METHOD_DEF \ +( \ + get_raw_method, "$self, index, /", \ + METH_VARARGS, py_dex_pool, \ + "Provide the raw data of a given method in the Dex pool as a pychrysalide.StructObject" \ + " instance." \ + "\n" \ + "Indexes start at 0.\n" \ + "\n" \ + "All the fields are extracted from the Dex *method_id_item* structure:\n" \ + "* class_idx: index into the type_ids list for the definer of the method ;\n" \ + "* proto_idx: index into the proto_ids list for the prototype of the method ;\n" \ + "* name_idx: index into the string_ids list for the name of the method.\n" \ + "\n" \ + "In case of error, the function returns None." \ ) ret = PyArg_ParseTuple(args, "I", &index); @@ -342,7 +342,7 @@ static PyObject *py_dex_pool_get_raw_class(PyObject *self, PyObject *args) ( \ get_raw_class, "$self, index, /", \ METH_VARARGS, py_dex_pool, \ - "Provide the raw data of a given class in the Dex pool as a pychrysalide.PyStructObject" \ + "Provide the raw data of a given class in the Dex pool as a pychrysalide.StructObject" \ " instance." \ "\n" \ "Indexes start at 0.\n" \ |