diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-05-08 15:53:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-05-08 15:53:00 (GMT) |
commit | 9cbb342f0c697bad082d8817513cd9771ade1b1f (patch) | |
tree | a8728ea7d5cb797ac71c0c14f8b6462d681df570 /plugins/dex/python | |
parent | 86ba53836168bcc591f532f2419fa290de601572 (diff) |
Defined an improved generic macro for Python methods.
Diffstat (limited to 'plugins/dex/python')
-rw-r--r-- | plugins/dex/python/format.c | 4 | ||||
-rw-r--r-- | plugins/dex/python/pool.c | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/dex/python/format.c b/plugins/dex/python/format.c index 9bbbfbd..f798981 100644 --- a/plugins/dex/python/format.c +++ b/plugins/dex/python/format.c @@ -124,8 +124,8 @@ static PyObject *py_dex_format_read_type_list(PyObject *self, PyObject *args) #define DEX_POOL_READ_TYPE_LIST_METHOD PYTHON_METHOD_DEF \ ( \ - "read_type_list", "$self, offset, /", \ - METH_VARARGS, py_dex_format_read_type_list, \ + read_type_list, "$self, offset, /", \ + METH_VARARGS, py_dex_format, \ "Provide the raw data of a given type list as an array of pychrysalide.PyStructObject" \ " instances." \ "\n" \ diff --git a/plugins/dex/python/pool.c b/plugins/dex/python/pool.c index 695e07f..971f163 100644 --- a/plugins/dex/python/pool.c +++ b/plugins/dex/python/pool.c @@ -102,8 +102,8 @@ static PyObject *py_dex_pool_get_raw_type(PyObject *self, PyObject *args) #define DEX_POOL_GET_RAW_TYPE_METHOD PYTHON_METHOD_DEF \ ( \ - "get_raw_type", "$self, index, /", \ - METH_VARARGS, py_dex_pool_get_raw_type, \ + 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" \ @@ -160,8 +160,8 @@ static PyObject *py_dex_pool_get_raw_field(PyObject *self, PyObject *args) #define DEX_POOL_GET_RAW_FIELD_METHOD PYTHON_METHOD_DEF \ ( \ - "get_raw_field", "$self, index, /", \ - METH_VARARGS, py_dex_pool_get_raw_field, \ + 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" \ @@ -220,8 +220,8 @@ static PyObject *py_dex_pool_get_raw_prototype(PyObject *self, PyObject *args) #define DEX_POOL_GET_RAW_PROTOTYPE_METHOD PYTHON_METHOD_DEF \ ( \ - "get_raw_prototype", "$self, index, /", \ - METH_VARARGS, py_dex_pool_get_raw_prototype, \ + 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" \ @@ -280,8 +280,8 @@ static PyObject *py_dex_pool_get_raw_method(PyObject *self, PyObject *args) #define DEX_POOL_GET_RAW_METHOD_METHOD PYTHON_METHOD_DEF \ ( \ - "get_raw_method", "$self, index, /", \ - METH_VARARGS, py_dex_pool_get_raw_method, \ + 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" \ @@ -340,8 +340,8 @@ static PyObject *py_dex_pool_get_raw_class(PyObject *self, PyObject *args) #define DEX_POOL_GET_RAW_CLASS_METHOD PYTHON_METHOD_DEF \ ( \ - "get_raw_class", "$self, index, /", \ - METH_VARARGS, py_dex_pool_get_raw_class, \ + 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" \ " instance." \ "\n" \ |