summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-03 16:28:26 (GMT)
committerGitHub <noreply@github.com>2020-02-03 16:28:26 (GMT)
commit4b524161a0f9d50d782e739a3708434ffd4e94a5 (patch)
tree683ed20eaa362961e68c48001731a69130046992 /Python
parentc6e5c1123bac6cbb4c85265155af5349dcea522e (diff)
downloadcpython-4b524161a0f9d50d782e739a3708434ffd4e94a5.zip
cpython-4b524161a0f9d50d782e739a3708434ffd4e94a5.tar.gz
cpython-4b524161a0f9d50d782e739a3708434ffd4e94a5.tar.bz2
bpo-39542: Move object.h debug functions to internal C API (GH-18331)
Move the following functions from the public C API to the internal C API: * _PyDebug_PrintTotalRefs(), * _Py_PrintReferenceAddresses() * _Py_PrintReferences()
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c1
-rw-r--r--Python/pythonrun.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index f130735..fbeebbd 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -10,6 +10,7 @@
#include "pycore_initconfig.h"
#include "pycore_fileutils.h"
#include "pycore_hamt.h"
+#include "pycore_object.h"
#include "pycore_pathconfig.h"
#include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h"
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index b68a0b5..f4ded2e 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -12,6 +12,7 @@
#include "Python-ast.h"
#undef Yield /* undefine macro conflicting with <winbase.h> */
+#include "pycore_object.h"
#include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h"
#include "pycore_pystate.h"