|
ReactOS 0.4.16-dev-2208-g6350669
|


Go to the source code of this file.
Macros | |
| #define | XML_GLOBALS_ALLOC |
Typedefs | |
| typedef void(* | xmlFreeFunc) (void *mem) |
| typedef void * | LIBXML_ATTR_ALLOC_SIZE(1) *xmlMallocFunc) (size_t size) |
| typedef void *(* | xmlReallocFunc) (void *mem, size_t size) |
| typedef char *(* | xmlStrdupFunc) (const char *str) |
Variables | |
| XMLPUBVAR xmlMallocFunc | xmlMalloc |
| XMLPUBVAR xmlMallocFunc | xmlMallocAtomic |
| XMLPUBVAR xmlReallocFunc | xmlRealloc |
| XMLPUBVAR xmlFreeFunc | xmlFree |
| XMLPUBVAR xmlStrdupFunc | xmlMemStrdup |
| #define XML_GLOBALS_ALLOC |
DOC_DISABLE
Definition at line 91 of file xmlmemory.h.
xmlMallocFunc: @size: the size requested in bytes
Signature for a malloc() implementation.
Returns a pointer to the newly allocated block or NULL in case of error.
Definition at line 40 of file xmlmemory.h.
xmlFreeFunc: @mem: an already allocated block of memory
Signature for a free() implementation.
Definition at line 31 of file xmlmemory.h.
xmlReallocFunc: @mem: an already allocated block of memory @size: the new size requested in bytes
Signature for a realloc() implementation.
Returns a pointer to the newly reallocated block or NULL in case of error.
Definition at line 51 of file xmlmemory.h.
xmlStrdupFunc: @str: a zero terminated string
Signature for an strdup() implementation.
Returns the copy of the string or NULL in case of error.
Definition at line 61 of file xmlmemory.h.
| XML_DEPRECATED XMLPUBFUN void xmlCleanupMemory | ( | void | ) |
xmlCleanupMemory:
DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all.
Definition at line 870 of file xmlmemory.c.
| XMLPUBFUN int xmlGcMemGet | ( | xmlFreeFunc * | freeFunc, |
| xmlMallocFunc * | mallocFunc, | ||
| xmlMallocFunc * | mallocAtomicFunc, | ||
| xmlReallocFunc * | reallocFunc, | ||
| xmlStrdupFunc * | strdupFunc | ||
| ) |
xmlGcMemGet: @freeFunc: place to save the free() function in use @mallocFunc: place to save the malloc() function in use @mallocAtomicFunc: place to save the atomic malloc() function in use @reallocFunc: place to save the realloc() function in use @strdupFunc: place to save the strdup() function in use
Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators
Returns 0 on success
Definition at line 1003 of file xmlmemory.c.
| XMLPUBFUN int xmlGcMemSetup | ( | xmlFreeFunc | freeFunc, |
| xmlMallocFunc | mallocFunc, | ||
| xmlMallocFunc | mallocAtomicFunc, | ||
| xmlReallocFunc | reallocFunc, | ||
| xmlStrdupFunc | strdupFunc | ||
| ) |
xmlGcMemSetup: @freeFunc: the free() function to use @mallocFunc: the malloc() function to use @mallocAtomicFunc: the malloc() function to use for atomic allocations @reallocFunc: the realloc() function to use @strdupFunc: the strdup() function to use
Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators
Should this be blocked if there was already some allocations done ?
Returns 0 on success
Definition at line 967 of file xmlmemory.c.
| XML_DEPRECATED XMLPUBFUN int xmlInitMemory | ( | void | ) |
xmlInitMemory:
DEPRECATED: Alias for xmlInitParser.
Definition at line 833 of file xmlmemory.c.
Definition at line 210 of file xmlmemory.c.
Definition at line 145 of file xmlmemory.c.
Referenced by xmlMemMalloc(), and xmlReallocLoc().
xmlMemBlocks:
Provides the number of memory areas currently allocated
Returns an int representing the number of blocks
Definition at line 557 of file xmlmemory.c.
xmlMemDisplay: @fp: a FILE descriptor used as the output file, if NULL, the result is written to the file .memorylist
show in-extenso the memory blocks allocated
Definition at line 644 of file xmlmemory.c.
Referenced by debugmem_tag_error(), and xmlMemoryDump().
xmlMemDisplayLast: @fp: a FILE descriptor used as the output file, if NULL, the result is written to the file .memorylist @nbBytes: the amount of memory to dump
the last nbBytes of memory allocated and not freed, useful for dumping the memory left allocated between two places at runtime.
Definition at line 577 of file xmlmemory.c.
xmlMemFree: @ptr: the memory block pointer
a free() equivalent, with error checking.
Definition at line 381 of file xmlmemory.c.
| XMLPUBFUN int xmlMemGet | ( | xmlFreeFunc * | freeFunc, |
| xmlMallocFunc * | mallocFunc, | ||
| xmlReallocFunc * | reallocFunc, | ||
| xmlStrdupFunc * | strdupFunc | ||
| ) |
xmlMemGet: @freeFunc: place to save the free() function in use @mallocFunc: place to save the malloc() function in use @reallocFunc: place to save the realloc() function in use @strdupFunc: place to save the strdup() function in use
Provides the memory access functions set currently in use
Returns 0 on success
Definition at line 939 of file xmlmemory.c.
xmlMemMalloc: @size: an int specifying the size in byte to allocate.
a malloc() equivalent, with logging of the allocation info.
Returns a pointer to the allocated area or NULL in case of lack of memory.
Definition at line 272 of file xmlmemory.c.
xmlMemoryDump:
Dump in-extenso the memory blocks allocated to the file .memorylist
Definition at line 802 of file xmlmemory.c.
xmlMemoryStrdup: @str: the initial string pointer
a strdup() equivalent, with logging of the allocation info.
Returns a pointer to the new string or NULL if allocation error occurred.
Definition at line 510 of file xmlmemory.c.
xmlMemRealloc: @ptr: the initial memory block pointer @size: an int specifying the size in byte to allocate.
a realloc() equivalent, with logging of the allocation info.
Returns a pointer to the allocated area or NULL in case of lack of memory.
Definition at line 370 of file xmlmemory.c.
| XMLPUBFUN int xmlMemSetup | ( | xmlFreeFunc | freeFunc, |
| xmlMallocFunc | mallocFunc, | ||
| xmlReallocFunc | reallocFunc, | ||
| xmlStrdupFunc | strdupFunc | ||
| ) |
xmlMemSetup: @freeFunc: the free() function to use @mallocFunc: the malloc() function to use @reallocFunc: the realloc() function to use @strdupFunc: the strdup() function to use
Override the default memory access functions with a new set This has to be called before any other libxml routines !
Should this be blocked if there was already some allocations done ?
Returns 0 on success
Definition at line 909 of file xmlmemory.c.
xmlMemShow: @fp: a FILE descriptor used as the output file @nr: number of entries to dump
show a show display of the memory allocated, and dump the @nr last allocated areas which were not freed
Definition at line 758 of file xmlmemory.c.
xmlMemSize: @ptr: pointer to the memory allocation
Returns the size of a memory allocation.
Definition at line 522 of file xmlmemory.c.
Definition at line 446 of file xmlmemory.c.
Referenced by xmlMemoryStrdup().
xmlMemUsed:
Provides the amount of memory currently allocated
Returns an int representing the amount of memory allocated.
Definition at line 544 of file xmlmemory.c.
Definition at line 290 of file xmlmemory.c.
Referenced by xmlMemRealloc().
| XMLPUBVAR xmlFreeFunc xmlFree |
Definition at line 96 of file xmlmemory.h.
| XMLPUBVAR xmlMallocFunc xmlMalloc |
DOC_ENABLE
Definition at line 93 of file xmlmemory.h.
| XMLPUBVAR xmlMallocFunc xmlMallocAtomic |
Definition at line 94 of file xmlmemory.h.
| XMLPUBVAR xmlStrdupFunc xmlMemStrdup |
Definition at line 97 of file xmlmemory.h.
| XMLPUBVAR xmlReallocFunc xmlRealloc |
Definition at line 95 of file xmlmemory.h.