[Python-checkins] r42731 - in python/trunk: Include/pythonrun.h Python/pythonrun.c
martin.v.loewis
python-checkins at python.org
Wed Mar 1 17:55:44 CET 2006
Author: martin.v.loewis
Date: Wed Mar 1 17:55:42 2006
New Revision: 42731
Modified:
python/trunk/Include/pythonrun.h
python/trunk/Python/pythonrun.c
Log:
Reconst parameters that lost their const in the AST merge.
Modified: python/trunk/Include/pythonrun.h
==============================================================================
--- python/trunk/Include/pythonrun.h (original)
+++ python/trunk/Include/pythonrun.h Wed Mar 1 17:55:42 2006
@@ -31,8 +31,8 @@
PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);
PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
-PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, char *, PyCompilerFlags *);
-PyAPI_FUNC(int) PyRun_AnyFileExFlags(FILE *, char *, int, PyCompilerFlags *);
+PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *);
+PyAPI_FUNC(int) PyRun_AnyFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);
PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);
Modified: python/trunk/Python/pythonrun.c
==============================================================================
--- python/trunk/Python/pythonrun.c (original)
+++ python/trunk/Python/pythonrun.c Wed Mar 1 17:55:42 2006
@@ -638,7 +638,7 @@
/* Parse input from a file and execute it */
int
-PyRun_AnyFileExFlags(FILE *fp, char *filename, int closeit,
+PyRun_AnyFileExFlags(FILE *fp, const char *filename, int closeit,
PyCompilerFlags *flags)
{
if (filename == NULL)
More information about the Python-checkins
mailing list