11 #define free(p) DMfree(p,__FILE__,__LINE__)
12 #define malloc(s) DMmalloc(s,__FILE__,__LINE__)
13 #define calloc(s,i) DMcalloc(s,i,__FILE__,__LINE__)
14 #define memcheck(p) DMmemcheck(p,__FILE__,__LINE__)
15 #define realloc(p,s) DMrealloc(p,s,__FILE__,__LINE__)
18 extern char *DMtriggeraddr;
25 DMfree(
char *ptr,
char *fname,
int line);
28 *
DMmalloc(
int size,
char *fname,
int line),
29 *
DMcalloc(
int size,
int nitems,
char *fname,
int line),
30 *
DMrealloc(
char *ptr,
int size,
char *fname,
int line);
char * DMcalloc(int size, int nitems, char *fname, int line)
Allocate memory safely using calloc()
char * DMmemcheck(char *ptr, char *fname, int line)
Check the validity of allocated memory areas and report any problems.
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()
DMtrigger()
Dummy routine with the sole purpose of being available for setting breakpoints from a debugger.
int DMverbose
Verbosity level.
char * DMmalloc(int size, char *fname, int line)
Allocate memory safely using malloc()