• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_INTERNAL_PYTHONRUN_H
2 #define Py_INTERNAL_PYTHONRUN_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #ifndef Py_BUILD_CORE
8 #  error "this header requires Py_BUILD_CORE define"
9 #endif
10 
11 extern int _PyRun_SimpleFileObject(
12     FILE *fp,
13     PyObject *filename,
14     int closeit,
15     PyCompilerFlags *flags);
16 
17 extern int _PyRun_AnyFileObject(
18     FILE *fp,
19     PyObject *filename,
20     int closeit,
21     PyCompilerFlags *flags);
22 
23 extern int _PyRun_InteractiveLoopObject(
24     FILE *fp,
25     PyObject *filename,
26     PyCompilerFlags *flags);
27 
28 extern const char* _Py_SourceAsString(
29     PyObject *cmd,
30     const char *funcname,
31     const char *what,
32     PyCompilerFlags *cf,
33     PyObject **cmd_copy);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 #endif  // !Py_INTERNAL_PYTHONRUN_H
39 
40