ReactOS  0.4.14-dev-50-g13bb5e2
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 #ifdef HAVE_STDLIB_H
18 #include <stdlib.h>
19 #endif
20 #include <string.h>
21 
22 #include <libxml/globals.h>
23 #include <libxml/xmlmemory.h>
24 #include <libxml/threads.h>
25 
26 /* #define DEBUG_GLOBALS */
27 
28 /*
29  * Helpful Macro
30  */
31 #ifdef LIBXML_THREAD_ENABLED
32 #define IS_MAIN_THREAD (xmlIsMainThread())
33 #else
34 #define IS_MAIN_THREAD 1
35 #endif
36 
37 /*
38  * Mutex to protect "ForNewThreads" variables
39  */
41 
47 void xmlInitGlobals(void)
48 {
49  if (xmlThrDefMutex == NULL)
51 }
52 
59 {
60  if (xmlThrDefMutex != NULL) {
63  }
65 }
66 
67 /************************************************************************
68  * *
69  * All the user accessible global variables of the library *
70  * *
71  ************************************************************************/
72 
73 /*
74  * Memory allocation routines
75  */
76 #undef xmlFree
77 #undef xmlMalloc
78 #undef xmlMallocAtomic
79 #undef xmlMemStrdup
80 #undef xmlRealloc
81 
82 #if defined(DEBUG_MEMORY_LOCATION) || defined(DEBUG_MEMORY)
84 xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
85 xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
88 #else
89 
104 xmlMallocFunc xmlMalloc = malloc;
115 xmlMallocFunc xmlMallocAtomic = malloc;
134 static char *
135 xmlPosixStrdup(const char *cur) {
136  return((char*) xmlCharStrdup(cur));
137 }
147 #endif /* DEBUG_MEMORY_LOCATION || DEBUG_MEMORY */
148 
149 #include <libxml/threads.h>
150 #include <libxml/globals.h>
151 #include <libxml/SAX.h>
152 
153 #undef docbDefaultSAXHandler
154 #undef htmlDefaultSAXHandler
155 #undef oldXMLWDcompatibility
156 #undef xmlBufferAllocScheme
157 #undef xmlDefaultBufferSize
158 #undef xmlDefaultSAXHandler
159 #undef xmlDefaultSAXLocator
160 #undef xmlDoValidityCheckingDefaultValue
161 #undef xmlGenericError
162 #undef xmlStructuredError
163 #undef xmlGenericErrorContext
164 #undef xmlStructuredErrorContext
165 #undef xmlGetWarningsDefaultValue
166 #undef xmlIndentTreeOutput
167 #undef xmlTreeIndentString
168 #undef xmlKeepBlanksDefaultValue
169 #undef xmlLineNumbersDefaultValue
170 #undef xmlLoadExtDtdDefaultValue
171 #undef xmlParserDebugEntities
172 #undef xmlParserVersion
173 #undef xmlPedanticParserDefaultValue
174 #undef xmlSaveNoEmptyTags
175 #undef xmlSubstituteEntitiesDefaultValue
176 #undef xmlRegisterNodeDefaultValue
177 #undef xmlDeregisterNodeDefaultValue
178 #undef xmlLastError
179 
180 #undef xmlParserInputBufferCreateFilenameValue
181 #undef xmlOutputBufferCreateFilenameValue
182 
188 
204 
205 /*
206  * Parser defaults
207  */
208 
214 int oldXMLWDcompatibility = 0; /* DEPRECATED */
289 
294 
297 
300 
301 /*
302  * Error handling
303  */
304 
305 /* xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc; */
306 /* Must initialize xmlGenericError in xmlInitParser */
308  const char *msg,
309  ...);
322 xmlStructuredErrorFunc xmlStructuredError = NULL;
323 static xmlStructuredErrorFunc xmlStructuredErrorThrDef = NULL;
339 
340 /*
341  * output defaults
342  */
351 
357 const char *xmlTreeIndentString = " ";
358 static const char *xmlTreeIndentStringThrDef = " ";
359 
370 
371 #ifdef LIBXML_SAX1_ENABLED
372 
392  xmlSAX2StartElement,
393  xmlSAX2EndElement,
405  0,
406 };
407 #endif /* LIBXML_SAX1_ENABLED */
408 
420 };
421 
422 #ifdef LIBXML_HTML_ENABLED
423 
428 xmlSAXHandlerV1 htmlDefaultSAXHandler = {
430  NULL,
431  NULL,
432  NULL,
433  NULL,
435  NULL,
436  NULL,
437  NULL,
438  NULL,
439  NULL,
443  xmlSAX2StartElement,
444  xmlSAX2EndElement,
445  NULL,
455  NULL,
456  0,
457 };
458 #endif /* LIBXML_HTML_ENABLED */
459 
460 #ifdef LIBXML_DOCB_ENABLED
461 
466 xmlSAXHandlerV1 docbDefaultSAXHandler = {
474  NULL,
475  NULL,
476  NULL,
477  NULL,
481  xmlSAX2StartElement,
482  xmlSAX2EndElement,
486  NULL,
492  NULL,
493  NULL,
494  0,
495 };
496 #endif /* LIBXML_DOCB_ENABLED */
497 
505 void
507 {
508 #ifdef DEBUG_GLOBALS
509  fprintf(stderr, "Initializing globals at %lu for thread %d\n",
510  (unsigned long) gs, xmlGetThreadId());
511 #endif
512 
513  /*
514  * Perform initialization as required by libxml
515  */
516  if (xmlThrDefMutex == NULL)
517  xmlInitGlobals();
518 
520 
521 #if defined(LIBXML_DOCB_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
522  initdocbDefaultSAXHandler(&gs->docbDefaultSAXHandler);
523 #endif
524 #if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
525  inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler);
526 #endif
527 
528  gs->oldXMLWDcompatibility = 0;
529  gs->xmlBufferAllocScheme = xmlBufferAllocSchemeThrDef;
530  gs->xmlDefaultBufferSize = xmlDefaultBufferSizeThrDef;
531 #if defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_LEGACY_ENABLED)
532  initxmlDefaultSAXHandler(&gs->xmlDefaultSAXHandler, 1);
533 #endif /* LIBXML_SAX1_ENABLED */
534  gs->xmlDefaultSAXLocator.getPublicId = xmlSAX2GetPublicId;
535  gs->xmlDefaultSAXLocator.getSystemId = xmlSAX2GetSystemId;
536  gs->xmlDefaultSAXLocator.getLineNumber = xmlSAX2GetLineNumber;
537  gs->xmlDefaultSAXLocator.getColumnNumber = xmlSAX2GetColumnNumber;
538  gs->xmlDoValidityCheckingDefaultValue =
540 #if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
541  gs->xmlFree = (xmlFreeFunc) xmlMemFree;
542  gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
543  gs->xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
544  gs->xmlRealloc = (xmlReallocFunc) xmlMemRealloc;
545  gs->xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup;
546 #else
547  gs->xmlFree = (xmlFreeFunc) free;
548  gs->xmlMalloc = (xmlMallocFunc) malloc;
549  gs->xmlMallocAtomic = (xmlMallocFunc) malloc;
550  gs->xmlRealloc = (xmlReallocFunc) realloc;
551  gs->xmlMemStrdup = (xmlStrdupFunc) xmlStrdup;
552 #endif
553  gs->xmlGetWarningsDefaultValue = xmlGetWarningsDefaultValueThrDef;
554  gs->xmlIndentTreeOutput = xmlIndentTreeOutputThrDef;
555  gs->xmlTreeIndentString = xmlTreeIndentStringThrDef;
556  gs->xmlKeepBlanksDefaultValue = xmlKeepBlanksDefaultValueThrDef;
557  gs->xmlLineNumbersDefaultValue = xmlLineNumbersDefaultValueThrDef;
558  gs->xmlLoadExtDtdDefaultValue = xmlLoadExtDtdDefaultValueThrDef;
559  gs->xmlParserDebugEntities = xmlParserDebugEntitiesThrDef;
560  gs->xmlParserVersion = LIBXML_VERSION_STRING;
561  gs->xmlPedanticParserDefaultValue = xmlPedanticParserDefaultValueThrDef;
562  gs->xmlSaveNoEmptyTags = xmlSaveNoEmptyTagsThrDef;
563  gs->xmlSubstituteEntitiesDefaultValue =
565 
566  gs->xmlGenericError = xmlGenericErrorThrDef;
567  gs->xmlStructuredError = xmlStructuredErrorThrDef;
568  gs->xmlGenericErrorContext = xmlGenericErrorContextThrDef;
569  gs->xmlStructuredErrorContext = xmlStructuredErrorContextThrDef;
570  gs->xmlRegisterNodeDefaultValue = xmlRegisterNodeDefaultValueThrDef;
571  gs->xmlDeregisterNodeDefaultValue = xmlDeregisterNodeDefaultValueThrDef;
572 
573  gs->xmlParserInputBufferCreateFilenameValue = xmlParserInputBufferCreateFilenameValueThrDef;
574  gs->xmlOutputBufferCreateFilenameValue = xmlOutputBufferCreateFilenameValueThrDef;
575  memset(&gs->xmlLastError, 0, sizeof(xmlError));
576 
578 }
579 
584 void
588  if (handler != NULL)
590  else
593 }
594 
595 void
596 xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler) {
601 }
602 
613 {
615 
618  return(old);
619 }
620 
623 {
625 
628 
632 
633  return(old);
634 }
635 
646 {
648 
651  return(old);
652 }
653 
656 {
658 
661 
665 
666  return(old);
667 }
668 
671 {
673 
676  if (old == NULL) {
678  }
679 
682 
683  return(old);
684 }
685 
688 {
690 
693 #ifdef LIBXML_OUTPUT_ENABLED
694  if (old == NULL) {
695  old = __xmlOutputBufferCreateFilename;
696  }
697 #endif
700 
701  return(old);
702 }
703 
704 #ifdef LIBXML_DOCB_ENABLED
705 #undef docbDefaultSAXHandler
707 __docbDefaultSAXHandler(void) {
708  if (IS_MAIN_THREAD)
709  return (&docbDefaultSAXHandler);
710  else
711  return (&xmlGetGlobalState()->docbDefaultSAXHandler);
712 }
713 #endif
714 
715 #ifdef LIBXML_HTML_ENABLED
716 #undef htmlDefaultSAXHandler
718 __htmlDefaultSAXHandler(void) {
719  if (IS_MAIN_THREAD)
720  return (&htmlDefaultSAXHandler);
721  else
722  return (&xmlGetGlobalState()->htmlDefaultSAXHandler);
723 }
724 #endif
725 
726 #undef xmlLastError
727 xmlError *
729  if (IS_MAIN_THREAD)
730  return (&xmlLastError);
731  else
732  return (&xmlGetGlobalState()->xmlLastError);
733 }
734 
735 /*
736  * The following memory routines were apparently lost at some point,
737  * and were re-inserted at this point on June 10, 2004. Hope it's
738  * the right place for them :-)
739  */
740 #if defined(LIBXML_THREAD_ALLOC_ENABLED) && defined(LIBXML_THREAD_ENABLED)
741 #undef xmlMalloc
742 xmlMallocFunc *
743 __xmlMalloc(void){
744  if (IS_MAIN_THREAD)
745  return (&xmlMalloc);
746  else
747  return (&xmlGetGlobalState()->xmlMalloc);
748 }
749 
750 #undef xmlMallocAtomic
751 xmlMallocFunc *
752 __xmlMallocAtomic(void){
753  if (IS_MAIN_THREAD)
754  return (&xmlMallocAtomic);
755  else
756  return (&xmlGetGlobalState()->xmlMallocAtomic);
757 }
758 
759 #undef xmlRealloc
761 __xmlRealloc(void){
762  if (IS_MAIN_THREAD)
763  return (&xmlRealloc);
764  else
765  return (&xmlGetGlobalState()->xmlRealloc);
766 }
767 
768 #undef xmlFree
769 xmlFreeFunc *
770 __xmlFree(void){
771  if (IS_MAIN_THREAD)
772  return (&xmlFree);
773  else
774  return (&xmlGetGlobalState()->xmlFree);
775 }
776 
778 __xmlMemStrdup(void){
779  if (IS_MAIN_THREAD)
780  return (&xmlMemStrdup);
781  else
782  return (&xmlGetGlobalState()->xmlMemStrdup);
783 }
784 
785 #endif
786 
787 /*
788  * Everything starting from the line below is
789  * Automatically generated by build_glob.py.
790  * Do not modify the previous line.
791  */
792 
793 
794 #undef oldXMLWDcompatibility
795 int *
797  if (IS_MAIN_THREAD)
798  return (&oldXMLWDcompatibility);
799  else
801 }
802 
803 #undef xmlBufferAllocScheme
806  if (IS_MAIN_THREAD)
807  return (&xmlBufferAllocScheme);
808  else
810 }
817  return ret;
818 }
819 
820 #undef xmlDefaultBufferSize
821 int *
823  if (IS_MAIN_THREAD)
824  return (&xmlDefaultBufferSize);
825  else
827 }
829  int ret;
834  return ret;
835 }
836 
837 #ifdef LIBXML_SAX1_ENABLED
838 #undef xmlDefaultSAXHandler
841  if (IS_MAIN_THREAD)
842  return (&xmlDefaultSAXHandler);
843  else
845 }
846 #endif /* LIBXML_SAX1_ENABLED */
847 
848 #undef xmlDefaultSAXLocator
851  if (IS_MAIN_THREAD)
852  return (&xmlDefaultSAXLocator);
853  else
855 }
856 
857 #undef xmlDoValidityCheckingDefaultValue
858 int *
860  if (IS_MAIN_THREAD)
862  else
864 }
866  int ret;
871  return ret;
872 }
873 
874 #undef xmlGenericError
877  if (IS_MAIN_THREAD)
878  return (&xmlGenericError);
879  else
880  return (&xmlGetGlobalState()->xmlGenericError);
881 }
882 
883 #undef xmlStructuredError
884 xmlStructuredErrorFunc *
886  if (IS_MAIN_THREAD)
887  return (&xmlStructuredError);
888  else
890 }
891 
892 #undef xmlGenericErrorContext
893 void * *
895  if (IS_MAIN_THREAD)
896  return (&xmlGenericErrorContext);
897  else
899 }
900 
901 #undef xmlStructuredErrorContext
902 void * *
904  if (IS_MAIN_THREAD)
905  return (&xmlStructuredErrorContext);
906  else
908 }
909 
910 #undef xmlGetWarningsDefaultValue
911 int *
913  if (IS_MAIN_THREAD)
914  return (&xmlGetWarningsDefaultValue);
915  else
917 }
919  int ret;
924  return ret;
925 }
926 
927 #undef xmlIndentTreeOutput
928 int *
930  if (IS_MAIN_THREAD)
931  return (&xmlIndentTreeOutput);
932  else
934 }
936  int ret;
941  return ret;
942 }
943 
944 #undef xmlTreeIndentString
945 const char * *
947  if (IS_MAIN_THREAD)
948  return (&xmlTreeIndentString);
949  else
951 }
952 const char * xmlThrDefTreeIndentString(const char * v) {
953  const char * ret;
958  return ret;
959 }
960 
961 #undef xmlKeepBlanksDefaultValue
962 int *
964  if (IS_MAIN_THREAD)
965  return (&xmlKeepBlanksDefaultValue);
966  else
968 }
970  int ret;
975  return ret;
976 }
977 
978 #undef xmlLineNumbersDefaultValue
979 int *
981  if (IS_MAIN_THREAD)
982  return (&xmlLineNumbersDefaultValue);
983  else
985 }
987  int ret;
992  return ret;
993 }
994 
995 #undef xmlLoadExtDtdDefaultValue
996 int *
998  if (IS_MAIN_THREAD)
999  return (&xmlLoadExtDtdDefaultValue);
1000  else
1002 }
1004  int ret;
1009  return ret;
1010 }
1011 
1012 #undef xmlParserDebugEntities
1013 int *
1015  if (IS_MAIN_THREAD)
1016  return (&xmlParserDebugEntities);
1017  else
1019 }
1021  int ret;
1026  return ret;
1027 }
1028 
1029 #undef xmlParserVersion
1030 const char * *
1032  if (IS_MAIN_THREAD)
1033  return (&xmlParserVersion);
1034  else
1035  return (&xmlGetGlobalState()->xmlParserVersion);
1036 }
1037 
1038 #undef xmlPedanticParserDefaultValue
1039 int *
1041  if (IS_MAIN_THREAD)
1043  else
1045 }
1047  int ret;
1052  return ret;
1053 }
1054 
1055 #undef xmlSaveNoEmptyTags
1056 int *
1058  if (IS_MAIN_THREAD)
1059  return (&xmlSaveNoEmptyTags);
1060  else
1062 }
1064  int ret;
1069  return ret;
1070 }
1071 
1072 #undef xmlSubstituteEntitiesDefaultValue
1073 int *
1075  if (IS_MAIN_THREAD)
1077  else
1079 }
1081  int ret;
1086  return ret;
1087 }
1088 
1089 #undef xmlRegisterNodeDefaultValue
1092  if (IS_MAIN_THREAD)
1093  return (&xmlRegisterNodeDefaultValue);
1094  else
1096 }
1097 
1098 #undef xmlDeregisterNodeDefaultValue
1101  if (IS_MAIN_THREAD)
1103  else
1105 }
1106 
1107 #undef xmlParserInputBufferCreateFilenameValue
1110  if (IS_MAIN_THREAD)
1112  else
1114 }
1115 
1116 #undef xmlOutputBufferCreateFilenameValue
1119  if (IS_MAIN_THREAD)
1121  else
1123 }
1124 
1125 #define bottom_globals
1126 #include "elfgcchack.h"
#define realloc
Definition: debug_ros.c:6
GLenum func
Definition: glext.h:6028
void * xmlGenericErrorContext
Definition: globals.c:329
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
Definition: SAX2.c:2742
int * __xmlParserDebugEntities(void)
Definition: globals.c:1014
xmlMallocFunc xmlMallocAtomic
Definition: globals.c:115
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlError xmlLastError
Definition: globals.c:338
xmlReallocFunc xmlRealloc
Definition: globals.c:125
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
Definition: SAX2.c:337
int xmlThrDefIndentTreeOutput(int v)
Definition: globals.c:935
static int xmlSaveNoEmptyTagsThrDef
Definition: globals.c:369
int xmlThrDefDoValidityCheckingDefaultValue(int v)
Definition: globals.c:865
xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue(void)
Definition: globals.c:1109
void(XMLCALL * xmlFreeFunc)(void *mem)
Definition: xmlmemory.h:57
int * __xmlPedanticParserDefaultValue(void)
Definition: globals.c:1040
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
Definition: SAX2.c:2678
int xmlDoValidityCheckingDefaultValue
Definition: globals.c:230
static void * xmlGenericErrorContextThrDef
Definition: globals.c:330
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:764
static int xmlKeepBlanksDefaultValueThrDef
Definition: globals.c:277
int xmlThrDefDefaultBufferSize(int v)
Definition: globals.c:828
static int xmlGetWarningsDefaultValueThrDef
Definition: globals.c:239
static int xmlLineNumbersDefaultValueThrDef
Definition: globals.c:266
void xmlInitGlobals(void)
Definition: globals.c:47
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
Definition: SAX2.c:2532
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
int * __xmlSaveNoEmptyTags(void)
Definition: globals.c:1057
#define free
Definition: debug_ros.c:5
xmlGenericErrorFunc xmlGenericError
Definition: globals.c:315
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
Definition: SAX2.c:983
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
Definition: globals.c:292
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
xmlBufferAllocationScheme * __xmlBufferAllocScheme(void)
Definition: globals.c:805
static int xmlIndentTreeOutputThrDef
Definition: globals.c:350
static char * xmlPosixStrdup(const char *cur)
Definition: globals.c:135
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:296
int xmlThrDefLoadExtDtdDefaultValue(int v)
Definition: globals.c:1003
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
Definition: SAX2.c:1048
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
Definition: SAX2.c:802
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:848
xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue(void)
Definition: globals.c:1118
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
Definition: SAX2.c:664
static int xmlParserDebugEntitiesThrDef
Definition: globals.c:223
void *(XMLCALL * xmlReallocFunc)(void *mem, size_t size)
Definition: xmlmemory.h:77
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
Definition: SAX2.c:273
static int xmlDoValidityCheckingDefaultValueThrDef
Definition: globals.c:231
int xmlThrDefSubstituteEntitiesDefaultValue(int v)
Definition: globals.c:1080
xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:645
int oldXMLWDcompatibility
Definition: globals.c:214
xmlError * __xmlLastError(void)
Definition: globals.c:728
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
Definition: xmlmemory.c:311
void xmlInitializeGlobalState(xmlGlobalStatePtr gs)
Definition: globals.c:506
const char * xmlParserVersion
Definition: globals.c:187
int xmlParserDebugEntities
Definition: globals.c:222
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
Definition: SAX2.c:321
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:392
#define LIBXML_VERSION_STRING
Definition: xmlversion.h:46
int * __xmlLoadExtDtdDefaultValue(void)
Definition: globals.c:997
void xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler)
Definition: globals.c:596
int xmlSaveNoEmptyTags
Definition: globals.c:368
xmlSAXLocator * __xmlDefaultSAXLocator(void)
Definition: globals.c:850
void xmlCleanupGlobals(void)
Definition: globals.c:58
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
xmlBufferAllocationScheme
Definition: tree.h:74
char *(XMLCALL * xmlStrdupFunc)(const char *str)
Definition: xmlmemory.h:87
int xmlSubstituteEntitiesDefaultValue
Definition: globals.c:287
int __xmlRegisterCallbacks
Definition: tree.c:53
int xmlThrDefSaveNoEmptyTags(int v)
Definition: globals.c:1063
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
Definition: globals.c:293
xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue(void)
Definition: globals.c:1091
smooth NULL
Definition: ftsmooth.c:416
#define gs
Definition: i386-dis.c:436
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
Definition: globals.c:323
xmlFreeFunc xmlFree
Definition: globals.c:95
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator(void *ctx, xmlSAXLocatorPtr loc)
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
Definition: xmlmemory.c:431
xmlStrdupFunc xmlMemStrdup
Definition: globals.c:146
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
Definition: SAX2.c:734
xmlBufferAllocationScheme xmlBufferAllocScheme
Definition: globals.c:195
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
Definition: globals.c:291
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:257
int * __xmlDefaultBufferSize(void)
Definition: globals.c:822
#define LIBXML_VERSION_EXTRA
Definition: xmlversion.h:53
XMLPUBFUN void XMLCDECL xmlParserError(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
int * __oldXMLWDcompatibility(void)
Definition: globals.c:796
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
Definition: globals.c:298
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:354
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
Definition: globals.h:321
void * xmlStructuredErrorContext
Definition: globals.c:336
int xmlIndentTreeOutput
Definition: globals.c:349
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
Definition: SAX2.c:899
static xmlGenericErrorFunc xmlGenericErrorThrDef
Definition: globals.c:316
xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue(void)
Definition: globals.c:1100
const char * xmlThrDefTreeIndentString(const char *v)
Definition: globals.c:952
int xmlThrDefKeepBlanksDefaultValue(int v)
Definition: globals.c:969
static void * xmlStructuredErrorContextThrDef
Definition: globals.c:337
xmlSAXLocator xmlDefaultSAXLocator
Definition: globals.c:415
xmlStructuredErrorFunc xmlStructuredError
Definition: globals.c:322
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
Definition: SAX2.c:2500
int ret
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault(xmlParserInputBufferCreateFilenameFunc func)
Definition: globals.c:670
#define ATTRIBUTE_UNUSED
Definition: win32config.h:132
int * __xmlLineNumbersDefaultValue(void)
Definition: globals.c:980
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
Definition: xmlmemory.c:420
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v)
Definition: globals.c:811
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
Definition: globals.h:56
int xmlThrDefParserDebugEntities(int v)
Definition: globals.c:1020
int xmlThrDefGetWarningsDefaultValue(int v)
Definition: globals.c:918
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:206
int xmlThrDefPedanticParserDefaultValue(int v)
Definition: globals.c:1046
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:655
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
Definition: xmlmemory.c:572
XMLPUBFUN xmlSAXHandlerV1 *XMLCALL __xmlDefaultSAXHandler(void)
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:110
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:289
void ** __xmlGenericErrorContext(void)
Definition: globals.c:894
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:519
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:117
#define BASE_BUFFER_SIZE
Definition: tree.h:56
const GLdouble * v
Definition: gl.h:2040
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
Definition: SAX2.c:305
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
int * __xmlIndentTreeOutput(void)
Definition: globals.c:929
int xmlLoadExtDtdDefaultValue
Definition: globals.c:247
int xmlThrDefLineNumbersDefaultValue(int v)
Definition: globals.c:986
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)
const char ** __xmlParserVersion(void)
Definition: globals.c:1031
static int xmlLoadExtDtdDefaultValueThrDef
Definition: globals.c:248
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int * __xmlKeepBlanksDefaultValue(void)
Definition: globals.c:963
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:622
const char * xmlTreeIndentString
Definition: globals.c:357
#define XMLCDECL
Definition: xmlexports.h:49
static const char * xmlTreeIndentStringThrDef
Definition: globals.c:358
int xmlLineNumbersDefaultValue
Definition: globals.c:265
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:177
#define msg(x)
Definition: auth_time.c:54
void(XMLCDECL * xmlGenericErrorFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
Definition: xmlerror.h:845
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
Definition: globals.h:41
FILE * stderr
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func)
Definition: globals.c:687
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:526
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:556
#define malloc
Definition: debug_ros.c:4
int xmlKeepBlanksDefaultValue
Definition: globals.c:276
static int xmlPedanticParserDefaultValueThrDef
Definition: globals.c:256
int * __xmlDoValidityCheckingDefaultValue(void)
Definition: globals.c:859
int xmlGetWarningsDefaultValue
Definition: globals.c:238
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
Definition: globals.c:196
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786
static int xmlDefaultBufferSizeThrDef
Definition: globals.c:203
int xmlPedanticParserDefaultValue
Definition: globals.c:255
int * __xmlGetWarningsDefaultValue(void)
Definition: globals.c:912
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
Definition: SAX2.c:2804
xmlStructuredErrorFunc * __xmlStructuredError(void)
Definition: globals.c:885
int * __xmlSubstituteEntitiesDefaultValue(void)
Definition: globals.c:1074
xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:612
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:636
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:299
#define memset(x, y, z)
Definition: compat.h:39
const char ** __xmlTreeIndentString(void)
Definition: globals.c:946
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
Definition: xmlstring.c:113
void ** __xmlStructuredErrorContext(void)
Definition: globals.c:903
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
Definition: globals.c:290
void XMLCDECL xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
Definition: error.c:71
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
Definition: xmlstring.c:66
xmlGenericErrorFunc * __xmlGenericError(void)
Definition: globals.c:876
static int xmlSubstituteEntitiesDefaultValueThrDef
Definition: globals.c:288
int xmlDefaultBufferSize
Definition: globals.c:202
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
Definition: globals.c:295
xmlMallocFunc xmlMalloc
Definition: globals.c:104
void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler)
Definition: globals.c:585