summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-18 21:06:21 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-18 21:06:21 (GMT)
commit25f3dc21b5a5e59a517b4d175173fd1f399b0e62 (patch)
tree49d5e1b01e74a88708d1dff4a60b6c1a8d81a0a2 /Objects/object.c
parent08de92a2672a5856788fe944b23e9851d3e0aaba (diff)
downloadcpython-25f3dc21b5a5e59a517b4d175173fd1f399b0e62.zip
cpython-25f3dc21b5a5e59a517b4d175173fd1f399b0e62.tar.gz
cpython-25f3dc21b5a5e59a517b4d175173fd1f399b0e62.tar.bz2
Drop the PyCore_* memory API.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 26ddd13..1602e89 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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 */