File indexing completed on 2024-04-28 11:21:06
0001 /* 0002 * debugging malloc()/realloc()/calloc()/free() that attempts 0003 * to keep track of just what's been allocated today. 0004 */ 0005 #ifndef AMALLOC_D 0006 #define AMALLOC_D 0007 0008 #include "config.h" 0009 0010 #ifdef USE_AMALLOC 0011 0012 extern void *amalloc(int); 0013 extern void *acalloc(int,int); 0014 extern void *arealloc(void*,int); 0015 extern void afree(void*); 0016 extern void adump(); 0017 0018 #define malloc amalloc 0019 #define calloc acalloc 0020 #define realloc arealloc 0021 #define free afree 0022 0023 #else 0024 0025 #define adump() (void)1 0026 0027 #endif 0028 0029 #endif/*AMALLOC_D*/