signature constification to remove C++ compiler warnings (by Ondrej)
authorStefan Behnel <scoder@users.berlios.de>
Wed, 10 Sep 2008 14:25:06 +0000 (16:25 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 10 Sep 2008 14:25:06 +0000 (16:25 +0200)
Cython/Compiler/ModuleNode.py

index 6d3100eb35d2cad396b12f7ecfd2e78de2562239..6429f85b37cf208e5e77e171481f666700290865 100644 (file)
@@ -1958,11 +1958,11 @@ builtin_module_name_utility_code = [
 
 import_module_utility_code = [
 """
-static PyObject *__Pyx_ImportModule(char *name); /*proto*/
+static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
 ""","""
 #ifndef __PYX_HAVE_RT_ImportModule
 #define __PYX_HAVE_RT_ImportModule
-static PyObject *__Pyx_ImportModule(char *name) {
+static PyObject *__Pyx_ImportModule(const char *name) {
     PyObject *py_name = 0;
     PyObject *py_module = 0;
 
@@ -1987,11 +1987,11 @@ bad:
 
 type_import_utility_code = [
 """
-static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size);  /*proto*/
+static PyTypeObject *__Pyx_ImportType(const char *module_name, char *class_name, long size);  /*proto*/
 ""","""
 #ifndef __PYX_HAVE_RT_ImportType
 #define __PYX_HAVE_RT_ImportType
-static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name,
+static PyTypeObject *__Pyx_ImportType(const char *module_name, char *class_name,
     long size)
 {
     PyObject *py_module = 0;