summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-17 17:29:22 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-17 17:29:22 (GMT)
commite13ddc9ec85287b17fd03454f836f495c1167de9 (patch)
tree20de9aa63915e14e39d87fc7a4e88a39c9eb03c7 /Include
parentcf8d285ba321dcb1c479a16d15e0224b3ad05970 (diff)
downloadcpython-e13ddc9ec85287b17fd03454f836f495c1167de9.zip
cpython-e13ddc9ec85287b17fd03454f836f495c1167de9.tar.gz
cpython-e13ddc9ec85287b17fd03454f836f495c1167de9.tar.bz2
- New C API PyGC_Collect(), same as calling gc.collect().
- Call this in Py_Finalize(). - Expand the Misc/NEWS text on PY_LONG_LONG.
Diffstat (limited to 'Include')
-rw-r--r--Include/objimpl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index 2b35e67..3679cba 100644
--- a/Include/objimpl.h
+++ b/Include/objimpl.h
@@ -228,6 +228,9 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, int);
* ==========================
*/
+/* C equivalent of gc.collect(). */
+long PyGC_Collect(void);
+
/* Test if a type has a GC head */
#define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)