[Python-checkins] CVS: python/dist/src/Modules _weakref.c,1.5,1.6
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 26 Feb 2001 12:10:53 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10774/Modules
Modified Files:
_weakref.c
Log Message:
cleanup_helper(): Added missing "void" type for the function, updated
comments to reflect reality.
Index: _weakref.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_weakref.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** _weakref.c 2001/02/26 18:56:37 1.5
--- _weakref.c 2001/02/26 20:10:51 1.6
***************
*** 686,697 ****
* tp_dealloc handler to clear weak references.
*
- * This returns true if the object should be deallocated, and false if the
- * object is resurrected and deallocation should be aborted.
- *
* This iterates through the weak references for 'object' and calls callbacks
! * until one resurrects the object, at which point it stops invalidating
! * weak references and returns false.
*/
! static
cleanup_helper(PyObject *object)
{
--- 686,694 ----
* tp_dealloc handler to clear weak references.
*
* This iterates through the weak references for 'object' and calls callbacks
! * for those references which have one. It returns when all callbacks have
! * been attempted.
*/
! static void
cleanup_helper(PyObject *object)
{