summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-04-12 17:06:05 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-04-12 17:06:05 (GMT)
commite170937af6463d92e95cea907964a23dff521f31 (patch)
treec8c4deb1ad0655eeedeef6754932db4afec7e930 /Include
parent314fce92dd12a8ff82876bd18845a2249a931fae (diff)
downloadcpython-e170937af6463d92e95cea907964a23dff521f31.zip
cpython-e170937af6463d92e95cea907964a23dff521f31.tar.gz
cpython-e170937af6463d92e95cea907964a23dff521f31.tar.bz2
Ignore the references to the dummy objects used as deleted keys
in dicts and sets when computing the total number of references.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 131812f..924480f 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -578,6 +578,9 @@ environment the global variable trick is not safe.)
PyAPI_DATA(Py_ssize_t) _Py_RefTotal;
PyAPI_FUNC(void) _Py_NegativeRefcount(const char *fname,
int lineno, PyObject *op);
+PyAPI_FUNC(PyObject *) _PyDict_Dummy(void);
+PyAPI_FUNC(PyObject *) _PySet_Dummy(void);
+PyAPI_FUNC(Py_ssize_t) _Py_GetRefTotal(void);
#define _Py_INC_REFTOTAL _Py_RefTotal++
#define _Py_DEC_REFTOTAL _Py_RefTotal--
#define _Py_REF_DEBUG_COMMA ,