[Python-checkins] CVS: python/dist/src/Include object.h,2.83,2.84

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 10 Aug 2001 10:37:04 -0700


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

Modified Files:
	object.h 
Log Message:
Add new flags for PyType_Ready(): READY to explicitly indicate the
type is ready, and READYING to indicate that it is busy with the type.

A recursive call is a fatal error.


Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.83
retrieving revision 2.84
diff -C2 -d -r2.83 -r2.84
*** object.h	2001/08/08 05:00:17	2.83
--- object.h	2001/08/10 17:37:02	2.84
***************
*** 415,418 ****
--- 415,424 ----
  #define Py_TPFLAGS_DYNAMICTYPE (1L<<11)
  
+ /* Set if the type is 'ready' -- fully initialized */
+ #define Py_TPFLAGS_READY (1L<<12)
+ 
+ /* Set while the type is being 'readied', to prevent recursive ready calls */
+ #define Py_TPFLAGS_READYING (1L<<13)
+ 
  #define Py_TPFLAGS_DEFAULT  ( \
                               Py_TPFLAGS_HAVE_GETCHARBUFFER | \