22 #define free(p) DMfree(p,__FILE__,__LINE__) 23 #define malloc(s) DMmalloc(s,__FILE__,__LINE__) 24 #define calloc(s,i) DMcalloc(s,i,__FILE__,__LINE__) 25 #define memcheck(p) DMmemcheck(p,__FILE__,__LINE__) 26 #define realloc(p,s) DMrealloc(p,s,__FILE__,__LINE__) 29 extern char *DMtriggeraddr;
36 DMfree(
char *ptr,
char *fname,
int line);
39 *
DMmalloc(
int size,
char *fname,
int line),
40 *
DMcalloc(
int size,
int nitems,
char *fname,
int line),
41 *
DMrealloc(
char *ptr,
int size,
char *fname,
int line);
DMtrigger()
Dummy routine with the sole purpose of being available for setting breakpoints from a debugger...
char * DMrealloc(char *ptr, int size, char *fname, int line)
Reallocate memory safely using realloc()
DMnotfreed()
Print a list of memory pointers not freed - one per line.
DMfree(char *ptr, char *fname, int line)
Free a pointer allocated by DMmalloc()
char * DMcalloc(int size, int nitems, char *fname, int line)
Allocate memory safely using calloc()
int DMverbose
Verbosity level.
char * DMmalloc(int size, char *fname, int line)
Allocate memory safely using malloc()
char * DMmemcheck(char *ptr, char *fname, int line)