summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-23 20:09:08 (GMT)
committerGitHub <noreply@github.com>2023-07-23 20:09:08 (GMT)
commit0d6dfd68d22762c115d202515fe3310bfb42e327 (patch)
treed20012091337f17a311bcc2309b3b03eedc94377 /Objects/obmalloc.c
parent0810b0c435415c09c1907c6f418585bed558a2c1 (diff)
downloadcpython-0d6dfd68d22762c115d202515fe3310bfb42e327.zip
cpython-0d6dfd68d22762c115d202515fe3310bfb42e327.tar.gz
cpython-0d6dfd68d22762c115d202515fe3310bfb42e327.tar.bz2
gh-106320: Remove private _PyObject C API (#107147)
Move private debug _PyObject functions to the internal C API (pycore_object.h): * _PyDebugAllocatorStats() * _PyObject_CheckConsistency() * _PyObject_DebugTypeStats() * _PyObject_IsFreed() No longer export most of these functions, except of _PyObject_IsFreed(). Move test functions using _PyObject_IsFreed() from _testcapi to _testinternalcapi. check_pyobject_is_freed() test no longer catch _testcapi.error: the tested function cannot raise _testcapi.error.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index eb68d7c..7d552ff 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -2,6 +2,7 @@
#include "Python.h"
#include "pycore_code.h" // stats
+#include "pycore_object.h" // _PyDebugAllocatorStats() definition
#include "pycore_obmalloc.h"
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
#include "pycore_pymem.h"