33 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags( |
34 | FILE *fp, |
70 | PyAPI_FUNC(int) PyRun_InteractiveLoop(FILE *f, const char *p); |
71 | PyAPI_FUNC(PyObject *) PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l); |
72 | PyAPI_FUNC(PyObject *) PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c); |
73 | PyAPI_FUNC(PyObject *) PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, PyCompilerFlags *flags); |
87 | #define PyRun_File(fp, p, s, g, l) \ |
88 | PyRun_FileExFlags((fp), (p), (s), (g), (l), 0, NULL) |
50 | static int PyRun_InteractiveOneObjectEx(FILE *, PyObject *, PyCompilerFlags *); |
51 | static PyObject* pyrun_file(FILE *fp, PyObject *filename, int start, |
52 | PyObject *globals, PyObject *locals, int closeit, |
521 | v = pyrun_file(fp, filename, Py_file_input, dict, dict, |
522 | closeit, flags); |
1274 | static PyObject * |
1275 | pyrun_file(FILE *fp, PyObject *filename, int start, PyObject *globals, |
1276 | PyObject *locals, int closeit, PyCompilerFlags *flags) |
89 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags( |
90 | FILE *fp, |
157 | PyAPI_FUNC(int) PyRun_InteractiveLoop(FILE *f, const char *p); |
158 | PyAPI_FUNC(PyObject *) PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l); |
159 | PyAPI_FUNC(PyObject *) PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c); |
160 | PyAPI_FUNC(PyObject *) PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, PyCompilerFlags *flags); |
174 | #define PyRun_File(fp, p, s, g, l) \ |
175 | PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) |
429 | v = PyRun_FileExFlags(fp, filename, Py_file_input, d, d, |
430 | closeit, flags); |
964 | PyObject * |
965 | PyRun_FileExFlags(FILE *fp, const char *filename_str, int start, PyObject *globals, |
966 | PyObject *locals, int closeit, PyCompilerFlags *flags) |
1533 | #undef PyRun_File |
1534 | PyAPI_FUNC(PyObject *) |
1535 | PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l) |
104 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags( |
105 | FILE *fp, |
158 | #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL) |
159 | #define PyRun_File(fp, p, s, g, l) \ |
160 | PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) |
161 | #define PyRun_FileEx(fp, p, s, g, l, c) \ |
162 | PyRun_FileExFlags(fp, p, s, g, l, c, NULL) |
163 | #define PyRun_FileFlags(fp, p, s, g, l, flags) \ |
164 | PyRun_FileExFlags(fp, p, s, g, l, 0, flags) |
90 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags( |
91 | FILE *fp, |
144 | #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL) |
145 | #define PyRun_File(fp, p, s, g, l) \ |
146 | PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) |
147 | #define PyRun_FileEx(fp, p, s, g, l, c) \ |
148 | PyRun_FileExFlags(fp, p, s, g, l, c, NULL) |
149 | #define PyRun_FileFlags(fp, p, s, g, l, flags) \ |
150 | PyRun_FileExFlags(fp, p, s, g, l, 0, flags) |
930 | } else { |
931 | v = PyRun_FileExFlags(fp, filename, Py_file_input, d, d, |
932 | closeit, flags); |
1303 | PyObject * |
1304 | PyRun_FileExFlags(FILE *fp, const char *filename, int start, PyObject *globals, |
1305 | PyObject *locals, int closeit, PyCompilerFlags *flags) |
1886 | #undef PyRun_File |
1887 | PyAPI_FUNC(PyObject *) |
61 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const char *, int, |
62 | PyObject *, PyObject *, int, |
94 | #define PyRun_InteractiveLoop(f, p) PyRun_InteractiveLoopFlags(f, p, NULL) |
95 | #define PyRun_File(fp, p, s, g, l) \ |
96 | PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) |
97 | #define PyRun_FileEx(fp, p, s, g, l, c) \ |
98 | PyRun_FileExFlags(fp, p, s, g, l, c, NULL) |
99 | #define PyRun_FileFlags(fp, p, s, g, l, flags) \ |
100 | PyRun_FileExFlags(fp, p, s, g, l, 0, flags) |
47 | PyAPI_FUNC(PyObject *) PyRun_FileExFlags( |
48 | FILE *fp, |
93 | PyAPI_FUNC(int) PyRun_InteractiveLoop(FILE *f, const char *p); |
94 | PyAPI_FUNC(PyObject *) PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l); |
95 | PyAPI_FUNC(PyObject *) PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c); |
96 | PyAPI_FUNC(PyObject *) PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, PyCompilerFlags *flags); |
110 | #define PyRun_File(fp, p, s, g, l) \ |
111 | PyRun_FileExFlags(fp, p, s, g, l, 0, NULL) |
69 | * Compatibility wrapper for #PyRun_FileExFlags. |
70 | */ |
71 | static PyObject *python_compat_wrapper_PyRun_FileExFlags(FILE *fp, |
72 | const char *filepath, |
79 | /* Previously we used #PyRun_File to run directly the code on a FILE |
80 | * object, but as written in the Python/C API Ref Manual, chapter 2, |
89 | if (!use_file_handle_workaround) { |
90 | return PyRun_FileExFlags(fp, filepath, start, globals, locals, closeit, flags); |