Browse code

app_python Avoid collission in name space - rename init_modules to ap_init_modules

Olle E. Johansson authored on 13/11/2014 11:16:25
Showing 3 changed files
... ...
@@ -43,7 +43,7 @@
43 43
 #include "mod_Logger.h"
44 44
 
45 45
 
46
-int init_modules(void)
46
+int ap_init_modules(void)
47 47
 {
48 48
     init_mod_Router();
49 49
     init_mod_Core();
... ...
@@ -26,6 +26,6 @@
26 26
 #include <Python.h>
27 27
 
28 28
 extern PyMethodDef RouterMethods[];
29
-int init_modules(void);
29
+int ap_init_modules(void);
30 30
 
31 31
 #endif
... ...
@@ -166,7 +166,7 @@ static int mod_init(void)
166 166
     PyList_Insert(sys_path, 0, pDir);
167 167
     Py_DECREF(pDir);
168 168
 
169
-    if (init_modules() != 0) {
169
+    if (ap_init_modules() != 0) {
170 170
 	if (!PyErr_Occurred())
171 171
 	    PyErr_SetString(PyExc_AttributeError, "init_modules() has failed");
172 172
 	python_handle_exception("mod_init");