]>
Commit | Line | Data |
---|---|---|
4710c53d | 1 | \r |
2 | #ifndef Py_COMPILE_H\r | |
3 | #define Py_COMPILE_H\r | |
4 | \r | |
5 | #include "code.h"\r | |
6 | \r | |
7 | #ifdef __cplusplus\r | |
8 | extern "C" {\r | |
9 | #endif\r | |
10 | \r | |
11 | /* Public interface */\r | |
12 | struct _node; /* Declare the existence of this type */\r | |
13 | PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);\r | |
14 | \r | |
15 | /* Future feature support */\r | |
16 | \r | |
17 | typedef struct {\r | |
18 | int ff_features; /* flags set by future statements */\r | |
19 | int ff_lineno; /* line number of last future statement */\r | |
20 | } PyFutureFeatures;\r | |
21 | \r | |
22 | #define FUTURE_NESTED_SCOPES "nested_scopes"\r | |
23 | #define FUTURE_GENERATORS "generators"\r | |
24 | #define FUTURE_DIVISION "division"\r | |
25 | #define FUTURE_ABSOLUTE_IMPORT "absolute_import"\r | |
26 | #define FUTURE_WITH_STATEMENT "with_statement"\r | |
27 | #define FUTURE_PRINT_FUNCTION "print_function"\r | |
28 | #define FUTURE_UNICODE_LITERALS "unicode_literals"\r | |
29 | \r | |
30 | \r | |
31 | struct _mod; /* Declare the existence of this type */\r | |
32 | PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,\r | |
33 | PyCompilerFlags *, PyArena *);\r | |
34 | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);\r | |
35 | \r | |
36 | \r | |
37 | #ifdef __cplusplus\r | |
38 | }\r | |
39 | #endif\r | |
40 | #endif /* !Py_COMPILE_H */\r |