36 extern void*
mem_malloc(
size_t,
const char*,
const int);
38 extern void*
mem_calloc(
size_t,
size_t,
const char*,
const int);
40 extern void*
mem_realloc(
void*,
size_t,
const char*,
const int);
42 extern char*
mem_strdup(
const char*,
const char*,
const int);
44 extern void mem_free(
void*,
const char*,
const int);
53 #define malloc(a) mem_malloc((a), __FILE__, __LINE__)
54 #define calloc(a, b) mem_calloc((a), (b), __FILE__, __LINE__)
55 #define realloc(a, b) mem_realloc((a), (b), __FILE__, __LINE__)
56 #define strdup(a) mem_strdup((a), __FILE__, __LINE__)
57 #define free(a) mem_free((a), __FILE__, __LINE__)
71 #define mem_check(a) mem_check_x(a, __FILE__, __LINE__)
72 #define mem_check_all() mem_check_all_x(__FILE__, __LINE__)
73 #define mem_hide(a) mem_hide_x(a, __FILE__, __LINE__)
78 #define mem_maximum(a)
79 #define mem_display(a)
81 #define mem_check_all()
void mem_free(void *, const char *, const int)
void mem_maximum(FILE *fp)
void mem_display(FILE *fp)
void mem_check_x(const void *p, const char *file, const int line)
void * mem_calloc(size_t, size_t, const char *, const int)
void mem_hide_x(void *p, const char *file, const int line)
void * mem_realloc(void *, size_t, const char *, const int)
void mem_check_all_x(const char *file, const int line)
void * mem_malloc(size_t, const char *, const int)
char * mem_strdup(const char *, const char *, const int)