ReactOS 0.4.16-dev-2132-g3885311
memory.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

XML_HIDDEN void xmlInitMemoryInternal (void)
 
XML_HIDDEN void xmlCleanupMemoryInternal (void)
 

Function Documentation

◆ xmlCleanupMemoryInternal()

XML_HIDDEN void xmlCleanupMemoryInternal ( void  )

xmlCleanupMemoryInternal:

Free up all the memory allocated by the library for its own use. This should not be called by user level code.

Definition at line 880 of file xmlmemory.c.

880 {
881 /*
882 * Don't clean up mutex on Windows. Global state destructors can call
883 * malloc functions after xmlCleanupParser was called. If memory
884 * debugging is enabled, xmlMemMutex can be used after cleanup.
885 *
886 * See python/tests/thread2.py
887 */
888#if !defined(LIBXML_THREAD_ENABLED) || !defined(_WIN32)
890#endif
891}
XML_HIDDEN void xmlCleanupMutex(xmlMutexPtr mutex)
Definition: threads.c:166
static xmlMutex xmlMemMutex
Definition: xmlmemory.c:38

Referenced by xmlCleanupParser().

◆ xmlInitMemoryInternal()

XML_HIDDEN void xmlInitMemoryInternal ( void  )

xmlInitMemoryInternal:

Initialize the memory layer.

Returns 0 on success

Definition at line 846 of file xmlmemory.c.

846 {
847 char *breakpoint;
849
850 breakpoint = getenv("XML_MEM_BREAKPOINT");
851 if (breakpoint != NULL) {
853 }
854 breakpoint = getenv("XML_MEM_TRACE");
855 if (breakpoint != NULL) {
857 }
858
859}
#define NULL
Definition: types.h:112
char *CDECL getenv(const char *name)
Definition: environ.c:227
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sscanf(const char *, const char *,...) __WINE_CRT_SCANF_ATTR(2
void breakpoint(void)
XML_HIDDEN void xmlInitMutex(xmlMutexPtr mutex)
Definition: threads.c:128
static unsigned int xmlMemStopAtBlock
Definition: xmlmemory.c:102
static void * xmlMemTraceBlockAt
Definition: xmlmemory.c:103

Referenced by xmlInitParser().