summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-05 00:11:10 (GMT)
committerGitHub <noreply@github.com>2020-02-05 00:11:10 (GMT)
commit40e547dfbb9052ca0c667b242f6825ed1c23c195 (patch)
treeaebb9f8925156ed5a97bbd0daddb43e4c03e2839 /Modules
parent2545fa87628b4caca519da8aeb0eeef368b9dc0d (diff)
downloadcpython-40e547dfbb9052ca0c667b242f6825ed1c23c195.zip
cpython-40e547dfbb9052ca0c667b242f6825ed1c23c195.tar.gz
cpython-40e547dfbb9052ca0c667b242f6825ed1c23c195.tar.bz2
bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346)
_Py_NewReference() becomes a regular opaque function, rather than a static inline function in the C API (object.h), to better hide implementation details. Move _Py_tracemalloc_config from public pymem.h to internal pycore_pymem.h header. Make _Py_AddToAllObjects() private.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tracemalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 7021972..ddf6ef4 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -1,4 +1,5 @@
#include "Python.h"
+#include "pycore_pymem.h"
#include "pycore_traceback.h"
#include "hashtable.h"
#include "frameobject.h"