summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-03-23 03:33:13 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-03-23 03:33:13 (GMT)
commit36eb4dfb819dbfe90d82e0c6b58bd360c22bcc26 (patch)
tree03aa5497be9d977f26d423c36234145668c6f4e1 /Include/object.h
parent3e40c7ff5bb54c4787290109b51394ad34ef815d (diff)
downloadcpython-36eb4dfb819dbfe90d82e0c6b58bd360c22bcc26.zip
cpython-36eb4dfb819dbfe90d82e0c6b58bd360c22bcc26.tar.gz
cpython-36eb4dfb819dbfe90d82e0c6b58bd360c22bcc26.tar.bz2
Refactored some of the Py_TRACE_REFS code. New private API function
_Py_AddToAllObjects() that simply inserts an object at the front of the doubly-linked list of all objects. Changed PyType_Ready() (the closest thing we've got to a choke point for type objects) to call that.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 33e57a4..89445c0 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -582,6 +582,7 @@ PyAPI_FUNC(void) _Py_NewReference(PyObject *);
PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
PyAPI_FUNC(void) _Py_PrintReferences(FILE *);
+PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *);
#else
/* Without Py_TRACE_REFS, there's little enough to do that we expand code