| 1 |
|
|---|
| 2 | /* Interfaces to parse and execute pieces of python code */
|
|---|
| 3 |
|
|---|
| 4 | #ifndef Py_PYTHONRUN_H
|
|---|
| 5 | #define Py_PYTHONRUN_H
|
|---|
| 6 | #ifdef __cplusplus
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
|
|---|
| 11 | CO_FUTURE_WITH_STATEMENT)
|
|---|
| 12 | #define PyCF_MASK_OBSOLETE (CO_NESTED)
|
|---|
| 13 | #define PyCF_SOURCE_IS_UTF8 0x0100
|
|---|
| 14 | #define PyCF_DONT_IMPLY_DEDENT 0x0200
|
|---|
| 15 | #define PyCF_ONLY_AST 0x0400
|
|---|
| 16 |
|
|---|
| 17 | typedef struct {
|
|---|
| 18 | int cf_flags; /* bitmask of CO_xxx flags relevant to future */
|
|---|
| 19 | } PyCompilerFlags;
|
|---|
| 20 |
|
|---|
| 21 | PyAPI_FUNC(void) Py_SetProgramName(char *);
|
|---|
| 22 | PyAPI_FUNC(char *) Py_GetProgramName(void);
|
|---|
| 23 |
|
|---|
| 24 | PyAPI_FUNC(void) Py_SetPythonHome(char *);
|
|---|
| 25 | PyAPI_FUNC(char *) Py_GetPythonHome(void);
|
|---|
|
|---|