12#ifndef __DEBUG_MEMORY_ALLOC__
13#define __DEBUG_MEMORY_ALLOC__
41#ifdef DEBUG_MEMORY_LOCATION
105 xmlMallocFunc mallocFunc,
110 xmlMallocFunc *mallocFunc,
115 xmlMallocFunc mallocFunc,
116 xmlMallocFunc mallocAtomicFunc,
121 xmlMallocFunc *mallocFunc,
122 xmlMallocFunc *mallocAtomicFunc,
172#ifdef DEBUG_MEMORY_LOCATION
181#define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__)
191#define xmlMallocAtomic(size) xmlMallocAtomicLoc((size), __FILE__, __LINE__)
201#define xmlRealloc(ptr, size) xmlReallocLoc((ptr), (size), __FILE__, __LINE__)
210#define xmlMemStrdup(str) xmlMemStrdupLoc((str), __FILE__, __LINE__)
218#ifndef __XML_GLOBALS_H
219#ifndef __XML_THREADS_H__
XMLPUBFUN int XMLCALL xmlMemUsed(void)
void *(XMLCALL * xmlReallocFunc)(void *mem, size_t size)
XMLPUBFUN int XMLCALL xmlGcMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc, xmlMallocFunc mallocAtomicFunc, xmlReallocFunc reallocFunc, xmlStrdupFunc strdupFunc)
char *(XMLCALL * xmlStrdupFunc)(const char *str)
XMLPUBFUN void XMLCALL xmlMemShow(FILE *fp, int nr)
XMLPUBFUN int XMLCALL xmlMemBlocks(void)
XMLPUBFUN void *XMLCALL xmlMallocLoc(size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1)
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
XMLPUBFUN void XMLCALL xmlMemDisplay(FILE *fp)
void(XMLCALL * xmlFreeFunc)(void *mem)
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlCleanupMemory(void)
XMLPUBFUN int XMLCALL xmlGcMemGet(xmlFreeFunc *freeFunc, xmlMallocFunc *mallocFunc, xmlMallocFunc *mallocAtomicFunc, xmlReallocFunc *reallocFunc, xmlStrdupFunc *strdupFunc)
XMLPUBFUN void XMLCALL xmlMemoryDump(void)
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
XMLPUBFUN int XMLCALL xmlMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc, xmlReallocFunc reallocFunc, xmlStrdupFunc strdupFunc)
XML_DEPRECATED XMLPUBFUN int XMLCALL xmlInitMemory(void)
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
XMLPUBFUN char *XMLCALL xmlMemStrdupLoc(const char *str, const char *file, int line)
XMLPUBFUN void *XMLCALL xmlMallocAtomicLoc(size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1)
XMLPUBFUN void *XMLCALL xmlReallocLoc(void *ptr, size_t size, const char *file, int line)
XMLPUBFUN int XMLCALL xmlMemGet(xmlFreeFunc *freeFunc, xmlMallocFunc *mallocFunc, xmlReallocFunc *reallocFunc, xmlStrdupFunc *strdupFunc)
void * LIBXML_ATTR_ALLOC_SIZE(1) XMLCALL *xmlMallocFunc)(size_t size)
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
XMLPUBFUN void XMLCALL xmlMemDisplayLast(FILE *fp, long nbBytes)