diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/ceval.h | 2 | ||||
-rw-r--r-- | Include/compile.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index e1af801..9bb145d 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -48,6 +48,8 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void); PyAPI_FUNC(char *) PyEval_GetFuncName(PyObject *); PyAPI_FUNC(char *) PyEval_GetFuncDesc(PyObject *); +PyAPI_FUNC(PyObject *) PyEval_GetCallStats(PyObject *); + /* this used to be handled on a per-thread basis - now just two globals */ PyAPI_DATA(volatile int) _Py_Ticker; PyAPI_DATA(int) _Py_CheckInterval; diff --git a/Include/compile.h b/Include/compile.h index a462d77..594d7df 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -34,6 +34,12 @@ typedef struct { #define CO_VARKEYWORDS 0x0008 #define CO_NESTED 0x0010 #define CO_GENERATOR 0x0020 +/* The CO_NOFREE flag is set if there are no free or cell variables. + This information is redundant, but it allows a single flag test + to determine whether there is any extra work to be done when the + call frame it setup. +*/ +#define CO_NOFREE 0x0040 /* XXX Temporary hack. Until generators are a permanent part of the language, we need a way for a code object to record that generators were *possible* when it was compiled. This is so code dynamically |