From e13ddc9ec85287b17fd03454f836f495c1167de9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Apr 2003 17:29:22 +0000 Subject: - New C API PyGC_Collect(), same as calling gc.collect(). - Call this in Py_Finalize(). - Expand the Misc/NEWS text on PY_LONG_LONG. --- Include/objimpl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/objimpl.h') diff --git a/Include/objimpl.h b/Include/objimpl.h index 2b35e67452..3679cbad1b 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) -- cgit v1.2.1