From: Stefan Behnel Date: Wed, 10 Sep 2008 14:25:06 +0000 (+0200) Subject: signature constification to remove C++ compiler warnings (by Ondrej) X-Git-Tag: 0.9.9.2.beta~95^2~9^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0708b991ca1b8d990949a31f5a24896f5240aeac;p=cython.git signature constification to remove C++ compiler warnings (by Ondrej) --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 6d3100eb..6429f85b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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;