diff options
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/compile.h | 2 | ||||
| -rw-r--r-- | Include/pythonrun.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h index 45854e9..deb8ee8 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -57,6 +57,8 @@ typedef struct { } PyFutureFeatures; DL_IMPORT(PyFutureFeatures *) PyNode_Future(struct _node *, char *); +DL_IMPORT(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *, + PyCompilerFlags *); #define NESTED_SCOPES_DEFAULT 0 #define FUTURE_NESTED_SCOPES "nested_scopes" diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 13ed471..3f9f70b 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -7,6 +7,10 @@ extern "C" { #endif +typedef struct { + int cf_nested_scopes; +} PyCompilerFlags; + DL_IMPORT(void) Py_SetProgramName(char *); DL_IMPORT(char *) Py_GetProgramName(void); @@ -26,6 +30,7 @@ DL_IMPORT(int) PyRun_SimpleString(char *); DL_IMPORT(int) PyRun_SimpleFile(FILE *, char *); DL_IMPORT(int) PyRun_SimpleFileEx(FILE *, char *, int); DL_IMPORT(int) PyRun_InteractiveOne(FILE *, char *); +DL_IMPORT(int) PyRun_InteractiveOneFlags(FILE *, char *, PyCompilerFlags *); DL_IMPORT(int) PyRun_InteractiveLoop(FILE *, char *); DL_IMPORT(struct _node *) PyParser_SimpleParseString(char *, int); |
