303 results found
1525981 avatarpython/cpython
Include/cpython/pythonrun.h
10 matches
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)
1525981 avatarpython/cpython
Python/pythonrun.c
14 matches
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)
31791204 avatarrelativty/Relativty
Relativty_Driver/include/Python/pythonrun.h
10 matches
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)
2336717 avatarkbengine/kbengine
kbe/src/lib/python/Python/pythonrun.c
11 matches
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)
6067010 avatardomoticz/domoticz
hardware/plugins/Include/pythonrun.h
7 matches
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)
2336717 avatarkbengine/kbengine
kbe/src/lib/python/Include/pythonrun.h
7 matches
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)
191389 avatardamonkohler/sl4a
python/src/Python/pythonrun.c
11 matches
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 *)
191389 avatardamonkohler/sl4a
python/src/Include/pythonrun.h
7 matches
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)
900466 avatarzatosource/zato
code/bundle-ext/python-windows/python-3.10.8/include/cpython/pythonrun.h
10 matches
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)
52924476 avatarblender/blender
source/blender/python/intern/bpy_interface_run.cc
5 matches
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);