| 1 |
#ifndef Py_CODE_H |
| 2 |
#define Py_CODE_H |
| 3 |
#ifdef __cplusplus |
| 4 |
extern "C" { |
| 5 |
#endif |
| 6 |
|
| 7 |
typedef struct { |
| 8 |
PyObject_HEAD |
| 9 |
PyObject *co_name; |
| 10 |
PyObject *co_filename; |
| 11 |
int co_argcount; |
| 12 |
int co_flags; |
| 13 |
} PyCodeObject; |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#define CO_OPTIMIZED 0x0001 |
| 18 |
#define CO_NEWLOCALS 0x0002 |
| 19 |
#define CO_VARARGS 0x0004 |
| 20 |
#define CO_VARKEYWORDS 0x0008 |
| 21 |
#define CO_NESTED 0x0010 |
| 22 |
#define CO_GENERATOR 0x0020 |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
#define CO_COROUTINE 0x0080 |
| 27 |
#define CO_ITERABLE_COROUTINE 0x0100 |
| 28 |
|
| 29 |
#define CO_FUTURE_DIVISION 0x020000 |
| 30 |
#define CO_FUTURE_ABSOLUTE_IMPORT 0x040000 |
| 31 |
#define CO_FUTURE_WITH_STATEMENT 0x080000 |
| 32 |
#define CO_FUTURE_PRINT_FUNCTION 0x100000 |
| 33 |
#define CO_FUTURE_UNICODE_LITERALS 0x200000 |
| 34 |
|
| 35 |
#ifdef __cplusplus |
| 36 |
} |
| 37 |
#endif |
| 38 |
#endif |