ReactOS  0.4.15-dev-5452-g3c95c95
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 
48 void xmlInitGlobals(void)
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)
71 xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
72 xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
75 #else
76 
91 xmlMallocFunc xmlMalloc = malloc;
102 xmlMallocFunc xmlMallocAtomic = malloc;
121 static char *
122 xmlPosixStrdup(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
168 
174 
190 
191 /*
192  * Parser defaults
193  */
194 
200 int 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  ...);
308 xmlStructuredErrorFunc xmlStructuredError = NULL;
309 static xmlStructuredErrorFunc xmlStructuredErrorThrDef = NULL;
325 
326 /*
327  * output defaults
328  */
337 
343 const char *xmlTreeIndentString = " ";
344 static const char *xmlTreeIndentStringThrDef = " ";
345 
356 
357 #ifdef LIBXML_SAX1_ENABLED
358 
378  xmlSAX2StartElement,
379  xmlSAX2EndElement,
391  0,
392 };
393 #endif /* LIBXML_SAX1_ENABLED */
394 
406 };
407 
408 #ifdef LIBXML_HTML_ENABLED
409 
414 xmlSAXHandlerV1 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 
453 void
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)
465  xmlInitGlobals();
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 
550 void
554  if (handler != NULL)
556  else
559 }
560 
561 void
562 xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler) {
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
682 xmlError *
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
697 xmlMallocFunc *
698 __xmlMalloc(void){
699  if (IS_MAIN_THREAD)
700  return (&xmlMalloc);
701  else
702  return (&xmlGetGlobalState()->xmlMalloc);
703 }
704 
705 #undef xmlMallocAtomic
706 xmlMallocFunc *
707 __xmlMallocAtomic(void){
708  if (IS_MAIN_THREAD)
709  return (&xmlMallocAtomic);
710  else
711  return (&xmlGetGlobalState()->xmlMallocAtomic);
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
724 xmlFreeFunc *
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
750 int *
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
776 int *
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
813 int *
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
835  return (&xmlGetGlobalState()->xmlGenericError);
836 }
837 
838 #undef xmlStructuredError
839 xmlStructuredErrorFunc *
841  if (IS_MAIN_THREAD)
842  return (&xmlStructuredError);
843  else
845 }
846 
847 #undef xmlGenericErrorContext
848 void * *
850  if (IS_MAIN_THREAD)
851  return (&xmlGenericErrorContext);
852  else
854 }
855 
856 #undef xmlStructuredErrorContext
857 void * *
859  if (IS_MAIN_THREAD)
860  return (&xmlStructuredErrorContext);
861  else
863 }
864 
865 #undef xmlGetWarningsDefaultValue
866 int *
868  if (IS_MAIN_THREAD)
869  return (&xmlGetWarningsDefaultValue);
870  else
872 }
874  int ret;
879  return ret;
880 }
881 
882 #undef xmlIndentTreeOutput
883 int *
885  if (IS_MAIN_THREAD)
886  return (&xmlIndentTreeOutput);
887  else
889 }
891  int ret;
896  return ret;
897 }
898 
899 #undef xmlTreeIndentString
900 const char * *
902  if (IS_MAIN_THREAD)
903  return (&xmlTreeIndentString);
904  else
906 }
907 const char * xmlThrDefTreeIndentString(const char * v) {
908  const char * ret;
913  return ret;
914 }
915 
916 #undef xmlKeepBlanksDefaultValue
917 int *
919  if (IS_MAIN_THREAD)
920  return (&xmlKeepBlanksDefaultValue);
921  else
923 }
925  int ret;
930  return ret;
931 }
932 
933 #undef xmlLineNumbersDefaultValue
934 int *
936  if (IS_MAIN_THREAD)
937  return (&xmlLineNumbersDefaultValue);
938  else
940 }
942  int ret;
947  return ret;
948 }
949 
950 #undef xmlLoadExtDtdDefaultValue
951 int *
953  if (IS_MAIN_THREAD)
954  return (&xmlLoadExtDtdDefaultValue);
955  else
957 }
959  int ret;
964  return ret;
965 }
966 
967 #undef xmlParserDebugEntities
968 int *
970  if (IS_MAIN_THREAD)
971  return (&xmlParserDebugEntities);
972  else
974 }
976  int ret;
981  return ret;
982 }
983 
984 #undef xmlParserVersion
985 const char * *
987  if (IS_MAIN_THREAD)
988  return (&xmlParserVersion);
989  else
990  return (&xmlGetGlobalState()->xmlParserVersion);
991 }
992 
993 #undef xmlPedanticParserDefaultValue
994 int *
996  if (IS_MAIN_THREAD)
998  else
1000 }
1002  int ret;
1007  return ret;
1008 }
1009 
1010 #undef xmlSaveNoEmptyTags
1011 int *
1013  if (IS_MAIN_THREAD)
1014  return (&xmlSaveNoEmptyTags);
1015  else
1017 }
1019  int ret;
1024  return ret;
1025 }
1026 
1027 #undef xmlSubstituteEntitiesDefaultValue
1028 int *
1030  if (IS_MAIN_THREAD)
1032  else
1034 }
1036  int ret;
1041  return ret;
1042 }
1043 
1044 #undef xmlRegisterNodeDefaultValue
1047  if (IS_MAIN_THREAD)
1048  return (&xmlRegisterNodeDefaultValue);
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 
#define realloc
Definition: debug_ros.c:6
GLenum func
Definition: glext.h:6028
void * xmlGenericErrorContext
Definition: globals.c:315
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
Definition: SAX2.c:2754
int * __xmlParserDebugEntities(void)
Definition: globals.c:969
xmlMallocFunc xmlMallocAtomic
Definition: globals.c:102
#define IS_MAIN_THREAD
Definition: globals.c:32
xmlError xmlLastError
Definition: globals.c:324
xmlReallocFunc xmlRealloc
Definition: globals.c:112
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
Definition: SAX2.c:307
int xmlThrDefIndentTreeOutput(int v)
Definition: globals.c:890
static int xmlSaveNoEmptyTagsThrDef
Definition: globals.c:355
int xmlThrDefDoValidityCheckingDefaultValue(int v)
Definition: globals.c:820
xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue(void)
Definition: globals.c:1064
void(XMLCALL * xmlFreeFunc)(void *mem)
Definition: xmlmemory.h:57
int * __xmlPedanticParserDefaultValue(void)
Definition: globals.c:995
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
Definition: SAX2.c:2690
int xmlDoValidityCheckingDefaultValue
Definition: globals.c:216
static void * xmlGenericErrorContextThrDef
Definition: globals.c:316
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:750
static int xmlKeepBlanksDefaultValueThrDef
Definition: globals.c:263
int xmlThrDefDefaultBufferSize(int v)
Definition: globals.c:783
static int xmlGetWarningsDefaultValueThrDef
Definition: globals.c:225
static int xmlLineNumbersDefaultValueThrDef
Definition: globals.c:252
void xmlInitGlobals(void)
Definition: globals.c:48
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
Definition: SAX2.c:2657
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
int * __xmlSaveNoEmptyTags(void)
Definition: globals.c:1012
#define free
Definition: debug_ros.c:5
xmlGenericErrorFunc xmlGenericError
Definition: globals.c:301
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
Definition: SAX2.c:933
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
Definition: globals.c:278
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:248
xmlBufferAllocationScheme * __xmlBufferAllocScheme(void)
Definition: globals.c:760
static int xmlIndentTreeOutputThrDef
Definition: globals.c:336
static char * xmlPosixStrdup(const char *cur)
Definition: globals.c:122
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:220
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:282
int xmlThrDefLoadExtDtdDefaultValue(int v)
Definition: globals.c:958
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
Definition: SAX2.c:998
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
Definition: SAX2.c:746
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:795
xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue(void)
Definition: globals.c:1073
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
Definition: SAX2.c:604
static int xmlParserDebugEntitiesThrDef
Definition: globals.c:209
void *(XMLCALL * xmlReallocFunc)(void *mem, size_t size)
Definition: xmlmemory.h:77
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
Definition: SAX2.c:243
static int xmlDoValidityCheckingDefaultValueThrDef
Definition: globals.c:217
int xmlThrDefSubstituteEntitiesDefaultValue(int v)
Definition: globals.c:1035
xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:611
int oldXMLWDcompatibility
Definition: globals.c:200
xmlError * __xmlLastError(void)
Definition: globals.c:683
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
Definition: xmlmemory.c:294
void xmlInitializeGlobalState(xmlGlobalStatePtr gs)
Definition: globals.c:454
const char * xmlParserVersion
Definition: globals.c:173
int xmlParserDebugEntities
Definition: globals.c:208
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
Definition: SAX2.c:291
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:362
#define LIBXML_VERSION_STRING
Definition: xmlversion.h:46
int * __xmlLoadExtDtdDefaultValue(void)
Definition: globals.c:952
void xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler)
Definition: globals.c:562
int xmlSaveNoEmptyTags
Definition: globals.c:354
xmlSAXLocator * __xmlDefaultSAXLocator(void)
Definition: globals.c:805
void xmlCleanupGlobals(void)
Definition: globals.c:535
_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:273
int __xmlRegisterCallbacks
Definition: tree.c:50
int xmlThrDefSaveNoEmptyTags(int v)
Definition: globals.c:1018
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
Definition: globals.c:279
xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue(void)
Definition: globals.c:1046
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
Definition: globals.c:309
xmlFreeFunc xmlFree
Definition: globals.c:82
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator(void *ctx, xmlSAXLocatorPtr loc)
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
Definition: xmlmemory.c:414
xmlStrdupFunc xmlMemStrdup
Definition: globals.c:133
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
xmlBufferAllocationScheme xmlBufferAllocScheme
Definition: globals.c:181
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
Definition: globals.c:277
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:227
int * __xmlDefaultBufferSize(void)
Definition: globals.c:777
#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:751
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
Definition: globals.c:284
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
Definition: SAX2.c:324
#define ATTRIBUTE_UNUSED
Definition: i386-dis.c:37
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
Definition: globals.h:312
void * xmlStructuredErrorContext
Definition: globals.c:322
int xmlIndentTreeOutput
Definition: globals.c:335
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
Definition: SAX2.c:849
static xmlGenericErrorFunc xmlGenericErrorThrDef
Definition: globals.c:302
xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue(void)
Definition: globals.c:1055
const char * xmlThrDefTreeIndentString(const char *v)
Definition: globals.c:907
int xmlThrDefKeepBlanksDefaultValue(int v)
Definition: globals.c:924
static void * xmlStructuredErrorContextThrDef
Definition: globals.c:323
xmlSAXLocator xmlDefaultSAXLocator
Definition: globals.c:401
xmlStructuredErrorFunc xmlStructuredError
Definition: globals.c:308
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
Definition: SAX2.c:2488
int ret
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault(xmlParserInputBufferCreateFilenameFunc func)
Definition: globals.c:636
int * __xmlLineNumbersDefaultValue(void)
Definition: globals.c:935
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
Definition: xmlmemory.c:403
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v)
Definition: globals.c:766
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
Definition: globals.h:58
int xmlThrDefParserDebugEntities(int v)
Definition: globals.c:975
int xmlThrDefGetWarningsDefaultValue(int v)
Definition: globals.c:873
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:38
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:197
int xmlThrDefPedanticParserDefaultValue(int v)
Definition: globals.c:1001
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func)
Definition: globals.c:621
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
Definition: xmlmemory.c:555
XMLPUBFUN xmlSAXHandlerV1 *XMLCALL __xmlDefaultSAXHandler(void)
XMLPUBFUN void XMLCALL xmlResetError(xmlErrorPtr err)
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:111
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:259
FxCollectionEntry * cur
void ** __xmlGenericErrorContext(void)
Definition: globals.c:849
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
Definition: SAX2.c:489
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:118
#define BASE_BUFFER_SIZE
Definition: tree.h:56
const GLdouble * v
Definition: gl.h:2040
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
Definition: SAX2.c:275
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
int * __xmlIndentTreeOutput(void)
Definition: globals.c:884
int xmlLoadExtDtdDefaultValue
Definition: globals.c:233
int xmlThrDefLineNumbersDefaultValue(int v)
Definition: globals.c:941
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)
const char ** __xmlParserVersion(void)
Definition: globals.c:986
static int xmlLoadExtDtdDefaultValueThrDef
Definition: globals.c:234
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:640
int * __xmlKeepBlanksDefaultValue(void)
Definition: globals.c:918
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:588
#define NULL
Definition: types.h:112
const char * xmlTreeIndentString
Definition: globals.c:343
#define XMLCDECL
Definition: xmlexports.h:52
static const char * xmlTreeIndentStringThrDef
Definition: globals.c:344
int xmlLineNumbersDefaultValue
Definition: globals.c:251
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:168
#define msg(x)
Definition: auth_time.c:54
void(XMLCDECL * xmlGenericErrorFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
Definition: xmlerror.h:847
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
Definition: globals.h:43
FILE * stderr
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func)
Definition: globals.c:653
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:512
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:526
#define malloc
Definition: debug_ros.c:4
int xmlKeepBlanksDefaultValue
Definition: globals.c:262
static int xmlPedanticParserDefaultValueThrDef
Definition: globals.c:242
int * __xmlDoValidityCheckingDefaultValue(void)
Definition: globals.c:814
int xmlGetWarningsDefaultValue
Definition: globals.c:224
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
Definition: globals.c:182
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7482
static int xmlDefaultBufferSizeThrDef
Definition: globals.c:189
int xmlPedanticParserDefaultValue
Definition: globals.c:241
int * __xmlGetWarningsDefaultValue(void)
Definition: globals.c:867
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
Definition: SAX2.c:2816
xmlStructuredErrorFunc * __xmlStructuredError(void)
Definition: globals.c:840
int * __xmlSubstituteEntitiesDefaultValue(void)
Definition: globals.c:1029
xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func)
Definition: globals.c:578
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
Definition: SAX2.c:576
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:285
#define memset(x, y, z)
Definition: compat.h:39
const char ** __xmlTreeIndentString(void)
Definition: globals.c:901
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
Definition: xmlstring.c:114
void ** __xmlStructuredErrorContext(void)
Definition: globals.c:858
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
Definition: globals.c:276
void XMLCDECL xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
Definition: error.c:71
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
Definition: xmlstring.c:67
#define gs
Definition: i386-dis.c:446
xmlGenericErrorFunc * __xmlGenericError(void)
Definition: globals.c:831
static int xmlSubstituteEntitiesDefaultValueThrDef
Definition: globals.c:274
int xmlDefaultBufferSize
Definition: globals.c:188
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
Definition: globals.c:281
xmlMallocFunc xmlMalloc
Definition: globals.c:91
void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler)
Definition: globals.c:551