Mailing List Archive

CVS: python/dist/src/Modules gcmodule.c,2.37,2.38
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv17618/Modules

Modified Files:
gcmodule.c
Log Message:
Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.


Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -d -r2.37 -r2.38
*** gcmodule.c 28 Mar 2002 20:34:58 -0000 2.37
--- gcmodule.c 29 Mar 2002 03:04:25 -0000 2.38
***************
*** 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
}