Gnome XML Library Reference Manual |
---|
xmlmemory —
#define DEBUG_MEMORY void (*xmlFreeFunc) (void *mem); void* (*xmlMallocFunc) (size_t size); void* (*xmlReallocFunc) (void *mem,size_t size); char* (*xmlStrdupFunc) (const char *str); #define xmlMalloc (size) #define xmlMallocAtomic (size) #define xmlRealloc (ptr, size) #define xmlMemStrdup (str)
#define DEBUG_MEMORY
DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too.
void (*xmlFreeFunc) (void *mem);
Signature for a
mem: | an already allocated block of memory |
void* (*xmlMallocFunc) (size_t size);
Signature for a
size: | the size requested in bytes |
void* (*xmlReallocFunc) (void *mem,size_t size);
Signature for a
mem: | an already allocated block of memory |
size: | the new size requested in bytes |
char* (*xmlStrdupFunc) (const char *str);
Signature for an
str: | a zero terminated string |
Returns : | the copy of the string or NULL in case of error. |
#define xmlMalloc(size)
Wrapper for the
size: | number of bytes to allocate |
#define xmlMallocAtomic(size)
Wrapper for the
size: | number of bytes to allocate |
#define xmlRealloc(ptr, size)
Wrapper for the
ptr: | pointer to the existing allocated area |
size: | number of bytes to allocate |
<< xmlregexp | xmlIO >> |