xmlmemory

Name

xmlmemory —

Synopsis



void        xmlFree                         (void *ptr);
void*       xmlMalloc                       (size_t size);
void*       xmlRealloc                      (void *ptr,
                                             size_t size);
char*       xmlMemStrdup                    (const char *str);
int         xmlInitMemory                   (void);
int         xmlMemUsed                      (void);
void        xmlMemoryDump                   (void);
void        xmlMemDisplay                   (FILE *fp);
#define     DEBUG_MEMORY_LOCATION
#define     DEBUG_MEMORY
#define     MEM_LIST
void*       xmlMallocLoc                    (int size,
                                             const char *file,
                                             int line);
void*       xmlReallocLoc                   (void *ptr,
                                             int size,
                                             const char *file,
                                             int line);
char*       xmlMemStrdupLoc                 (const char *str,
                                             const char *file,
                                             int line);

Description

Details

xmlFree ()

void        xmlFree                         (void *ptr);

a free() equivalent, with error checking.

ptr : 


xmlMalloc ()

void*       xmlMalloc                       (size_t size);

a malloc() equivalent, with logging of the allocation info.

size : 


xmlRealloc ()

void*       xmlRealloc                      (void *ptr,
                                             size_t size);

a realloc() equivalent, with logging of the allocation info.

ptr : 
size : 


xmlMemStrdup ()

char*       xmlMemStrdup                    (const char *str);

a strdup() equivalent, with logging of the allocation info.

str : 
Returns : 


xmlInitMemory ()

int         xmlInitMemory                   (void);

Initialize the memory layer.

Returns : 


xmlMemUsed ()

int         xmlMemUsed                      (void);

returns the amount of memory currenly allocated

Returns : 


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

fp : 


DEBUG_MEMORY_LOCATION

#define     DEBUG_MEMORY_LOCATION


DEBUG_MEMORY

#define     DEBUG_MEMORY


MEM_LIST

#define     MEM_LIST


xmlMallocLoc ()

void*       xmlMallocLoc                    (int size,
                                             const char *file,
                                             int line);

a malloc() equivalent, with logging of the allocation info.

size : 
file : the line number
line : 


xmlReallocLoc ()

void*       xmlReallocLoc                   (void *ptr,
                                             int size,
                                             const char *file,
                                             int line);

a realloc() equivalent, with logging of the allocation info.

ptr : 
size : 
file : the line number
line : 


xmlMemStrdupLoc ()

char*       xmlMemStrdupLoc                 (const char *str,
                                             const char *file,
                                             int line);

a strdup() equivalent, with logging of the allocation info.

str : 
file : the line number
line : 
Returns :