From d31b9c9caa6b28e5c9246dcffc88367ef9d4e8f6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 13 Oct 2024 11:20:25 +0200 Subject: [BOX32] Allow internal memory to be in 32bits space if needed --- src/mallochook.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/mallochook.c') diff --git a/src/mallochook.c b/src/mallochook.c index 2aae5ec0..474972ee 100644 --- a/src/mallochook.c +++ b/src/mallochook.c @@ -231,19 +231,6 @@ size_t box32_malloc_usable_size(void* p) else return box_malloc_usable_size(p); } -#define actual_calloc(A, B) box64_is32bits?box32_calloc(A, B):box_calloc(A, B) -#define actual_malloc(A) box64_is32bits?box32_malloc(A):box_malloc(A) -#define actual_realloc(A, B) box64_is32bits?box32_realloc(A, B):box_realloc(A, B) -#define actual_free(A) box64_is32bits?box32_free(A):box_free(A) -#define actual_memalign(A, B) box64_is32bits?box32_memalign(A, B):box_memalign(A, B) -#define actual_malloc_usable_size(A) box64_is32bits?box32_malloc_usable_size(A):box_malloc_usable_size(A) -#else -#define actual_calloc(A, B) box_calloc(A, B) -#define actual_malloc(A) box_malloc(A) -#define actual_realloc(A, B) box_realloc(A, B) -#define actual_free(A) box_free(A) -#define actual_memalign(A, B) box_memalign(A, B) -#define actual_malloc_usable_size(A) box_malloc_usable_size(A) #endif // redefining all libc memory allocation routines -- cgit 1.4.1