From 30779981519a03506e515851a760a1f1f5a98a23 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jun 2020 15:56:17 -0400 Subject: use consistent MA_ prefix --- include/mapalloc.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/mapalloc.h b/include/mapalloc.h index f4a4434..65581c8 100644 --- a/include/mapalloc.h +++ b/include/mapalloc.h @@ -3,9 +3,16 @@ #include /* for the definition of size_t */ -void *map_malloc(size_t n); -void *map_calloc(size_t nelem, size_t elsize); -void *map_realloc(void *ptr, size_t n); -void map_free(void *ptr); +void *MA_malloc(size_t n); +void *MA_calloc(size_t nelem, size_t elsize); +void *MA_realloc(void *ptr, size_t n); +void MA_free(void *ptr); + +#ifdef MA_OVERRIDE_STDLIB +#define malloc(n) MA_malloc(n) +#define calloc(n, e) MA_calloc(n, e) +#define realloc(p, n) MA_realloc(p, n) +#define free(p) MA_free(p) +#endif #endif -- cgit v1.2.1