29#ifdef LIBXML_THREAD_ENABLED
30#define IS_MAIN_THREAD (xmlIsMainThread())
32#define IS_MAIN_THREAD 1
69#if defined(DEBUG_MEMORY_LOCATION) || defined(DEBUG_MEMORY)
140#undef htmlDefaultSAXHandler
141#undef oldXMLWDcompatibility
142#undef xmlBufferAllocScheme
143#undef xmlDefaultBufferSize
144#undef xmlDefaultSAXHandler
145#undef xmlDefaultSAXLocator
146#undef xmlDoValidityCheckingDefaultValue
147#undef xmlGenericError
148#undef xmlStructuredError
149#undef xmlGenericErrorContext
150#undef xmlStructuredErrorContext
151#undef xmlGetWarningsDefaultValue
152#undef xmlIndentTreeOutput
153#undef xmlTreeIndentString
154#undef xmlKeepBlanksDefaultValue
155#undef xmlLineNumbersDefaultValue
156#undef xmlLoadExtDtdDefaultValue
157#undef xmlParserDebugEntities
158#undef xmlParserVersion
159#undef xmlPedanticParserDefaultValue
160#undef xmlSaveNoEmptyTags
161#undef xmlSubstituteEntitiesDefaultValue
162#undef xmlRegisterNodeDefaultValue
163#undef xmlDeregisterNodeDefaultValue
166#undef xmlParserInputBufferCreateFilenameValue
167#undef xmlOutputBufferCreateFilenameValue
357#ifdef LIBXML_SAX1_ENABLED
408#ifdef LIBXML_HTML_ENABLED
457 fprintf(
stderr,
"Initializing globals at %lu for thread %d\n",
469#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
470 inithtmlDefaultSAXHandler(&
gs->htmlDefaultSAXHandler);
473 gs->oldXMLWDcompatibility = 0;
476#if defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_LEGACY_ENABLED)
477 initxmlDefaultSAXHandler(&
gs->xmlDefaultSAXHandler, 1);
483 gs->xmlDoValidityCheckingDefaultValue =
485#if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
493 gs->xmlMalloc = (xmlMallocFunc)
malloc;
494 gs->xmlMallocAtomic = (xmlMallocFunc)
malloc;
508 gs->xmlSubstituteEntitiesDefaultValue =
659#ifdef LIBXML_OUTPUT_ENABLED
661 old = __xmlOutputBufferCreateFilename;
670#ifdef LIBXML_HTML_ENABLED
671#undef htmlDefaultSAXHandler
673__htmlDefaultSAXHandler(
void) {
675 return (&htmlDefaultSAXHandler);
695#if defined(LIBXML_THREAD_ALLOC_ENABLED) && defined(LIBXML_THREAD_ENABLED)
705#undef xmlMallocAtomic
707__xmlMallocAtomic(
void){
749#undef oldXMLWDcompatibility
758#undef xmlBufferAllocScheme
775#undef xmlDefaultBufferSize
792#ifdef LIBXML_SAX1_ENABLED
793#undef xmlDefaultSAXHandler
803#undef xmlDefaultSAXLocator
812#undef xmlDoValidityCheckingDefaultValue
829#undef xmlGenericError
838#undef xmlStructuredError
847#undef xmlGenericErrorContext
856#undef xmlStructuredErrorContext
865#undef xmlGetWarningsDefaultValue
882#undef xmlIndentTreeOutput
899#undef xmlTreeIndentString
916#undef xmlKeepBlanksDefaultValue
933#undef xmlLineNumbersDefaultValue
950#undef xmlLoadExtDtdDefaultValue
967#undef xmlParserDebugEntities
984#undef xmlParserVersion
993#undef xmlPedanticParserDefaultValue
1010#undef xmlSaveNoEmptyTags
1027#undef xmlSubstituteEntitiesDefaultValue
1044#undef xmlRegisterNodeDefaultValue
1053#undef xmlDeregisterNodeDefaultValue
1062#undef xmlParserInputBufferCreateFilenameValue
1071#undef xmlOutputBufferCreateFilenameValue
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator(void *ctx, xmlSAXLocatorPtr loc)
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
UINT(* handler)(MSIPACKAGE *)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void __xmlGlobalInitMutexDestroy(void)
int __xmlRegisterCallbacks
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
XMLPUBFUN xmlSAXHandlerV1 *XMLCALL __xmlDefaultSAXHandler(void)
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
xmlBufferAllocationScheme
xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func)
static int xmlSaveNoEmptyTagsThrDef
int xmlThrDefKeepBlanksDefaultValue(int v)
int xmlSubstituteEntitiesDefaultValue
int * __xmlIndentTreeOutput(void)
xmlError * __xmlLastError(void)
void * xmlGenericErrorContext
xmlGenericErrorFunc * __xmlGenericError(void)
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
xmlReallocFunc xmlRealloc
int xmlThrDefDoValidityCheckingDefaultValue(int v)
const char * xmlTreeIndentString
static int xmlLineNumbersDefaultValueThrDef
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
static char * xmlPosixStrdup(const char *cur)
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
int xmlThrDefParserDebugEntities(int v)
int xmlThrDefSaveNoEmptyTags(int v)
int * __xmlSubstituteEntitiesDefaultValue(void)
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
int * __xmlDoValidityCheckingDefaultValue(void)
int xmlThrDefPedanticParserDefaultValue(int v)
xmlGenericErrorFunc xmlGenericError
void ** __xmlStructuredErrorContext(void)
static int xmlGetWarningsDefaultValueThrDef
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v)
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler)
static void * xmlGenericErrorContextThrDef
int * __xmlSaveNoEmptyTags(void)
int xmlThrDefLoadExtDtdDefaultValue(int v)
const char * xmlThrDefTreeIndentString(const char *v)
int xmlParserDebugEntities
void xmlInitializeGlobalState(xmlGlobalStatePtr gs)
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func)
static int xmlSubstituteEntitiesDefaultValueThrDef
xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue(void)
void * xmlStructuredErrorContext
int oldXMLWDcompatibility
static int xmlIndentTreeOutputThrDef
static int xmlKeepBlanksDefaultValueThrDef
static void * xmlStructuredErrorContextThrDef
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault(xmlParserInputBufferCreateFilenameFunc func)
xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue(void)
void xmlInitGlobals(void)
static int xmlParserDebugEntitiesThrDef
int xmlLoadExtDtdDefaultValue
int xmlThrDefGetWarningsDefaultValue(int v)
static const char * xmlTreeIndentStringThrDef
void xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler)
void xmlCleanupGlobals(void)
const char * xmlParserVersion
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func)
int * __oldXMLWDcompatibility(void)
xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue(void)
void ** __xmlGenericErrorContext(void)
const char ** __xmlTreeIndentString(void)
int * __xmlKeepBlanksDefaultValue(void)
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func)
int * __xmlPedanticParserDefaultValue(void)
xmlStructuredErrorFunc * __xmlStructuredError(void)
xmlStructuredErrorFunc xmlStructuredError
const char ** __xmlParserVersion(void)
static int xmlDefaultBufferSizeThrDef
int xmlThrDefLineNumbersDefaultValue(int v)
int * __xmlLoadExtDtdDefaultValue(void)
void XMLCDECL xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
static int xmlLoadExtDtdDefaultValueThrDef
xmlBufferAllocationScheme * __xmlBufferAllocScheme(void)
xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue(void)
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
static int xmlDoValidityCheckingDefaultValueThrDef
xmlSAXLocator xmlDefaultSAXLocator
xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func)
int xmlThrDefIndentTreeOutput(int v)
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
int xmlThrDefDefaultBufferSize(int v)
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
static xmlMutexPtr xmlThrDefMutex
int xmlDoValidityCheckingDefaultValue
xmlMallocFunc xmlMallocAtomic
int * __xmlParserDebugEntities(void)
int * __xmlLineNumbersDefaultValue(void)
int xmlKeepBlanksDefaultValue
static int xmlPedanticParserDefaultValueThrDef
int xmlThrDefSubstituteEntitiesDefaultValue(int v)
xmlStrdupFunc xmlMemStrdup
int xmlPedanticParserDefaultValue
xmlSAXLocator * __xmlDefaultSAXLocator(void)
int xmlGetWarningsDefaultValue
int * __xmlGetWarningsDefaultValue(void)
int * __xmlDefaultBufferSize(void)
static xmlGenericErrorFunc xmlGenericErrorThrDef
int xmlLineNumbersDefaultValue
xmlBufferAllocationScheme xmlBufferAllocScheme
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)
void(XMLCDECL * xmlGenericErrorFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
XMLPUBFUN void XMLCDECL xmlParserError(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
XMLPUBFUN void XMLCALL xmlResetError(xmlErrorPtr err)
void(XMLCDECL *) typedef void(XMLCALL * xmlStructuredErrorFunc)(void *userData, xmlErrorPtr error)
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
void *(XMLCALL * xmlReallocFunc)(void *mem, size_t size)
char *(XMLCALL * xmlStrdupFunc)(const char *str)
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
void(XMLCALL * xmlFreeFunc)(void *mem)
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
#define LIBXML_VERSION_EXTRA
#define LIBXML_VERSION_STRING