summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-05 17:24:33 (GMT)
committerGitHub <noreply@github.com>2020-02-05 17:24:33 (GMT)
commit58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56 (patch)
tree7165c2eee324d0e68ef2383bc05a2bdedb845c6e /Include
parentb39fb8e847ac59b539ad7e93df91c1709815180e (diff)
downloadcpython-58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56.zip
cpython-58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56.tar.gz
cpython-58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56.tar.bz2
bpo-39542: Declare _Py_AddToAllObjects() in pycore_object.h (GH-18368)
_Py_AddToAllObjects() is used in bltinmodule.c and typeobject.c when Py_TRACE_REFS is defined. Fix Py_TRACE_REFS build.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index eac39c8..10a5746 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -82,6 +82,7 @@ extern void _PyDebug_PrintTotalRefs(void);
#endif
#ifdef Py_TRACE_REFS
+extern void _Py_AddToAllObjects(PyObject *op, int force);
extern void _Py_PrintReferences(FILE *);
extern void _Py_PrintReferenceAddresses(FILE *);
#endif