[Python-checkins] python/dist/src/Include objimpl.h,2.52,2.53

nascheme@sourceforge.net nascheme@sourceforge.net
2002年5月03日 22:36:08 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv5549/Include
Modified Files:
	objimpl.h 
Log Message:
_PyGC_generation0 is now a pointer
Index: objimpl.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/objimpl.h,v
retrieving revision 2.52
retrieving revision 2.53
diff -C2 -d -r2.52 -r2.53
*** objimpl.h	28 Apr 2002 04:11:46 -0000	2.52
--- objimpl.h	4 May 2002 05:36:06 -0000	2.53
***************
*** 259,263 ****
 } PyGC_Head;
 
! extern PyGC_Head _PyGC_generation0;
 
 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1)
--- 259,263 ----
 } PyGC_Head;
 
! extern PyGC_Head *_PyGC_generation0;
 
 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1)
***************
*** 269,276 ****
 	if (g->gc.gc_next != NULL) \
 		Py_FatalError("GC object already in linked list"); \
! 	g->gc.gc_next = &_PyGC_generation0; \
! 	g->gc.gc_prev = _PyGC_generation0.gc.gc_prev; \
 	g->gc.gc_prev->gc.gc_next = g; \
! 	_PyGC_generation0.gc.gc_prev = g; \
 } while (0);
 
--- 269,276 ----
 	if (g->gc.gc_next != NULL) \
 		Py_FatalError("GC object already in linked list"); \
! 	g->gc.gc_next = _PyGC_generation0; \
! 	g->gc.gc_prev = _PyGC_generation0->gc.gc_prev; \
 	g->gc.gc_prev->gc.gc_next = g; \
! 	_PyGC_generation0->gc.gc_prev = g; \
 } while (0);
 

AltStyle によって変換されたページ (->オリジナル) /