From a35c688055c72e9442f6a82c3ec0e09654077975 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Tue, 27 Feb 2001 04:45:05 +0000 Subject: Add Vladimir Marangozov's object allocator. It is disabled by default. This closes SF patch #401229. --- Include/objimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Include/objimpl.h') diff --git a/Include/objimpl.h b/Include/objimpl.h index 9c13e71e0f..4197bde3e1 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -76,6 +76,13 @@ recommended to use PyObject_{New, NewVar, Del}. */ memory management purposes exclusively. Both the core and extension modules should use the PyObject_* API. */ +#ifdef WITH_PYMALLOC +#define PyCore_OBJECT_MALLOC_FUNC _PyCore_ObjectMalloc +#define PyCore_OBJECT_REALLOC_FUNC _PyCore_ObjectRealloc +#define PyCore_OBJECT_FREE_FUNC _PyCore_ObjectFree +#define NEED_TO_DECLARE_OBJECT_MALLOC_AND_FRIEND +#endif /* !WITH_PYMALLOC */ + #ifndef PyCore_OBJECT_MALLOC_FUNC #undef PyCore_OBJECT_REALLOC_FUNC #undef PyCore_OBJECT_FREE_FUNC -- cgit v1.2.1