]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
cleanup_helper(): Added missing "void" type for the function, updated
authorFred Drake <fdrake@acm.org>
Mon, 26 Feb 2001 20:10:51 +0000 (20:10 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 26 Feb 2001 20:10:51 +0000 (20:10 +0000)
        comments to reflect reality.

Modules/_weakref.c

index 502d568bbafc0ea31ebb92f90e9b2fc00b1dec90..fbf886a65f5639a4dde0345852f38f793636c4f4 100644 (file)
@@ -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;