[Python-checkins] CVS: python/dist/src/Include ceval.h,2.40,2.41 compile.h,2.28,2.29
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 21 Mar 2001 18:32:50 -0800
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv28707/Include
Modified Files:
ceval.h compile.h
Log Message:
If a code object is compiled with nested scopes, define the CO_NESTED flag.
Add PyEval_GetNestedScopes() which returns a non-zero value if the
code for the current interpreter frame has CO_NESTED defined.
Index: ceval.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/ceval.h,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -r2.40 -r2.41
*** ceval.h 2000/09/15 18:19:27 2.40
--- ceval.h 2001/03/22 02:32:48 2.41
***************
*** 29,32 ****
--- 29,33 ----
DL_IMPORT(PyObject *) PyEval_GetFrame(void);
DL_IMPORT(int) PyEval_GetRestricted(void);
+ DL_IMPORT(int) PyEval_GetNestedScopes(void);
DL_IMPORT(int) Py_FlushLine(void);
Index: compile.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/compile.h,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -r2.28 -r2.29
*** compile.h 2001/03/01 22:59:14 2.28
--- compile.h 2001/03/22 02:32:48 2.29
***************
*** 33,36 ****
--- 33,37 ----
#define CO_VARARGS 0x0004
#define CO_VARKEYWORDS 0x0008
+ #define CO_NESTED 0x0010
extern DL_IMPORT(PyTypeObject) PyCode_Type;