diff options
-rw-r--r-- | Include/pythonrun.h | 4 | ||||
-rw-r--r-- | Python/pythonrun.c | 2 |
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) |