From: Martin v. Löwis Date: Wed, 1 Mar 2006 16:55:42 +0000 (+0000) Subject: Reconst parameters that lost their const in the AST merge. X-Git-Tag: v2.5a0~435 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=056a69cba6c6249b12ceffb7f00c324f5a8f16d4;p=python Reconst parameters that lost their const in the AST merge. --- diff --git a/Include/pythonrun.h b/Include/pythonrun.h index feb79ae6da..1ecb3d71e7 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 bbe935297d..a98c85ac10 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)