From eff9048c5138aca0cdd851f998c0f425a891532b Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Thu, 19 Dec 2019 23:48:36 +0700
Subject: [PATCH] [*] Fix. Arrays of type PyMethodDef were made static.

---
 include/wrapping_dap_enc_http.h    | 2 +-
 include/wrapping_dap_http_folder.h | 2 +-
 include/wrapping_dap_mempool.h     | 4 ++--
 include/wrapping_dap_stream.h      | 2 +-
 include/wrapping_dap_stream_ctl.h  | 2 +-
 include/wrapping_http.h            | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/wrapping_dap_enc_http.h b/include/wrapping_dap_enc_http.h
index 9ca1da1c..1c2f26fa 100644
--- a/include/wrapping_dap_enc_http.h
+++ b/include/wrapping_dap_enc_http.h
@@ -10,7 +10,7 @@ typedef struct PyDapEncHttp{
 
 PyObject *enc_http_add_proc_py(PyObject *self, PyObject *args);
 
-PyMethodDef DapEncHttpMethods[] = {
+static PyMethodDef DapEncHttpMethods[] = {
     {"addProc", enc_http_add_proc_py, METH_VARARGS | METH_STATIC, ""},
     {NULL, NULL, 0, NULL}
 };
diff --git a/include/wrapping_dap_http_folder.h b/include/wrapping_dap_http_folder.h
index 2383a189..62af7883 100644
--- a/include/wrapping_dap_http_folder.h
+++ b/include/wrapping_dap_http_folder.h
@@ -13,7 +13,7 @@ typedef struct PyDapHttpFolder{
 
 PyObject *dap_http_folder_add_py(PyObject *self, PyObject *args);
 
-PyMethodDef DapHttpFolderMethods[] = {
+static PyMethodDef DapHttpFolderMethods[] = {
     {"add", (PyCFunction)dap_http_folder_add_py, METH_VARARGS | METH_STATIC, ""},
     {NULL, NULL, 0, NULL}
 };
diff --git a/include/wrapping_dap_mempool.h b/include/wrapping_dap_mempool.h
index 3ec894e6..8487d6aa 100644
--- a/include/wrapping_dap_mempool.h
+++ b/include/wrapping_dap_mempool.h
@@ -12,7 +12,7 @@ typedef struct PyDapMempool{
 
 PyObject *dap_chain_mempool_add_proc_py(PyObject *self, PyObject *args);
 
-PyMethodDef  DapMempoolMethods[] = {
+static PyMethodDef  DapMempoolMethods[] = {
         {NULL,NULL,0,NULL}
 };
 
@@ -59,4 +59,4 @@ static PyTypeObject DapMempool_DapMempoolType = {
 };
 
 
-#endif //_WRAPPING_DAP_MEMPOOL_
\ No newline at end of file
+#endif //_WRAPPING_DAP_MEMPOOL_
diff --git a/include/wrapping_dap_stream.h b/include/wrapping_dap_stream.h
index c93b1d5a..b2a20b9b 100644
--- a/include/wrapping_dap_stream.h
+++ b/include/wrapping_dap_stream.h
@@ -13,7 +13,7 @@ typedef struct PyDapStream{
 
 PyObject *dap_stream_add_proc_http_py(PyObject *self, PyObject *args);
 
-PyMethodDef DapStreamMethods[] = {
+static PyMethodDef DapStreamMethods[] = {
     {"addProcHttp", dap_stream_add_proc_http_py, METH_VARARGS | METH_STATIC, ""},
     {NULL, NULL, 0, NULL}
 };
diff --git a/include/wrapping_dap_stream_ctl.h b/include/wrapping_dap_stream_ctl.h
index 7ec33c23..bfd6805f 100644
--- a/include/wrapping_dap_stream_ctl.h
+++ b/include/wrapping_dap_stream_ctl.h
@@ -17,7 +17,7 @@ dap_enc_key_type_t dap_enc_key_type;
 PyObject *dap_stream_ctl_add_proc_py(PyObject *self, PyObject *args);
 int dap_stream_ctl_init_py(dap_enc_key_type_t key, uint32_t size);
 
-PyMethodDef DapStreamCtlMethods[] = {
+static PyMethodDef DapStreamCtlMethods[] = {
     {"addProcHttp", dap_stream_ctl_add_proc_py, METH_VARARGS | METH_STATIC, ""},
     {NULL, NULL, 0, NULL}
 };
diff --git a/include/wrapping_http.h b/include/wrapping_http.h
index 9c4841fd..ac48c64c 100644
--- a/include/wrapping_http.h
+++ b/include/wrapping_http.h
@@ -11,7 +11,7 @@ typedef struct PyDapHttp{
 
 PyObject *dap_http_new_py(PyObject *self, PyObject *args);
 
-PyMethodDef DapHttpMethods[] = {
+static PyMethodDef DapHttpMethods[] = {
     {"new", dap_http_new_py, METH_VARARGS | METH_STATIC, ""},
     {NULL, NULL, 0, NULL}
 };
-- 
GitLab