[Python-checkins] CVS: python/dist/src/Modules _weakref.c,1.4,1.5
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 26 Feb 2001 10:56:39 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv1263/Modules
Modified Files:
_weakref.c
Log Message:
The return value from PyObject_ClearWeakRefs() is no longer meaningful,
so make it void.
Index: _weakref.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_weakref.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** _weakref.c 2001/02/18 05:20:18 1.4
--- _weakref.c 2001/02/26 18:56:37 1.5
***************
*** 693,697 ****
* weak references and returns false.
*/
! static int
cleanup_helper(PyObject *object)
{
--- 693,697 ----
* weak references and returns false.
*/
! static
cleanup_helper(PyObject *object)
{
***************
*** 703,707 ****
PyErr_BadInternalCall();
/* not sure what we should return here */
! return 1;
}
list = GET_WEAKREFS_LISTPTR(object);
--- 703,707 ----
PyErr_BadInternalCall();
/* not sure what we should return here */
! return;
}
list = GET_WEAKREFS_LISTPTR(object);
***************
*** 723,727 ****
}
}
! return (object->ob_refcnt > 0 ? 0 : 1);
}
--- 723,727 ----
}
}
! return;
}