mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Drop the PyCore_* memory API.
This commit is contained in:
parent
08de92a267
commit
25f3dc21b5
4 changed files with 71 additions and 92 deletions
|
@ -2093,4 +2093,19 @@ _PyTrash_destroy_chain(void)
|
|||
|
||||
#ifdef WITH_PYMALLOC
|
||||
#include "obmalloc.c"
|
||||
#endif
|
||||
#else
|
||||
void *_PyMalloc_Malloc(size_t n)
|
||||
{
|
||||
return PyMem_MALLOC(n);
|
||||
}
|
||||
|
||||
void *_PyMalloc_Realloc(void *p, size_t n)
|
||||
{
|
||||
return PyMem_REALLOC(p, n);
|
||||
}
|
||||
|
||||
void _PyMalloc_Free(void *p)
|
||||
{
|
||||
PyMem_FREE(p);
|
||||
}
|
||||
#endif /* !WITH_PYMALLOC */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue