|
|
Whole document tree
xmlmemory
Details
xmlFree ()void xmlFree (void *ptr); |
a free() equivalent, with error checking.
xmlMalloc ()void* xmlMalloc (int size); |
a malloc() equivalent, with logging of the allocation info.
xmlRealloc ()void* xmlRealloc (void *ptr,
int size); |
a realloc() equivalent, with logging of the allocation info.
xmlMemStrdup ()char* xmlMemStrdup (const char *str); |
a strdup() equivalent, with logging of the allocation info.
xmlInitMemory ()int xmlInitMemory (void); |
Initialize the memory layer.
xmlMemUsed ()returns the amount of memory currenly allocated
xmlMemoryDump ()void xmlMemoryDump (void); |
Dump in-extenso the memory blocks allocated to the file .memorylist
xmlMemDisplay ()void xmlMemDisplay (FILE *fp); |
show in-extenso the memory blocks allocated
xmlMemShow ()void xmlMemShow (FILE *fp,
int nr); |
show a show display of the memory allocated, and dump
the nr last allocated areas which were not freed
DEBUG_MEMORY_LOCATION#define DEBUG_MEMORY_LOCATION |
MEM_LIST#define MEM_LIST /* keep a list of all the allocated memory blocks */ |
xmlMallocLoc ()void* xmlMallocLoc (int size,
const char *file,
int line); |
a malloc() equivalent, with logging of the allocation info.
xmlReallocLoc ()void* xmlReallocLoc (void *ptr,
int size,
const char *file,
int line); |
a realloc() equivalent, with logging of the allocation info.
xmlMemStrdupLoc ()char* xmlMemStrdupLoc (const char *str,
const char *file,
int line); |
a strdup() equivalent, with logging of the allocation info.
|