10 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
11 CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
12 CO_FUTURE_UNICODE_LITERALS)
13 #define PyCF_MASK_OBSOLETE (CO_NESTED)
14 #define PyCF_SOURCE_IS_UTF8 0x0100
15 #define PyCF_DONT_IMPLY_DEDENT 0x0200
16 #define PyCF_ONLY_AST 0x0400
36 PyAPI_FUNC(
int) PyRun_AnyFileExFlags(FILE *, const
char *,
int, PyCompilerFlags *);
37 PyAPI_FUNC(
int) PyRun_SimpleStringFlags(const
char *, PyCompilerFlags *);
38 PyAPI_FUNC(
int) PyRun_SimpleFileExFlags(FILE *, const
char *,
int, PyCompilerFlags *);
39 PyAPI_FUNC(
int) PyRun_InteractiveOneFlags(FILE *, const
char *, PyCompilerFlags *);
40 PyAPI_FUNC(
int) PyRun_InteractiveLoopFlags(FILE *, const
char *, PyCompilerFlags *);
43 int, PyCompilerFlags *
flags,
45 PyAPI_FUNC(struct
_mod *) PyParser_ASTFromFile(FILE *, const
char *,
int,
47 PyCompilerFlags *,
int *,
49 #define PyParser_SimpleParseString(S, B) \
50 PyParser_SimpleParseStringFlags(S, B, 0)
51 #define PyParser_SimpleParseFile(FP, S, B) \
52 PyParser_SimpleParseFileFlags(FP, S, B, 0)
53 PyAPI_FUNC(
struct _node *) PyParser_SimpleParseStringFlags(const
char *,
int,
55 PyAPI_FUNC(struct
_node *) PyParser_SimpleParseFileFlags(FILE *, const
char *,
59 PyObject *, PyCompilerFlags *);
61 PyAPI_FUNC(PyObject *) PyRun_FileExFlags(FILE *, const
char *,
int,
62 PyObject *, PyObject *,
int,
65 #define Py_CompileString(str, p, s) Py_CompileStringFlags(str, p, s, NULL)
66 PyAPI_FUNC(PyObject *) Py_CompileStringFlags(const
char *, const
char *,
int,
72 PyAPI_FUNC(
void) PyErr_Display(PyObject *, PyObject *, PyObject *);
78 PyAPI_FUNC(
int) Py_FdIsInteractive(FILE *, const
char *);
84 #define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL)
85 #define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL)
86 #define PyRun_AnyFileEx(fp, name, closeit) \
87 PyRun_AnyFileExFlags(fp, name, closeit, NULL)
88 #define PyRun_AnyFileFlags(fp, name, flags) \
89 PyRun_AnyFileExFlags(fp, name, 0, flags)
90 #define PyRun_SimpleString(s) PyRun_SimpleStringFlags(s, NULL)
91 #define PyRun_SimpleFile(f, p) PyRun_SimpleFileExFlags(f, p, 0, NULL)
92 #define PyRun_SimpleFileEx(f, p, c) PyRun_SimpleFileExFlags(f, p, c, NULL)
93 #define PyRun_InteractiveOne(f, p) PyRun_InteractiveOneFlags(f, p, NULL)
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)
103 PyAPI_FUNC(
char *) Py_GetProgramFullPath(
void);
110 PyAPI_FUNC(const
char *) Py_GetPlatform(
void);
111 PyAPI_FUNC(const
char *) Py_GetCopyright(
void);
112 PyAPI_FUNC(const
char *) Py_GetCompiler(
void);
113 PyAPI_FUNC(const
char *) Py_GetBuildInfo(
void);
114 PyAPI_FUNC(const
char *) _Py_svnversion(
void);
115 PyAPI_FUNC(const
char *) Py_SubversionRevision(
void);
116 PyAPI_FUNC(const
char *) Py_SubversionShortBranch(
void);
117 PyAPI_FUNC(const
char *) _Py_hgidentifier(
void);
150 PyAPI_FUNC(
char *) PyOS_Readline(FILE *, FILE *,
char *);
152 PyAPI_DATA(
char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *,
char *);
153 PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
158 #define PYOS_STACK_MARGIN 2048
160 #if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300
162 #define USE_STACKCHECK
165 #ifdef USE_STACKCHECK