[Python-checkins] python/dist/src/Include compile.h,2.36,2.37 pythonrun.h,2.48,2.49

tim_one@sourceforge.net tim_one@sourceforge.net
Thu, 11 Apr 2002 18:20:13 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv28086/python/Include

Modified Files:
	compile.h pythonrun.h 
Log Message:
Removed more hair in support of future-generator stmts.


Index: compile.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/compile.h,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -d -r2.36 -r2.37
*** compile.h	13 Dec 2001 19:47:02 -0000	2.36
--- compile.h	12 Apr 2002 01:20:09 -0000	2.37
***************
*** 41,45 ****
     effect, this passes on the "from __future__ import generators" state
     in effect when the code block was compiled. */
! #define CO_GENERATOR_ALLOWED    0x1000
  #define CO_FUTURE_DIVISION    	0x2000
  
--- 41,45 ----
     effect, this passes on the "from __future__ import generators" state
     in effect when the code block was compiled. */
! #define CO_GENERATOR_ALLOWED    0x1000 /* no longer used in an essential way */
  #define CO_FUTURE_DIVISION    	0x2000
  

Index: pythonrun.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythonrun.h,v
retrieving revision 2.48
retrieving revision 2.49
diff -C2 -d -r2.48 -r2.49
*** pythonrun.h	31 Aug 2001 17:40:14 -0000	2.48
--- pythonrun.h	12 Apr 2002 01:20:10 -0000	2.49
***************
*** 8,13 ****
  #endif
  
! #define PyCF_MASK (CO_GENERATOR_ALLOWED | CO_FUTURE_DIVISION)
! #define PyCF_MASK_OBSOLETE (CO_NESTED)
  
  typedef struct {
--- 8,13 ----
  #endif
  
! #define PyCF_MASK (CO_FUTURE_DIVISION)
! #define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED)
  
  typedef struct {