From caac44a9f08a2363479f8e83f6954d2f26fa7960 Mon Sep 17 00:00:00 2001 From: "alexey.stratulat" <alexey.stratulat@demlabs.net> Date: Fri, 13 Dec 2019 16:30:03 +0700 Subject: [PATCH] [*] Fix. Now some functions are called statically. --- include/wrapping_dap_chain_common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wrapping_dap_chain_common.h b/include/wrapping_dap_chain_common.h index a2028c4e..7feec9c3 100644 --- a/include/wrapping_dap_chain_common.h +++ b/include/wrapping_dap_chain_common.h @@ -16,7 +16,7 @@ typedef struct PyDapChainHashSlow{ PyObject *dap_chain_hash_slow_to_str_py(PyObject *self, PyObject *args); PyMethodDef DapChainHashSlowMethod[] = { - {"toStr", (PyCFunction)dap_chain_hash_slow_to_str_py, METH_VARARGS, ""}, + {"toStr", (PyCFunction)dap_chain_hash_slow_to_str_py, METH_VARARGS | METH_STATIC, ""}, {NULL, NULL, 0, NULL} }; @@ -76,7 +76,7 @@ PyObject *dap_chain_addr_from_str_py(PyObject *self, PyObject *args); PyMethodDef DapChainAddrMethods[] = { {"toStr", (PyCFunction)dap_chain_addr_to_str_py, METH_VARARGS, ""}, - {"fromStr", (PyCFunction)dap_chain_addr_from_str_py, METH_VARARGS, ""}, + {"fromStr", (PyCFunction)dap_chain_addr_from_str_py, METH_VARARGS | METH_STATIC, ""}, {NULL, NULL, 0, NULL} }; @@ -135,7 +135,7 @@ typedef struct PyDapChainNetId{ PyObject *dap_chain_net_id_from_str_py(PyObject *self, PyObject *args); PyMethodDef DapChainNetIdObjectMethods[] = { - {"fromStr", (PyCFunction)dap_chain_net_id_from_str_py, METH_VARARGS, ""}, + {"fromStr", (PyCFunction)dap_chain_net_id_from_str_py, METH_VARARGS | METH_STATIC, ""}, {NULL, NULL, 0, NULL} }; @@ -193,7 +193,7 @@ typedef struct PyDapChainNetSrvUID{ PyObject *dap_chain_net_srv_uid_from_str_py(PyObject *self, PyObject *args); PyMethodDef DapChainNetSrvUIDObject[] = { - {"fromStr", (PyCFunction)dap_chain_net_srv_uid_from_str_py, METH_VARARGS, ""}, + {"fromStr", (PyCFunction)dap_chain_net_srv_uid_from_str_py, METH_VARARGS | METH_STATIC, ""}, {NULL, NULL, 0, NULL} }; -- GitLab