diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-31 19:19:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 19:19:24 (GMT) |
commit | 2be00d987d37682a55db67c298e82c405d01b868 (patch) | |
tree | effedc3003c8a19764ba20f44a63501e66e58327 /Include/pymem.h | |
parent | b08746bfdf64e55ce33516f2065fa2aa4f51be95 (diff) | |
download | cpython-2be00d987d37682a55db67c298e82c405d01b868.zip cpython-2be00d987d37682a55db67c298e82c405d01b868.tar.gz cpython-2be00d987d37682a55db67c298e82c405d01b868.tar.bz2 |
bpo-35081: Move Py_BUILD_CORE code to internal/mem.h (GH-10249)
* Add #include "internal/mem.h" to C files using
_PyMem_SetDefaultAllocator().
* Include/internal/mem.h now requires Py_BUILD_CORE to be defined.
Diffstat (limited to 'Include/pymem.h')
-rw-r--r-- | Include/pymem.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Include/pymem.h b/Include/pymem.h index 19f0c8a..23457ad 100644 --- a/Include/pymem.h +++ b/Include/pymem.h @@ -198,16 +198,6 @@ PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain, PyAPI_FUNC(void) PyMem_SetupDebugHooks(void); #endif /* Py_LIMITED_API */ -#ifdef Py_BUILD_CORE -/* Set the memory allocator of the specified domain to the default. - Save the old allocator into *old_alloc if it's non-NULL. - Return on success, or return -1 if the domain is unknown. */ -PyAPI_FUNC(int) _PyMem_SetDefaultAllocator( - PyMemAllocatorDomain domain, - PyMemAllocatorEx *old_alloc); -#endif - - /* bpo-35053: expose _Py_tracemalloc_config for performance: _Py_NewReference() needs an efficient check to test if tracemalloc is tracing. |