Added a test for the ability to specify a class attribute in Formatter configuration...
[python.git] / Include / compile.h
blob029cb17ab2d4813540b06ed58121dcd26bbc31e5
1 #ifndef Py_CODE_H
2 #include "code.h"
3 #endif
5 #ifndef Py_COMPILE_H
6 #define Py_COMPILE_H
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 /* Public interface */
12 struct _node; /* Declare the existence of this type */
13 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
15 /* Future feature support */
17 typedef struct {
18 int ff_features; /* flags set by future statements */
19 int ff_lineno; /* line number of last future statement */
20 } PyFutureFeatures;
22 #define FUTURE_NESTED_SCOPES "nested_scopes"
23 #define FUTURE_GENERATORS "generators"
24 #define FUTURE_DIVISION "division"
26 struct _mod; /* Declare the existence of this type */
27 PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
28 PyCompilerFlags *, PyArena *);
29 PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
31 #define ERR_LATE_FUTURE \
32 "from __future__ imports must occur at the beginning of the file"
34 #ifdef __cplusplus
36 #endif
37 #endif /* !Py_COMPILE_H */