[Python-checkins] CVS: python/dist/src/Modules gcmodule.c,2.33.6.2,2.33.6.3

Guido van Rossum gvanrossum@users.sourceforge.net
2002年4月03日 06:07:34 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv1340
Modified Files:
 Tag: release22-maint
	gcmodule.c 
Log Message:
The body of_PyObject_GC_UnTrack() should only be compiled #ifdef
WITH_CYCLE_GC. (Neil pointed this out before the weekend, and I fixed
it right away, but forgot to check it in.)
Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.33.6.2
retrieving revision 2.33.6.3
diff -C2 -d -r2.33.6.2 -r2.33.6.3
*** gcmodule.c	28 Mar 2002 20:36:49 -0000	2.33.6.2
--- gcmodule.c	3 Apr 2002 14:07:32 -0000	2.33.6.3
***************
*** 820,826 ****
--- 820,828 ----
 _PyObject_GC_UnTrack(PyObject *op)
 {
+ #ifdef WITH_CYCLE_GC
 	PyGC_Head *gc = AS_GC(op);
 	if (gc->gc.gc_next != NULL)
 		_PyObject_GC_UNTRACK(op);
+ #endif
 }
 

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