summaryrefslogtreecommitdiffstats
path: root/PC/python3dll.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-17 00:41:51 (GMT)
committerGitHub <noreply@github.com>2023-10-17 00:41:51 (GMT)
commitcc71cc925662cb089b5c6fe17df00d00045dfd71 (patch)
tree66629945768e18b3ec3ec33a02f9a78f018847c2 /PC/python3dll.c
parentcf9c25c719ba9b0f5bde90fc8b8bba7942d10151 (diff)
downloadcpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.zip
cpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.tar.gz
cpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.tar.bz2
gh-85283: Add PyMem_RawMalloc() to the limited C API (#108570)
Add PyMem_RawMalloc(), PyMem_RawCalloc(), PyMem_RawRealloc() and PyMem_RawFree() to the limited C API. These functions were added by Python 3.4 and are needed to port stdlib extensions to the limited C API, like grp and pwd. Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'PC/python3dll.c')
-rwxr-xr-xPC/python3dll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index 7ee1174..dd3be3a 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -373,6 +373,10 @@ EXPORT_FUNC(PyMarshal_WriteObjectToString)
EXPORT_FUNC(PyMem_Calloc)
EXPORT_FUNC(PyMem_Free)
EXPORT_FUNC(PyMem_Malloc)
+EXPORT_FUNC(PyMem_RawCalloc)
+EXPORT_FUNC(PyMem_RawFree)
+EXPORT_FUNC(PyMem_RawMalloc)
+EXPORT_FUNC(PyMem_RawRealloc)
EXPORT_FUNC(PyMem_Realloc)
EXPORT_FUNC(PyMember_GetOne)
EXPORT_FUNC(PyMember_SetOne)