summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-24 18:48:06 (GMT)
committerGitHub <noreply@github.com>2023-07-24 18:48:06 (GMT)
commit307186704d8327d6c67b0650e49b125758a25bbc (patch)
treebc16b1afa6e77c8d5f9c9b276a4f0f6483c950de /Include/cpython
parentd27eb1e406a8789d9eaba6dbfed5c2e5abe294fd (diff)
downloadcpython-307186704d8327d6c67b0650e49b125758a25bbc.zip
cpython-307186704d8327d6c67b0650e49b125758a25bbc.tar.gz
cpython-307186704d8327d6c67b0650e49b125758a25bbc.tar.bz2
gh-106320: Remove private _PyMem API (#107187)
Move private _PyMem functions to the internal C API (pycore_pymem.h): * _PyMem_GetCurrentAllocatorName() * _PyMem_RawStrdup() * _PyMem_RawWcsdup() * _PyMem_Strdup() No longer export these functions. Move pymem_getallocatorsname() function from _testcapi to _testinternalcapi, since the API moved to the internal C API.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pymem.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Include/cpython/pymem.h b/Include/cpython/pymem.h
index d1054d7..b75f1c4 100644
--- a/Include/cpython/pymem.h
+++ b/Include/cpython/pymem.h
@@ -7,18 +7,6 @@ PyAPI_FUNC(void *) PyMem_RawCalloc(size_t nelem, size_t elsize);
PyAPI_FUNC(void *) PyMem_RawRealloc(void *ptr, size_t new_size);
PyAPI_FUNC(void) PyMem_RawFree(void *ptr);
-/* Try to get the allocators name set by _PyMem_SetupAllocators(). */
-PyAPI_FUNC(const char*) _PyMem_GetCurrentAllocatorName(void);
-
-/* strdup() using PyMem_RawMalloc() */
-PyAPI_FUNC(char *) _PyMem_RawStrdup(const char *str);
-
-/* strdup() using PyMem_Malloc() */
-PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
-
-/* wcsdup() using PyMem_RawMalloc() */
-PyAPI_FUNC(wchar_t*) _PyMem_RawWcsdup(const wchar_t *str);
-
typedef enum {
/* PyMem_RawMalloc(), PyMem_RawRealloc() and PyMem_RawFree() */