[Python-checkins] python/dist/src/Include object.h,2.119,2.120

tismer@users.sourceforge.net tismer@users.sourceforge.net
Thu, 22 May 2003 20:33:37 -0700


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

Modified Files:
	object.h 
Log Message:
Generalized my type flags structure extension without being specific about
the purpose. Increased my claim to two bits, hoping that nobody
will complain about it. I'm taking the highest two bits, whatever
the integer word size may be.

Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.119
retrieving revision 2.120
diff -C2 -d -r2.119 -r2.120
*** object.h	20 May 2003 15:14:31 -0000	2.119
--- object.h	23 May 2003 03:33:35 -0000	2.120
***************
*** 489,497 ****
  #define Py_TPFLAGS_HAVE_GC (1L<<14)
  
! /* Objects support special, non-recursive calls (reserved for Stackless) */
  #ifdef STACKLESS
! #define Py_TPFLAGS_HAVE_NR_THINGS (1L<<31)
  #else
! #define Py_TPFLAGS_HAVE_NR_THINGS 0
  #endif
  
--- 489,497 ----
  #define Py_TPFLAGS_HAVE_GC (1L<<14)
  
! /* These last two bits are preserved for Stackless Python */
  #ifdef STACKLESS
! #define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3L<<(sizeof(int)*8-2))
  #else
! #define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION 0
  #endif
  
***************
*** 504,508 ****
                               Py_TPFLAGS_HAVE_ITER | \
                               Py_TPFLAGS_HAVE_CLASS | \
!                              Py_TPFLAGS_HAVE_NR_THINGS | \
                              0)
  
--- 504,508 ----
                               Py_TPFLAGS_HAVE_ITER | \
                               Py_TPFLAGS_HAVE_CLASS | \
!                              Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | \
                              0)