From 5f6f9f6bec22eac54a54bb04a1c4582745a18dfb Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Sun, 29 Nov 2020 19:58:49 +0000 Subject: [PATCH] adjusted the c_bindings to a different name --- src/binary_c_python.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/binary_c_python.c b/src/binary_c_python.c index e6634e959..d5b062972 100644 --- a/src/binary_c_python.c +++ b/src/binary_c_python.c @@ -129,18 +129,18 @@ static PyMethodDef module_methods[] = { /* Initialise the module. Removed the part which supports python 2 here on 17-03-2020 */ /* Python 3+ */ -static struct PyModuleDef Py_binary_c_python_api = +static struct PyModuleDef Py__binary_c_bindings = { PyModuleDef_HEAD_INIT, - "binary_c_python_api", /* name of module */ - "binary_c_python_api docs", /* module documentation, may be NULL */ + "_binary_c_bindings", /* name of module */ + "TODO", /* module documentation, may be NULL */ -1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */ module_methods }; -PyMODINIT_FUNC PyInit_binary_c_python_api(void) +PyMODINIT_FUNC PyInit__binary_c_bindings(void) { - return PyModule_Create(&Py_binary_c_python_api); + return PyModule_Create(&Py__binary_c_bindings); } /* ============================================================================== */ @@ -276,7 +276,7 @@ static PyObject* binary_c_run_system(PyObject *self, PyObject *args, PyObject *k "Error (in function: binary_c_run_system): %s\n", error_buffer); } - + Safe_free(buffer); Safe_free(error_buffer); -- GitLab