|
Defines |
| #define | malloc(size) mem_malloc((size),"Unknown", __FILE__,__LINE__, 0 ) |
| #define | calloc(n, size) mem_malloc((n*size),"Unknown", __FILE__,__LINE__, 1 ) |
| #define | realloc(ptr, size) mem_realloc( ptr, size, "Unknown", __FILE__, __LINE__, 0 ) |
| #define | free(ptr) do{ mem_free(ptr); ptr=NULL; } while(0) |
| #define | strdup(ptr) strcpy(malloc(strlen(ptr)+1),ptr) |
| #define | MALLOC(var, type, count) (var=(type *)mem_malloc((count)*sizeof(type),#var, __FILE__,__LINE__,0 )) |
| #define | mymalloc(x) malloc(x) |
| #define | mymalloc_align(x, y) malloc(x) |
| #define | mycalloc(x, y) calloc(x,y) |
| #define | myfree(x) free(x) |
| #define | stackavail() 16384 |
Functions |
| void * | mem_display_blocks () |
| void * | mem_malloc (unsigned int size, char *var, char *file, int line, int fill_zero) |
| void * | mem_realloc (void *ptr, unsigned int size, char *var, char *filename, int line, int fill_zero) |
| void | mem_free (void *buffer) |
| void | mem_validate_heap () |
Variables |
| int | show_mem_info |