ReactOS 0.4.16-dev-340-g0540c21
globals.c
Go to the documentation of this file.
1/*
2 * globals.c: definition and handling of the set of global variables
3 * of the library
4 *
5 * The bottom of this file is automatically generated by build_glob.py
6 * based on the description file global.data
7 *
8 * See Copyright for the status of this software.
9 *
10 * Gary Pennington <Gary.Pennington@uk.sun.com>
11 * daniel@veillard.com
12 */
13
14#define IN_LIBXML
15#include "libxml.h"
16
17#include <stdlib.h>
18#include <string.h>
19
20#include <libxml/globals.h>
21#include <libxml/xmlmemory.h>
22#include <libxml/threads.h>
23
24/* #define DEBUG_GLOBALS */
25
26/*
27 * Helpful Macro
28 */
29#ifdef LIBXML_THREAD_ENABLED
30#define IS_MAIN_THREAD (xmlIsMainThread())
31#else
32#define IS_MAIN_THREAD 1
33#endif
34
35/*
36 * Mutex to protect "ForNewThreads" variables
37 */
39
49{
50 if (xmlThrDefMutex == NULL)
52}
53
54/************************************************************************
55 * *
56 * All the user accessible global variables of the library *
57 * *
58 ************************************************************************/
59
60/*
61 * Memory allocation routines
62 */
63#undef xmlFree
64#undef xmlMalloc
65#undef xmlMallocAtomic
66#undef xmlMemStrdup
67#undef xmlRealloc
68
69#if defined(DEBUG_MEMORY_LOCATION) || defined(DEBUG_MEMORY)
71xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
72xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
75#else
91xmlMallocFunc xmlMalloc = malloc;
102xmlMallocFunc xmlMallocAtomic = malloc;
121static char *
122xmlPosixStrdup(const char *cur) {
123 return((char*) xmlCharStrdup(cur));
124}
134#endif /* DEBUG_MEMORY_LOCATION || DEBUG_MEMORY */
135
136#include <libxml/threads.h>
137#include <libxml/globals.h>
138#include <libxml/SAX.h>
139
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
164#undef xmlLastError
165
166#undef xmlParserInputBufferCreateFilenameValue
167#undef xmlOutputBufferCreateFilenameValue
174
190
191/*
192 * Parser defaults
193 */
194
200int oldXMLWDcompatibility = 0; /* DEPRECATED */
275
280
283
286
287/*
288 * Error handling
289 */
290
291/* xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc; */
292/* Must initialize xmlGenericError in xmlInitParser */
294 const char *msg,
295 ...);
325
326/*
327 * output defaults
328 */
337
343const char *xmlTreeIndentString = " ";
344static const char *xmlTreeIndentStringThrDef = " ";
345
356
357#ifdef LIBXML_SAX1_ENABLED
378 xmlSAX2StartElement,
379 xmlSAX2EndElement,
391 0,
392};
393#endif /* LIBXML_SAX1_ENABLED */
394
406};
407
408#ifdef LIBXML_HTML_ENABLED
414xmlSAXHandlerV1 htmlDefaultSAXHandler = {
416 NULL,
417 NULL,
418 NULL,
419 NULL,
421 NULL,
422 NULL,
423 NULL,
424 NULL,
425 NULL,
429 xmlSAX2StartElement,
430 xmlSAX2EndElement,
431 NULL,
441 NULL,
442 0,
443};
444#endif /* LIBXML_HTML_ENABLED */
445
453void
455{
456#ifdef DEBUG_GLOBALS
457 fprintf(stderr, "Initializing globals at %lu for thread %d\n",
458 (unsigned long) gs, xmlGetThreadId());
459#endif
460
461 /*
462 * Perform initialization as required by libxml
463 */
464 if (xmlThrDefMutex == NULL)
466
468
469#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
470 inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler);
471#endif
472
473 gs->oldXMLWDcompatibility = 0;
474 gs->xmlBufferAllocScheme = xmlBufferAllocSchemeThrDef;
475 gs->xmlDefaultBufferSize = xmlDefaultBufferSizeThrDef;
476#if defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_LEGACY_ENABLED)
477 initxmlDefaultSAXHandler(&gs->xmlDefaultSAXHandler, 1);
478#endif /* LIBXML_SAX1_ENABLED */
479 gs->xmlDefaultSAXLocator.getPublicId = xmlSAX2GetPublicId;
480 gs->xmlDefaultSAXLocator.getSystemId = xmlSAX2GetSystemId;
481 gs->xmlDefaultSAXLocator.getLineNumber = xmlSAX2GetLineNumber;
482 gs->xmlDefaultSAXLocator.getColumnNumber = xmlSAX2GetColumnNumber;
483 gs->xmlDoValidityCheckingDefaultValue =
485#if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
486 gs->xmlFree = (xmlFreeFunc) xmlMemFree;
487 gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
488 gs->xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
489 gs->xmlRealloc = (xmlReallocFunc) xmlMemRealloc;
490 gs->xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup;
491#else
492 gs->xmlFree = (xmlFreeFunc) free;
493 gs->xmlMalloc = (xmlMallocFunc) malloc;
494 gs->xmlMallocAtomic = (xmlMallocFunc) malloc;
495 gs->xmlRealloc = (xmlReallocFunc) realloc;
496 gs->xmlMemStrdup = (xmlStrdupFunc) xmlStrdup;
497#endif
498 gs->xmlGetWarningsDefaultValue = xmlGetWarningsDefaultValueThrDef;
499 gs->xmlIndentTreeOutput = xmlIndentTreeOutputThrDef;
500 gs->xmlTreeIndentString = xmlTreeIndentStringThrDef;
501 gs->xmlKeepBlanksDefaultValue = xmlKeepBlanksDefaultValueThrDef;
502 gs->xmlLineNumbersDefaultValue = xmlLineNumbersDefaultValueThrDef;
503 gs->xmlLoadExtDtdDefaultValue = xmlLoadExtDtdDefaultValueThrDef;
504 gs->xmlParserDebugEntities = xmlParserDebugEntitiesThrDef;
505 gs->xmlParserVersion = LIBXML_VERSION_STRING;
506 gs->xmlPedanticParserDefaultValue = xmlPedanticParserDefaultValueThrDef;
507 gs->xmlSaveNoEmptyTags = xmlSaveNoEmptyTagsThrDef;
508 gs->xmlSubstituteEntitiesDefaultValue =
510
511 gs->xmlGenericError = xmlGenericErrorThrDef;
512 gs->xmlStructuredError = xmlStructuredErrorThrDef;
513 gs->xmlGenericErrorContext = xmlGenericErrorContextThrDef;
514 gs->xmlStructuredErrorContext = xmlStructuredErrorContextThrDef;
515 gs->xmlRegisterNodeDefaultValue = xmlRegisterNodeDefaultValueThrDef;
516 gs->xmlDeregisterNodeDefaultValue = xmlDeregisterNodeDefaultValueThrDef;
517
518 gs->xmlParserInputBufferCreateFilenameValue = xmlParserInputBufferCreateFilenameValueThrDef;
519 gs->xmlOutputBufferCreateFilenameValue = xmlOutputBufferCreateFilenameValueThrDef;
520 memset(&gs->xmlLastError, 0, sizeof(xmlError));
521
523}
524
536{
538
539 if (xmlThrDefMutex != NULL) {
542 }
544}
545
550void
554 if (handler != NULL)
556 else
559}
560
561void
567}
568
579{
581
584 return(old);
585}
586
589{
591
594
598
599 return(old);
600}
601
612{
614
617 return(old);
618}
619
622{
624
627
631
632 return(old);
633}
634
637{
639
642 if (old == NULL) {
644 }
645
648
649 return(old);
650}
651
654{
656
659#ifdef LIBXML_OUTPUT_ENABLED
660 if (old == NULL) {
661 old = __xmlOutputBufferCreateFilename;
662 }
663#endif
666
667 return(old);
668}
669
670#ifdef LIBXML_HTML_ENABLED
671#undef htmlDefaultSAXHandler
673__htmlDefaultSAXHandler(void) {
674 if (IS_MAIN_THREAD)
675 return (&htmlDefaultSAXHandler);
676 else
677 return (&xmlGetGlobalState()->htmlDefaultSAXHandler);
678}
679#endif
680
681#undef xmlLastError
682xmlError *
684 if (IS_MAIN_THREAD)
685 return (&xmlLastError);
686 else
687 return (&xmlGetGlobalState()->xmlLastError);
688}
689
690/*
691 * The following memory routines were apparently lost at some point,
692 * and were re-inserted at this point on June 10, 2004. Hope it's
693 * the right place for them :-)
694 */
695#if defined(LIBXML_THREAD_ALLOC_ENABLED) && defined(LIBXML_THREAD_ENABLED)
696#undef xmlMalloc
697xmlMallocFunc *
698__xmlMalloc(void){
699 if (IS_MAIN_THREAD)
700 return (&xmlMalloc);
701 else
702 return (&xmlGetGlobalState()->xmlMalloc);
703}
704
705#undef xmlMallocAtomic
706xmlMallocFunc *
707__xmlMallocAtomic(void){
708 if (IS_MAIN_THREAD)
709 return (&xmlMallocAtomic);
710 else
712}
713
714#undef xmlRealloc
716__xmlRealloc(void){
717 if (IS_MAIN_THREAD)
718 return (&xmlRealloc);
719 else
720 return (&xmlGetGlobalState()->xmlRealloc);
721}
722
723#undef xmlFree
725__xmlFree(void){
726 if (IS_MAIN_THREAD)
727 return (&xmlFree);
728 else
729 return (&xmlGetGlobalState()->xmlFree);
730}
731
733__xmlMemStrdup(void){
734 if (IS_MAIN_THREAD)
735 return (&xmlMemStrdup);
736 else
737 return (&xmlGetGlobalState()->xmlMemStrdup);
738}
739
740#endif
741
742/*
743 * Everything starting from the line below is
744 * Automatically generated by build_glob.py.
745 * Do not modify the previous line.
746 */
747
748
749#undef oldXMLWDcompatibility
750int *
752 if (IS_MAIN_THREAD)
753 return (&oldXMLWDcompatibility);
754 else
756}
757
758#undef xmlBufferAllocScheme
761 if (IS_MAIN_THREAD)
762 return (&xmlBufferAllocScheme);
763 else
765}
772 return ret;
773}
774
775#undef xmlDefaultBufferSize
776int *
778 if (IS_MAIN_THREAD)
779 return (&xmlDefaultBufferSize);
780 else
782}
784 int ret;
789 return ret;
790}
791
792#ifdef LIBXML_SAX1_ENABLED
793#undef xmlDefaultSAXHandler
796 if (IS_MAIN_THREAD)
797 return (&xmlDefaultSAXHandler);
798 else
800}
801#endif /* LIBXML_SAX1_ENABLED */
802
803#undef xmlDefaultSAXLocator
806 if (IS_MAIN_THREAD)
807 return (&xmlDefaultSAXLocator);
808 else
810}
811
812#undef xmlDoValidityCheckingDefaultValue
813int *
815 if (IS_MAIN_THREAD)
817 else
819}
821 int ret;
826 return ret;
827}
828
829#undef xmlGenericError
832 if (IS_MAIN_THREAD)
833 return (&xmlGenericError);
834 else
836}
837
838#undef xmlStructuredError
841 if (IS_MAIN_THREAD)
842 return (&xmlStructuredError);
843 else
845}
846
847#undef xmlGenericErrorContext
848void * *
850 if (IS_MAIN_THREAD)
851 return (&xmlGenericErrorContext);
852 else
854}
855
856#undef xmlStructuredErrorContext
857void * *
859 if (IS_MAIN_THREAD)
861 else
863}
864
865#undef xmlGetWarningsDefaultValue
866int *
868 if (IS_MAIN_THREAD)
870 else
872}
874 int ret;
879 return ret;
880}
881
882#undef xmlIndentTreeOutput
883int *
885 if (IS_MAIN_THREAD)
886 return (&xmlIndentTreeOutput);
887 else
889}
891 int ret;
896 return ret;
897}
898
899#undef xmlTreeIndentString
900const char * *
902 if (IS_MAIN_THREAD)
903 return (&xmlTreeIndentString);
904 else
906}
907const char * xmlThrDefTreeIndentString(const char * v) {
908 const char * ret;
913 return ret;
914}
915
916#undef xmlKeepBlanksDefaultValue
917int *
919 if (IS_MAIN_THREAD)
921 else
923}
925 int ret;
930 return ret;
931}
932
933#undef xmlLineNumbersDefaultValue
934int *
936 if (IS_MAIN_THREAD)
938 else
940}
942 int ret;
947 return ret;
948}
949
950#undef xmlLoadExtDtdDefaultValue
951int *
953 if (IS_MAIN_THREAD)
955 else
957}
959 int ret;
964 return ret;
965}
966
967#undef xmlParserDebugEntities
968int *
970 if (IS_MAIN_THREAD)
971 return (&xmlParserDebugEntities);
972 else
974}
976 int ret;
981 return ret;
982}
983
984#undef xmlParserVersion
985const char * *
987 if (IS_MAIN_THREAD)
988 return (&xmlParserVersion);
989 else
991}
992
993#undef xmlPedanticParserDefaultValue
994int *
996 if (IS_MAIN_THREAD)
998 else
1000}
1002 int ret;
1007 return ret;
1008}
1009
1010#undef xmlSaveNoEmptyTags
1011int *
1013 if (IS_MAIN_THREAD)
1014 return (&xmlSaveNoEmptyTags);
1015 else
1017}
1019 int ret;
1024 return ret;
1025}
1026
1027#undef xmlSubstituteEntitiesDefaultValue
1028int *
1030 if (IS_MAIN_THREAD)
1032 else
1034}
1036 int ret;
1041 return ret;
1042}
1043
1044#undef xmlRegisterNodeDefaultValue
1047 if (IS_MAIN_THREAD)
1049 else
1051}
1052
1053#undef xmlDeregisterNodeDefaultValue
1056 if (IS_MAIN_THREAD)
1058 else
1060}
1061
1062#undef xmlParserInputBufferCreateFilenameValue
1065 if (IS_MAIN_THREAD)
1067 else
1069}
1070
1071#undef xmlOutputBufferCreateFilenameValue
1074 if (IS_MAIN_THREAD)
1076 else
1078}
1079
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
Definition: SAX2.c:2657
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
Definition: SAX2.c:998
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
Definition: SAX2.c:307
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:259
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
Definition: SAX2.c:2754
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)
Definition: SAX2.c:604
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:227
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
Definition: SAX2.c:849
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:489
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:795
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
Definition: SAX2.c:2690
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
Definition: SAX2.c:674
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:324
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:576
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:526
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
Definition: SAX2.c:933
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:362
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
Definition: SAX2.c:275
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
Definition: SAX2.c:746
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
Definition: SAX2.c:2488
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
Definition: SAX2.c:291
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
Definition: SAX2.c:2816
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
Definition: SAX2.c:243
#define msg(x)
Definition: auth_time.c:54
#define realloc
Definition: debug_ros.c:6
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
#define NULL
Definition: types.h:112
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7512
FxCollectionEntry * cur
const GLdouble * v
Definition: gl.h:2040
GLenum func
Definition: glext.h:6028
#define ATTRIBUTE_UNUSED
Definition: i386-dis.c:36
#define gs
Definition: i386-dis.c:445
#define stderr
Definition: stdio.h:100
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:512
int __xmlRegisterCallbacks
Definition: tree.c:50
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
Definition: globals.h:43
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:118
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
Definition: globals.h:58
XMLPUBFUN xmlSAXHandlerV1 *XMLCALL __xmlDefaultSAXHandler(void)
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:111
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
Definition: globals.h:312
xmlBufferAllocationScheme
Definition: tree.h:74
@ XML_BUFFER_ALLOC_EXACT
Definition: tree.h:76
#define BASE_BUFFER_SIZE
Definition: tree.h:56
xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:578
int xmlSaveNoEmptyTags
Definition: globals.c:354
static int xmlSaveNoEmptyTagsThrDef
Definition: globals.c:355
int xmlThrDefKeepBlanksDefaultValue(int v)
Definition: globals.c:924
int xmlSubstituteEntitiesDefaultValue
Definition: globals.c:273
int * __xmlIndentTreeOutput(void)
Definition: globals.c:884
xmlError * __xmlLastError(void)
Definition: globals.c:683
void * xmlGenericErrorContext
Definition: globals.c:315
xmlGenericErrorFunc * __xmlGenericError(void)
Definition: globals.c:831
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:282
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
Definition: globals.c:281
xmlReallocFunc xmlRealloc
Definition: globals.c:112
int xmlThrDefDoValidityCheckingDefaultValue(int v)
Definition: globals.c:820
const char * xmlTreeIndentString
Definition: globals.c:343
static int xmlLineNumbersDefaultValueThrDef
Definition: globals.c:252
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
Definition: globals.c:277
static char * xmlPosixStrdup(const char *cur)
Definition: globals.c:122
int xmlIndentTreeOutput
Definition: globals.c:335
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
Definition: globals.c:276
xmlFreeFunc xmlFree
Definition: globals.c:82
int xmlThrDefParserDebugEntities(int v)
Definition: globals.c:975
int xmlThrDefSaveNoEmptyTags(int v)
Definition: globals.c:1018
int * __xmlSubstituteEntitiesDefaultValue(void)
Definition: globals.c:1029
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
Definition: globals.c:284
int * __xmlDoValidityCheckingDefaultValue(void)
Definition: globals.c:814
int xmlThrDefPedanticParserDefaultValue(int v)
Definition: globals.c:1001
xmlGenericErrorFunc xmlGenericError
Definition: globals.c:301
void ** __xmlStructuredErrorContext(void)
Definition: globals.c:858
static int xmlGetWarningsDefaultValueThrDef
Definition: globals.c:225
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v)
Definition: globals.c:766
xmlError xmlLastError
Definition: globals.c:324
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
Definition: globals.c:309
void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler)
Definition: globals.c:551
static void * xmlGenericErrorContextThrDef
Definition: globals.c:316
int * __xmlSaveNoEmptyTags(void)
Definition: globals.c:1012
int xmlThrDefLoadExtDtdDefaultValue(int v)
Definition: globals.c:958
const char * xmlThrDefTreeIndentString(const char *v)
Definition: globals.c:907
int xmlParserDebugEntities
Definition: globals.c:208
void xmlInitializeGlobalState(xmlGlobalStatePtr gs)
Definition: globals.c:454
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:285
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func)
Definition: globals.c:653
static int xmlSubstituteEntitiesDefaultValueThrDef
Definition: globals.c:274
xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue(void)
Definition: globals.c:1055
void * xmlStructuredErrorContext
Definition: globals.c:322
int oldXMLWDcompatibility
Definition: globals.c:200
static int xmlIndentTreeOutputThrDef
Definition: globals.c:336
static int xmlKeepBlanksDefaultValueThrDef
Definition: globals.c:263
static void * xmlStructuredErrorContextThrDef
Definition: globals.c:323
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault(xmlParserInputBufferCreateFilenameFunc func)
Definition: globals.c:636
xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue(void)
Definition: globals.c:1073
void xmlInitGlobals(void)
Definition: globals.c:48
static int xmlParserDebugEntitiesThrDef
Definition: globals.c:209
int xmlLoadExtDtdDefaultValue
Definition: globals.c:233
int xmlThrDefGetWarningsDefaultValue(int v)
Definition: globals.c:873
static const char * xmlTreeIndentStringThrDef
Definition: globals.c:344
void xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler)
Definition: globals.c:562
void xmlCleanupGlobals(void)
Definition: globals.c:535
const char * xmlParserVersion
Definition: globals.c:173
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:588
int * __oldXMLWDcompatibility(void)
Definition: globals.c:751
xmlMallocFunc xmlMalloc
Definition: globals.c:91
xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue(void)
Definition: globals.c:1064
void ** __xmlGenericErrorContext(void)
Definition: globals.c:849
const char ** __xmlTreeIndentString(void)
Definition: globals.c:901
int * __xmlKeepBlanksDefaultValue(void)
Definition: globals.c:918
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:621
int * __xmlPedanticParserDefaultValue(void)
Definition: globals.c:995
xmlStructuredErrorFunc * __xmlStructuredError(void)
Definition: globals.c:840
xmlStructuredErrorFunc xmlStructuredError
Definition: globals.c:308
const char ** __xmlParserVersion(void)
Definition: globals.c:986
static int xmlDefaultBufferSizeThrDef
Definition: globals.c:189
int xmlThrDefLineNumbersDefaultValue(int v)
Definition: globals.c:941
int * __xmlLoadExtDtdDefaultValue(void)
Definition: globals.c:952
void XMLCDECL xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
Definition: error.c:71
#define IS_MAIN_THREAD
Definition: globals.c:32
static int xmlLoadExtDtdDefaultValueThrDef
Definition: globals.c:234
xmlBufferAllocationScheme * __xmlBufferAllocScheme(void)
Definition: globals.c:760
xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue(void)
Definition: globals.c:1046
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
Definition: globals.c:279
int xmlDefaultBufferSize
Definition: globals.c:188
static int xmlDoValidityCheckingDefaultValueThrDef
Definition: globals.c:217
xmlSAXLocator xmlDefaultSAXLocator
Definition: globals.c:401
xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:611
int xmlThrDefIndentTreeOutput(int v)
Definition: globals.c:890
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
Definition: globals.c:278
int xmlThrDefDefaultBufferSize(int v)
Definition: globals.c:783
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
Definition: globals.c:182
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:38
int xmlDoValidityCheckingDefaultValue
Definition: globals.c:216
xmlMallocFunc xmlMallocAtomic
Definition: globals.c:102
int * __xmlParserDebugEntities(void)
Definition: globals.c:969
int * __xmlLineNumbersDefaultValue(void)
Definition: globals.c:935
int xmlKeepBlanksDefaultValue
Definition: globals.c:262
static int xmlPedanticParserDefaultValueThrDef
Definition: globals.c:242
int xmlThrDefSubstituteEntitiesDefaultValue(int v)
Definition: globals.c:1035
xmlStrdupFunc xmlMemStrdup
Definition: globals.c:133
int xmlPedanticParserDefaultValue
Definition: globals.c:241
xmlSAXLocator * __xmlDefaultSAXLocator(void)
Definition: globals.c:805
int xmlGetWarningsDefaultValue
Definition: globals.c:224
int * __xmlGetWarningsDefaultValue(void)
Definition: globals.c:867
int * __xmlDefaultBufferSize(void)
Definition: globals.c:777
static xmlGenericErrorFunc xmlGenericErrorThrDef
Definition: globals.c:302
int xmlLineNumbersDefaultValue
Definition: globals.c:251
xmlBufferAllocationScheme xmlBufferAllocScheme
Definition: globals.c:181
#define memset(x, y, z)
Definition: compat.h:39
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:248
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:640
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:168
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:197
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:750
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:220
int ret
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)
void(XMLCDECL * xmlGenericErrorFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
Definition: xmlerror.h:847
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)
Definition: xmlerror.h:858
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
#define XMLCDECL
Definition: xmlexports.h:52
void *(XMLCALL * xmlReallocFunc)(void *mem, size_t size)
Definition: xmlmemory.h:77
char *(XMLCALL * xmlStrdupFunc)(const char *str)
Definition: xmlmemory.h:87
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
Definition: xmlmemory.c:414
void(XMLCALL * xmlFreeFunc)(void *mem)
Definition: xmlmemory.h:57
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
Definition: xmlmemory.c:294
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
Definition: xmlmemory.c:555
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
Definition: xmlmemory.c:403
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
Definition: xmlstring.c:67
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
Definition: xmlstring.c:114
#define LIBXML_VERSION_EXTRA
Definition: xmlversion.h:53
#define LIBXML_VERSION_STRING
Definition: xmlversion.h:46