diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-05 00:11:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 00:11:10 (GMT) |
commit | 40e547dfbb9052ca0c667b242f6825ed1c23c195 (patch) | |
tree | aebb9f8925156ed5a97bbd0daddb43e4c03e2839 /Modules/_tracemalloc.c | |
parent | 2545fa87628b4caca519da8aeb0eeef368b9dc0d (diff) | |
download | cpython-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/_tracemalloc.c')
-rw-r--r-- | Modules/_tracemalloc.c | 1 |
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" |