[Python-checkins] CVS: python/dist/src/Objects classobject.c,2.127.2.5,2.127.2.6

Guido van Rossum gvanrossum@users.sourceforge.net
2001年6月28日 09:46:53 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv14132
Modified Files:
 Tag: descr-branch
	classobject.c 
Log Message:
instance_dealloc(): changed a couple of references to tp_free to
tp_frees (the new name for this debug-only field in the type
structure).
Index: classobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/classobject.c,v
retrieving revision 2.127.2.5
retrieving revision 2.127.2.6
diff -C2 -r2.127.2.5 -r2.127.2.6
*** classobject.c	2001年06月16日 13:59:48	2.127.2.5
--- classobject.c	2001年06月28日 16:46:51	2.127.2.6
***************
*** 593,597 ****
 	if (--inst->ob_refcnt > 0) {
 #ifdef COUNT_ALLOCS
! 		inst->ob_type->tp_free--;
 #endif
 		return; /* __del__ added a reference; don't delete now */
--- 593,597 ----
 	if (--inst->ob_refcnt > 0) {
 #ifdef COUNT_ALLOCS
! 		inst->ob_type->tp_frees--;
 #endif
 		return; /* __del__ added a reference; don't delete now */
***************
*** 601,605 ****
 #ifdef COUNT_ALLOCS
 	/* compensate for increment in _Py_ForgetReference */
! 	inst->ob_type->tp_free--;
 #endif
 #ifndef WITH_CYCLE_GC
--- 601,605 ----
 #ifdef COUNT_ALLOCS
 	/* compensate for increment in _Py_ForgetReference */
! 	inst->ob_type->tp_frees--;
 #endif
 #ifndef WITH_CYCLE_GC

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