version 1.5, 1999/09/30 15:43:35
|
version 1.6, 1999/10/08 09:35:42
|
Line 27
|
Line 27
|
#include "xmlmemory.h" |
#include "xmlmemory.h" |
|
|
#ifndef NO_DEBUG_MEMORY |
#ifndef NO_DEBUG_MEMORY |
|
|
#ifdef xmlMalloc |
#ifdef xmlMalloc |
#undef xmlMalloc |
#undef xmlMalloc |
#endif |
#endif |
Line 37
|
Line 36
|
#ifdef xmlMemStrdup |
#ifdef xmlMemStrdup |
#undef xmlMemStrdup |
#undef xmlMemStrdup |
#endif |
#endif |
|
|
extern void xmlMemoryDump(void); |
extern void xmlMemoryDump(void); |
|
|
/* |
/* |
Line 233 xmlRealloc(void *ptr,int size) {
|
Line 233 xmlRealloc(void *ptr,int size) {
|
* @ptr: the memory block pointer |
* @ptr: the memory block pointer |
* |
* |
* a free() equivalent, with error checking. |
* a free() equivalent, with error checking. |
* |
|
* Returns a pointer to the allocated area or NULL in case of lack of memory. |
|
*/ |
*/ |
|
|
|
|
void |
void |
xmlFree(void *ptr) |
xmlFree(void *ptr) |
{ |
{ |
Line 468 xmlMemoryDump(void)
|
Line 464 xmlMemoryDump(void)
|
* xmlInitMemory: |
* xmlInitMemory: |
* |
* |
* Initialize the memory layer. |
* Initialize the memory layer. |
|
* |
|
* Returns 0 on success |
*/ |
*/ |
|
|
|
|