mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:46:52 +00:00
[LIBXML2] Update to version 2.10.0. CORE-17766
This commit is contained in:
parent
608bbe1136
commit
911153da10
80 changed files with 2351 additions and 20735 deletions
65
sdk/lib/3rdparty/libxml2/globals.c
vendored
65
sdk/lib/3rdparty/libxml2/globals.c
vendored
|
@ -14,9 +14,7 @@
|
|||
#define IN_LIBXML
|
||||
#include "libxml.h"
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <libxml/globals.h>
|
||||
|
@ -42,6 +40,9 @@ static xmlMutexPtr xmlThrDefMutex = NULL;
|
|||
/**
|
||||
* xmlInitGlobals:
|
||||
*
|
||||
* DEPRECATED: This function will be made private. Call xmlInitParser to
|
||||
* initialize the library.
|
||||
*
|
||||
* Additional initialisation for multi-threading
|
||||
*/
|
||||
void xmlInitGlobals(void)
|
||||
|
@ -136,7 +137,6 @@ xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup;
|
|||
#include <libxml/globals.h>
|
||||
#include <libxml/SAX.h>
|
||||
|
||||
#undef docbDefaultSAXHandler
|
||||
#undef htmlDefaultSAXHandler
|
||||
#undef oldXMLWDcompatibility
|
||||
#undef xmlBufferAllocScheme
|
||||
|
@ -443,44 +443,6 @@ xmlSAXHandlerV1 htmlDefaultSAXHandler = {
|
|||
};
|
||||
#endif /* LIBXML_HTML_ENABLED */
|
||||
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
/**
|
||||
* docbDefaultSAXHandler:
|
||||
*
|
||||
* Default old SAX v1 handler for SGML DocBook, builds the DOM tree
|
||||
*/
|
||||
xmlSAXHandlerV1 docbDefaultSAXHandler = {
|
||||
xmlSAX2InternalSubset,
|
||||
xmlSAX2IsStandalone,
|
||||
xmlSAX2HasInternalSubset,
|
||||
xmlSAX2HasExternalSubset,
|
||||
xmlSAX2ResolveEntity,
|
||||
xmlSAX2GetEntity,
|
||||
xmlSAX2EntityDecl,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
xmlSAX2SetDocumentLocator,
|
||||
xmlSAX2StartDocument,
|
||||
xmlSAX2EndDocument,
|
||||
xmlSAX2StartElement,
|
||||
xmlSAX2EndElement,
|
||||
xmlSAX2Reference,
|
||||
xmlSAX2Characters,
|
||||
xmlSAX2IgnorableWhitespace,
|
||||
NULL,
|
||||
xmlSAX2Comment,
|
||||
xmlParserWarning,
|
||||
xmlParserError,
|
||||
xmlParserError,
|
||||
xmlSAX2GetParameterEntity,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
};
|
||||
#endif /* LIBXML_DOCB_ENABLED */
|
||||
|
||||
/**
|
||||
* xmlInitializeGlobalState:
|
||||
* @gs: a pointer to a newly allocated global state
|
||||
|
@ -504,9 +466,6 @@ xmlInitializeGlobalState(xmlGlobalStatePtr gs)
|
|||
|
||||
xmlMutexLock(xmlThrDefMutex);
|
||||
|
||||
#if defined(LIBXML_DOCB_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
|
||||
initdocbDefaultSAXHandler(&gs->docbDefaultSAXHandler);
|
||||
#endif
|
||||
#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
|
||||
inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler);
|
||||
#endif
|
||||
|
@ -566,6 +525,11 @@ xmlInitializeGlobalState(xmlGlobalStatePtr gs)
|
|||
/**
|
||||
* xmlCleanupGlobals:
|
||||
*
|
||||
* DEPRECATED: This function will be made private. 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.
|
||||
*
|
||||
* Additional cleanup for multi-threading
|
||||
*/
|
||||
void xmlCleanupGlobals(void)
|
||||
|
@ -703,17 +667,6 @@ xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc fun
|
|||
return(old);
|
||||
}
|
||||
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
#undef docbDefaultSAXHandler
|
||||
xmlSAXHandlerV1 *
|
||||
__docbDefaultSAXHandler(void) {
|
||||
if (IS_MAIN_THREAD)
|
||||
return (&docbDefaultSAXHandler);
|
||||
else
|
||||
return (&xmlGetGlobalState()->docbDefaultSAXHandler);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
#undef htmlDefaultSAXHandler
|
||||
xmlSAXHandlerV1 *
|
||||
|
@ -1124,5 +1077,3 @@ __xmlOutputBufferCreateFilenameValue(void) {
|
|||
return (&xmlGetGlobalState()->xmlOutputBufferCreateFilenameValue);
|
||||
}
|
||||
|
||||
#define bottom_globals
|
||||
#include "elfgcchack.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue