mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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>
This commit is contained in:
parent
cf9c25c719
commit
cc71cc9256
8 changed files with 39 additions and 6 deletions
4
PC/python3dll.c
generated
4
PC/python3dll.c
generated
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue