summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-03-01 16:55:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-03-01 16:55:42 (GMT)
commit056a69cba6c6249b12ceffb7f00c324f5a8f16d4 (patch)
tree5d5a5b96fc65032716e6713b9c706bd31b281b38
parentc9066cafbae56842f19217efcc712519763b52ff (diff)
downloadcpython-056a69cba6c6249b12ceffb7f00c324f5a8f16d4.zip
cpython-056a69cba6c6249b12ceffb7f00c324f5a8f16d4.tar.gz
cpython-056a69cba6c6249b12ceffb7f00c324f5a8f16d4.tar.bz2
Reconst parameters that lost their const in the AST merge.
-rw-r--r--Include/pythonrun.h4
-rw-r--r--Python/pythonrun.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index feb79ae..1ecb3d7 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -31,8 +31,8 @@ PyAPI_FUNC(int) Py_IsInitialized(void);
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 *);
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index bbe9352..a98c85a 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -638,7 +638,7 @@ initsite(void)
/* 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)