summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-26 20:10:51 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-26 20:10:51 (GMT)
commit32efcdbceb79655bf793f7efe82b7bf9d706da99 (patch)
tree3cf00f2c9ed760aa3403a8835b01fb0dd24f20b4 /Modules
parentb60654bc15597f4b08fb6d97774d655ae5176ca4 (diff)
downloadcpython-32efcdbceb79655bf793f7efe82b7bf9d706da99.zip
cpython-32efcdbceb79655bf793f7efe82b7bf9d706da99.tar.gz
cpython-32efcdbceb79655bf793f7efe82b7bf9d706da99.tar.bz2
cleanup_helper(): Added missing "void" type for the function, updated
comments to reflect reality.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_weakref.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index 502d568..fbf886a 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -685,14 +685,11 @@ weakref_proxy(PyObject *self, PyObject *args)
* is installed in the init_weakref() function. It is called by the
* 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.
+ * for those references which have one. It returns when all callbacks have
+ * been attempted.
*/
-static
+static void
cleanup_helper(PyObject *object)
{
PyWeakReference **list;