ReactOS  0.4.14-dev-115-g4576127
globals.c File Reference
#include "libxml.h"
#include <stdlib.h>
#include <string.h>
#include <libxml/globals.h>
#include <libxml/xmlmemory.h>
#include <libxml/threads.h>
#include <libxml/SAX.h>
#include "elfgcchack.h"
Include dependency graph for globals.c:

Go to the source code of this file.

Macros

#define IN_LIBXML
 
#define IS_MAIN_THREAD   1
 
#define bottom_globals
 

Functions

void xmlInitGlobals (void)
 
void xmlCleanupGlobals (void)
 
static charxmlPosixStrdup (const char *cur)
 
void XMLCDECL xmlGenericErrorDefaultFunc (void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
 
void xmlInitializeGlobalState (xmlGlobalStatePtr gs)
 
void xmlThrDefSetGenericErrorFunc (void *ctx, xmlGenericErrorFunc handler)
 
void xmlThrDefSetStructuredErrorFunc (void *ctx, xmlStructuredErrorFunc handler)
 
xmlRegisterNodeFunc xmlRegisterNodeDefault (xmlRegisterNodeFunc func)
 
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault (xmlRegisterNodeFunc func)
 
xmlDeregisterNodeFunc xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func)
 
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault (xmlDeregisterNodeFunc func)
 
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
 
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
 
xmlError__xmlLastError (void)
 
int__oldXMLWDcompatibility (void)
 
xmlBufferAllocationScheme__xmlBufferAllocScheme (void)
 
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v)
 
int__xmlDefaultBufferSize (void)
 
int xmlThrDefDefaultBufferSize (int v)
 
xmlSAXLocator__xmlDefaultSAXLocator (void)
 
int__xmlDoValidityCheckingDefaultValue (void)
 
int xmlThrDefDoValidityCheckingDefaultValue (int v)
 
xmlGenericErrorFunc__xmlGenericError (void)
 
xmlStructuredErrorFunc * __xmlStructuredError (void)
 
void ** __xmlGenericErrorContext (void)
 
void ** __xmlStructuredErrorContext (void)
 
int__xmlGetWarningsDefaultValue (void)
 
int xmlThrDefGetWarningsDefaultValue (int v)
 
int__xmlIndentTreeOutput (void)
 
int xmlThrDefIndentTreeOutput (int v)
 
const char ** __xmlTreeIndentString (void)
 
const charxmlThrDefTreeIndentString (const char *v)
 
int__xmlKeepBlanksDefaultValue (void)
 
int xmlThrDefKeepBlanksDefaultValue (int v)
 
int__xmlLineNumbersDefaultValue (void)
 
int xmlThrDefLineNumbersDefaultValue (int v)
 
int__xmlLoadExtDtdDefaultValue (void)
 
int xmlThrDefLoadExtDtdDefaultValue (int v)
 
int__xmlParserDebugEntities (void)
 
int xmlThrDefParserDebugEntities (int v)
 
const char ** __xmlParserVersion (void)
 
int__xmlPedanticParserDefaultValue (void)
 
int xmlThrDefPedanticParserDefaultValue (int v)
 
int__xmlSaveNoEmptyTags (void)
 
int xmlThrDefSaveNoEmptyTags (int v)
 
int__xmlSubstituteEntitiesDefaultValue (void)
 
int xmlThrDefSubstituteEntitiesDefaultValue (int v)
 
xmlRegisterNodeFunc__xmlRegisterNodeDefaultValue (void)
 
xmlDeregisterNodeFunc__xmlDeregisterNodeDefaultValue (void)
 
xmlParserInputBufferCreateFilenameFunc__xmlParserInputBufferCreateFilenameValue (void)
 
xmlOutputBufferCreateFilenameFunc__xmlOutputBufferCreateFilenameValue (void)
 

Variables

static xmlMutexPtr xmlThrDefMutex = NULL
 
xmlFreeFunc xmlFree = free
 
xmlMallocFunc xmlMalloc = malloc
 
xmlMallocFunc xmlMallocAtomic = malloc
 
xmlReallocFunc xmlRealloc = realloc
 
xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup
 
const charxmlParserVersion = LIBXML_VERSION_STRING LIBXML_VERSION_EXTRA
 
xmlBufferAllocationScheme xmlBufferAllocScheme = XML_BUFFER_ALLOC_EXACT
 
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef = XML_BUFFER_ALLOC_EXACT
 
int xmlDefaultBufferSize = BASE_BUFFER_SIZE
 
static int xmlDefaultBufferSizeThrDef = BASE_BUFFER_SIZE
 
int oldXMLWDcompatibility = 0
 
int xmlParserDebugEntities = 0
 
static int xmlParserDebugEntitiesThrDef = 0
 
int xmlDoValidityCheckingDefaultValue = 0
 
static int xmlDoValidityCheckingDefaultValueThrDef = 0
 
int xmlGetWarningsDefaultValue = 1
 
static int xmlGetWarningsDefaultValueThrDef = 1
 
int xmlLoadExtDtdDefaultValue = 0
 
static int xmlLoadExtDtdDefaultValueThrDef = 0
 
int xmlPedanticParserDefaultValue = 0
 
static int xmlPedanticParserDefaultValueThrDef = 0
 
int xmlLineNumbersDefaultValue = 0
 
static int xmlLineNumbersDefaultValueThrDef = 0
 
int xmlKeepBlanksDefaultValue = 1
 
static int xmlKeepBlanksDefaultValueThrDef = 1
 
int xmlSubstituteEntitiesDefaultValue = 0
 
static int xmlSubstituteEntitiesDefaultValueThrDef = 0
 
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue = NULL
 
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef = NULL
 
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue = NULL
 
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef = NULL
 
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue = NULL
 
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef = NULL
 
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue = NULL
 
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef = NULL
 
xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc
 
static xmlGenericErrorFunc xmlGenericErrorThrDef = xmlGenericErrorDefaultFunc
 
xmlStructuredErrorFunc xmlStructuredError = NULL
 
static xmlStructuredErrorFunc xmlStructuredErrorThrDef = NULL
 
voidxmlGenericErrorContext = NULL
 
static voidxmlGenericErrorContextThrDef = NULL
 
voidxmlStructuredErrorContext = NULL
 
static voidxmlStructuredErrorContextThrDef = NULL
 
xmlError xmlLastError
 
int xmlIndentTreeOutput = 1
 
static int xmlIndentTreeOutputThrDef = 1
 
const charxmlTreeIndentString = " "
 
static const charxmlTreeIndentStringThrDef = " "
 
int xmlSaveNoEmptyTags = 0
 
static int xmlSaveNoEmptyTagsThrDef = 0
 
xmlSAXLocator xmlDefaultSAXLocator
 

Macro Definition Documentation

◆ bottom_globals

#define bottom_globals

Definition at line 1125 of file globals.c.

◆ IN_LIBXML

#define IN_LIBXML

Definition at line 14 of file globals.c.

◆ IS_MAIN_THREAD

#define IS_MAIN_THREAD   1

Definition at line 34 of file globals.c.

Function Documentation

◆ __oldXMLWDcompatibility()

int* __oldXMLWDcompatibility ( void  )

Definition at line 796 of file globals.c.

796  {
797  if (IS_MAIN_THREAD)
798  return (&oldXMLWDcompatibility);
799  else
801 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int oldXMLWDcompatibility
Definition: globals.c:214
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlBufferAllocScheme()

xmlBufferAllocationScheme* __xmlBufferAllocScheme ( void  )

Definition at line 805 of file globals.c.

805  {
806  if (IS_MAIN_THREAD)
807  return (&xmlBufferAllocScheme);
808  else
810 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlBufferAllocationScheme xmlBufferAllocScheme
Definition: globals.c:195
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlDefaultBufferSize()

int* __xmlDefaultBufferSize ( void  )

Definition at line 822 of file globals.c.

822  {
823  if (IS_MAIN_THREAD)
824  return (&xmlDefaultBufferSize);
825  else
827 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int xmlDefaultBufferSize
Definition: globals.c:202

◆ __xmlDefaultSAXLocator()

xmlSAXLocator* __xmlDefaultSAXLocator ( void  )

Definition at line 850 of file globals.c.

850  {
851  if (IS_MAIN_THREAD)
852  return (&xmlDefaultSAXLocator);
853  else
855 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlSAXLocator xmlDefaultSAXLocator
Definition: globals.c:415
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlDeregisterNodeDefaultValue()

xmlDeregisterNodeFunc* __xmlDeregisterNodeDefaultValue ( void  )

Definition at line 1100 of file globals.c.

1100  {
1101  if (IS_MAIN_THREAD)
1103  else
1105 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
Definition: globals.c:292
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlDoValidityCheckingDefaultValue()

int* __xmlDoValidityCheckingDefaultValue ( void  )

Definition at line 859 of file globals.c.

859  {
860  if (IS_MAIN_THREAD)
862  else
864 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlDoValidityCheckingDefaultValue
Definition: globals.c:230
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlGenericError()

xmlGenericErrorFunc* __xmlGenericError ( void  )

Definition at line 876 of file globals.c.

876  {
877  if (IS_MAIN_THREAD)
878  return (&xmlGenericError);
879  else
880  return (&xmlGetGlobalState()->xmlGenericError);
881 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlGenericErrorFunc xmlGenericError
Definition: globals.c:315
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlGenericErrorContext()

void* * __xmlGenericErrorContext ( void  )

Definition at line 894 of file globals.c.

894  {
895  if (IS_MAIN_THREAD)
896  return (&xmlGenericErrorContext);
897  else
899 }
void * xmlGenericErrorContext
Definition: globals.c:329
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlGetWarningsDefaultValue()

int* __xmlGetWarningsDefaultValue ( void  )

Definition at line 912 of file globals.c.

912  {
913  if (IS_MAIN_THREAD)
914  return (&xmlGetWarningsDefaultValue);
915  else
917 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int xmlGetWarningsDefaultValue
Definition: globals.c:238

◆ __xmlIndentTreeOutput()

int* __xmlIndentTreeOutput ( void  )

Definition at line 929 of file globals.c.

929  {
930  if (IS_MAIN_THREAD)
931  return (&xmlIndentTreeOutput);
932  else
934 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlIndentTreeOutput
Definition: globals.c:349
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlKeepBlanksDefaultValue()

int* __xmlKeepBlanksDefaultValue ( void  )

Definition at line 963 of file globals.c.

963  {
964  if (IS_MAIN_THREAD)
965  return (&xmlKeepBlanksDefaultValue);
966  else
968 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int xmlKeepBlanksDefaultValue
Definition: globals.c:276

◆ __xmlLastError()

xmlError* __xmlLastError ( void  )

Definition at line 728 of file globals.c.

728  {
729  if (IS_MAIN_THREAD)
730  return (&xmlLastError);
731  else
732  return (&xmlGetGlobalState()->xmlLastError);
733 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlError xmlLastError
Definition: globals.c:338
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlLineNumbersDefaultValue()

int* __xmlLineNumbersDefaultValue ( void  )

Definition at line 980 of file globals.c.

980  {
981  if (IS_MAIN_THREAD)
982  return (&xmlLineNumbersDefaultValue);
983  else
985 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int xmlLineNumbersDefaultValue
Definition: globals.c:265

◆ __xmlLoadExtDtdDefaultValue()

int* __xmlLoadExtDtdDefaultValue ( void  )

Definition at line 997 of file globals.c.

997  {
998  if (IS_MAIN_THREAD)
999  return (&xmlLoadExtDtdDefaultValue);
1000  else
1002 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlLoadExtDtdDefaultValue
Definition: globals.c:247
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlOutputBufferCreateFilenameValue()

xmlOutputBufferCreateFilenameFunc* __xmlOutputBufferCreateFilenameValue ( void  )

Definition at line 1118 of file globals.c.

1118  {
1119  if (IS_MAIN_THREAD)
1121  else
1123 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
Definition: globals.c:298
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlParserDebugEntities()

int* __xmlParserDebugEntities ( void  )

Definition at line 1014 of file globals.c.

1014  {
1015  if (IS_MAIN_THREAD)
1016  return (&xmlParserDebugEntities);
1017  else
1019 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlParserDebugEntities
Definition: globals.c:222
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlParserInputBufferCreateFilenameValue()

xmlParserInputBufferCreateFilenameFunc* __xmlParserInputBufferCreateFilenameValue ( void  )

Definition at line 1109 of file globals.c.

1109  {
1110  if (IS_MAIN_THREAD)
1112  else
1114 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
Definition: globals.c:295

◆ __xmlParserVersion()

const char* * __xmlParserVersion ( void  )

Definition at line 1031 of file globals.c.

1031  {
1032  if (IS_MAIN_THREAD)
1033  return (&xmlParserVersion);
1034  else
1035  return (&xmlGetGlobalState()->xmlParserVersion);
1036 }
#define IS_MAIN_THREAD
Definition: globals.c:34
const char * xmlParserVersion
Definition: globals.c:187
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlPedanticParserDefaultValue()

int* __xmlPedanticParserDefaultValue ( void  )

Definition at line 1040 of file globals.c.

1040  {
1041  if (IS_MAIN_THREAD)
1043  else
1045 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
int xmlPedanticParserDefaultValue
Definition: globals.c:255

◆ __xmlRegisterNodeDefaultValue()

xmlRegisterNodeFunc* __xmlRegisterNodeDefaultValue ( void  )

Definition at line 1091 of file globals.c.

1091  {
1092  if (IS_MAIN_THREAD)
1093  return (&xmlRegisterNodeDefaultValue);
1094  else
1096 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
Definition: globals.c:290

◆ __xmlSaveNoEmptyTags()

int* __xmlSaveNoEmptyTags ( void  )

Definition at line 1057 of file globals.c.

1057  {
1058  if (IS_MAIN_THREAD)
1059  return (&xmlSaveNoEmptyTags);
1060  else
1062 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlSaveNoEmptyTags
Definition: globals.c:368
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlStructuredError()

xmlStructuredErrorFunc* __xmlStructuredError ( void  )

Definition at line 885 of file globals.c.

885  {
886  if (IS_MAIN_THREAD)
887  return (&xmlStructuredError);
888  else
890 }
#define IS_MAIN_THREAD
Definition: globals.c:34
xmlStructuredErrorFunc xmlStructuredError
Definition: globals.c:322
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlStructuredErrorContext()

void* * __xmlStructuredErrorContext ( void  )

Definition at line 903 of file globals.c.

903  {
904  if (IS_MAIN_THREAD)
905  return (&xmlStructuredErrorContext);
906  else
908 }
#define IS_MAIN_THREAD
Definition: globals.c:34
void * xmlStructuredErrorContext
Definition: globals.c:336
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlSubstituteEntitiesDefaultValue()

int* __xmlSubstituteEntitiesDefaultValue ( void  )

Definition at line 1074 of file globals.c.

1074  {
1075  if (IS_MAIN_THREAD)
1077  else
1079 }
#define IS_MAIN_THREAD
Definition: globals.c:34
int xmlSubstituteEntitiesDefaultValue
Definition: globals.c:287
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654

◆ __xmlTreeIndentString()

const char* * __xmlTreeIndentString ( void  )

Definition at line 946 of file globals.c.

946  {
947  if (IS_MAIN_THREAD)
948  return (&xmlTreeIndentString);
949  else
951 }
#define IS_MAIN_THREAD
Definition: globals.c:34
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
const char * xmlTreeIndentString
Definition: globals.c:357

◆ xmlCleanupGlobals()

void xmlCleanupGlobals ( void  )

xmlCleanupGlobals:

Additional cleanup for multi-threading

Definition at line 58 of file globals.c.

59 {
60  if (xmlThrDefMutex != NULL) {
63  }
65 }
smooth NULL
Definition: ftsmooth.c:416
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:206
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:526

Referenced by xmlCleanupParser().

◆ xmlDeregisterNodeDefault()

xmlDeregisterNodeFunc xmlDeregisterNodeDefault ( xmlDeregisterNodeFunc  func)

xmlDeregisterNodeDefault: @func: function pointer to the new DeregisterNodeFunc

Registers a callback for node destruction

Returns the previous value of the deregistration function

Definition at line 645 of file globals.c.

646 {
648 
651  return(old);
652 }
GLenum func
Definition: glext.h:6028
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
Definition: globals.c:292
int __xmlRegisterCallbacks
Definition: tree.c:53
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:117

Referenced by main().

◆ xmlGenericErrorDefaultFunc()

void XMLCDECL xmlGenericErrorDefaultFunc ( void *ctx  ATTRIBUTE_UNUSED,
const char msg,
  ... 
)

xmlGenericErrorDefaultFunc: @ctx: an error context @msg: the message to display/transmit ...: extra parameters for the message display

Default handler for out of context error messages.

Definition at line 71 of file error.c.

71  {
72  va_list args;
73 
75  xmlGenericErrorContext = (void *) stderr;
76 
77  va_start(args, msg);
79  va_end(args);
80 }
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
smooth NULL
Definition: ftsmooth.c:416
char * va_list
Definition: acmsvcex.h:78
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define msg(x)
Definition: auth_time.c:54
FILE * stderr
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
#define args
Definition: format.c:66
XMLPUBVAR void * xmlGenericErrorContext
Definition: globals.h:362

Referenced by initGenericErrorDefaultFunc(), xmlSetGenericErrorFunc(), and xmlThrDefSetGenericErrorFunc().

◆ xmlInitGlobals()

void xmlInitGlobals ( void  )

xmlInitGlobals:

Additional initialisation for multi-threading

Definition at line 47 of file globals.c.

48 {
49  if (xmlThrDefMutex == NULL)
51 }
smooth NULL
Definition: ftsmooth.c:416
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:177

Referenced by xmlInitializeGlobalState(), and xmlInitParser().

◆ xmlInitializeGlobalState()

void xmlInitializeGlobalState ( xmlGlobalStatePtr  gs)

xmlInitializeGlobalState: @gs: a pointer to a newly allocated global state

xmlInitializeGlobalState() initialize a global state with all the default values of the library.

Definition at line 506 of file globals.c.

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 }
#define realloc
Definition: debug_ros.c:6
static int xmlSaveNoEmptyTagsThrDef
Definition: globals.c:369
void(XMLCALL * xmlFreeFunc)(void *mem)
Definition: xmlmemory.h:57
static void * xmlGenericErrorContextThrDef
Definition: globals.c:330
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:764
static int xmlKeepBlanksDefaultValueThrDef
Definition: globals.c:277
static int xmlGetWarningsDefaultValueThrDef
Definition: globals.c:239
static int xmlLineNumbersDefaultValueThrDef
Definition: globals.c:266
void xmlInitGlobals(void)
Definition: globals.c:47
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
#define free
Definition: debug_ros.c:5
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
static int xmlIndentTreeOutputThrDef
Definition: globals.c:350
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:296
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
XMLPUBFUN void *XMLCALL xmlMemMalloc(size_t size) LIBXML_ATTR_ALLOC_SIZE(1)
Definition: xmlmemory.c:311
#define LIBXML_VERSION_STRING
Definition: xmlversion.h:46
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char *(XMLCALL * xmlStrdupFunc)(const char *str)
Definition: xmlmemory.h:87
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
Definition: globals.c:293
smooth NULL
Definition: ftsmooth.c:416
#define gs
Definition: i386-dis.c:436
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
Definition: globals.c:323
XMLPUBFUN void XMLCALL xmlMemFree(void *ptr)
Definition: xmlmemory.c:431
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
Definition: globals.c:291
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:257
static xmlGenericErrorFunc xmlGenericErrorThrDef
Definition: globals.c:316
static void * xmlStructuredErrorContextThrDef
Definition: globals.c:337
XMLPUBFUN void *XMLCALL xmlMemRealloc(void *ptr, size_t size)
Definition: xmlmemory.c:420
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
XMLPUBFUN char *XMLCALL xmlMemoryStrdup(const char *str)
Definition: xmlmemory.c:572
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:289
static int xmlLoadExtDtdDefaultValueThrDef
Definition: globals.c:248
static const char * xmlTreeIndentStringThrDef
Definition: globals.c:358
FILE * stderr
#define malloc
Definition: debug_ros.c:4
static int xmlPedanticParserDefaultValueThrDef
Definition: globals.c:256
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
Definition: globals.c:196
static int xmlDefaultBufferSizeThrDef
Definition: globals.c:203
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:299
#define memset(x, y, z)
Definition: compat.h:39
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
Definition: xmlstring.c:66
static int xmlSubstituteEntitiesDefaultValueThrDef
Definition: globals.c:288

Referenced by xmlGetGlobalState().

◆ xmlPosixStrdup()

static char* xmlPosixStrdup ( const char cur)
static

xmlPosixStrdup @cur: the input char *

a strdup implementation with a type signature matching POSIX

Returns a new xmlChar * or NULL

Definition at line 135 of file globals.c.

135  {
136  return((char*) xmlCharStrdup(cur));
137 }
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
Definition: xmlstring.c:113

◆ xmlRegisterNodeDefault()

xmlRegisterNodeFunc xmlRegisterNodeDefault ( xmlRegisterNodeFunc  func)

xmlRegisterNodeDefault: @func: function pointer to the new RegisterNodeFunc

Registers a callback for node creation

Returns the old value of the registration function

Definition at line 612 of file globals.c.

613 {
615 
618  return(old);
619 }
GLenum func
Definition: glext.h:6028
int __xmlRegisterCallbacks
Definition: tree.c:53
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:110
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
Definition: globals.c:290

Referenced by main().

◆ xmlThrDefBufferAllocScheme()

xmlBufferAllocationScheme xmlThrDefBufferAllocScheme ( xmlBufferAllocationScheme  v)

Definition at line 811 of file globals.c.

811  {
817  return ret;
818 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
xmlBufferAllocationScheme
Definition: tree.h:74
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef
Definition: globals.c:196

◆ xmlThrDefDefaultBufferSize()

int xmlThrDefDefaultBufferSize ( int  v)

Definition at line 828 of file globals.c.

828  {
829  int ret;
834  return ret;
835 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static int xmlDefaultBufferSizeThrDef
Definition: globals.c:203

◆ xmlThrDefDeregisterNodeDefault()

xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault ( xmlDeregisterNodeFunc  func)

Definition at line 655 of file globals.c.

656 {
658 
661 
665 
666  return(old);
667 }
GLenum func
Definition: glext.h:6028
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int __xmlRegisterCallbacks
Definition: tree.c:53
static xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef
Definition: globals.c:293
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
void(* xmlDeregisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:117

◆ xmlThrDefDoValidityCheckingDefaultValue()

int xmlThrDefDoValidityCheckingDefaultValue ( int  v)

Definition at line 865 of file globals.c.

865  {
866  int ret;
871  return ret;
872 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static int xmlDoValidityCheckingDefaultValueThrDef
Definition: globals.c:231
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefGetWarningsDefaultValue()

int xmlThrDefGetWarningsDefaultValue ( int  v)

Definition at line 918 of file globals.c.

918  {
919  int ret;
924  return ret;
925 }
static int xmlGetWarningsDefaultValueThrDef
Definition: globals.c:239
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefIndentTreeOutput()

int xmlThrDefIndentTreeOutput ( int  v)

Definition at line 935 of file globals.c.

935  {
936  int ret;
941  return ret;
942 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
static int xmlIndentTreeOutputThrDef
Definition: globals.c:350
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefKeepBlanksDefaultValue()

int xmlThrDefKeepBlanksDefaultValue ( int  v)

Definition at line 969 of file globals.c.

969  {
970  int ret;
975  return ret;
976 }
static int xmlKeepBlanksDefaultValueThrDef
Definition: globals.c:277
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefLineNumbersDefaultValue()

int xmlThrDefLineNumbersDefaultValue ( int  v)

Definition at line 986 of file globals.c.

986  {
987  int ret;
992  return ret;
993 }
static int xmlLineNumbersDefaultValueThrDef
Definition: globals.c:266
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefLoadExtDtdDefaultValue()

int xmlThrDefLoadExtDtdDefaultValue ( int  v)

Definition at line 1003 of file globals.c.

1003  {
1004  int ret;
1009  return ret;
1010 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static int xmlLoadExtDtdDefaultValueThrDef
Definition: globals.c:248

◆ xmlThrDefOutputBufferCreateFilenameDefault()

xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault ( xmlOutputBufferCreateFilenameFunc  func)

Definition at line 687 of file globals.c.

688 {
690 
693 #ifdef LIBXML_OUTPUT_ENABLED
694  if (old == NULL) {
695  old = __xmlOutputBufferCreateFilename;
696  }
697 #endif
700 
701  return(old);
702 }
GLenum func
Definition: glext.h:6028
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
smooth NULL
Definition: ftsmooth.c:416
xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc)(const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
Definition: globals.h:56
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
static xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef
Definition: globals.c:299

◆ xmlThrDefParserDebugEntities()

int xmlThrDefParserDebugEntities ( int  v)

Definition at line 1020 of file globals.c.

1020  {
1021  int ret;
1026  return ret;
1027 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static int xmlParserDebugEntitiesThrDef
Definition: globals.c:223
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefParserInputBufferCreateFilenameDefault()

xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault ( xmlParserInputBufferCreateFilenameFunc  func)

Definition at line 670 of file globals.c.

671 {
673 
676  if (old == NULL) {
678  }
679 
682 
683  return(old);
684 }
GLenum func
Definition: glext.h:6028
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef
Definition: globals.c:296
smooth NULL
Definition: ftsmooth.c:416
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
xmlParserInputBufferPtr __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc)
xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc)
Definition: globals.h:41

◆ xmlThrDefPedanticParserDefaultValue()

int xmlThrDefPedanticParserDefaultValue ( int  v)

Definition at line 1046 of file globals.c.

1046  {
1047  int ret;
1052  return ret;
1053 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static int xmlPedanticParserDefaultValueThrDef
Definition: globals.c:256

◆ xmlThrDefRegisterNodeDefault()

xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault ( xmlRegisterNodeFunc  func)

Definition at line 622 of file globals.c.

623 {
625 
628 
632 
633  return(old);
634 }
GLenum func
Definition: glext.h:6028
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int __xmlRegisterCallbacks
Definition: tree.c:53
static xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef
Definition: globals.c:291
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
void(* xmlRegisterNodeFunc)(xmlNodePtr node)
Definition: globals.h:110

◆ xmlThrDefSaveNoEmptyTags()

int xmlThrDefSaveNoEmptyTags ( int  v)

Definition at line 1063 of file globals.c.

1063  {
1064  int ret;
1069  return ret;
1070 }
static int xmlSaveNoEmptyTagsThrDef
Definition: globals.c:369
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040

◆ xmlThrDefSetGenericErrorFunc()

void xmlThrDefSetGenericErrorFunc ( void ctx,
xmlGenericErrorFunc  handler 
)

DOC_DISABLE : we ignore missing doc for the xmlThrDef functions, those are really internal work

Definition at line 585 of file globals.c.

585  {
588  if (handler != NULL)
590  else
593 }
static void * xmlGenericErrorContextThrDef
Definition: globals.c:330
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
smooth NULL
Definition: ftsmooth.c:416
static xmlGenericErrorFunc xmlGenericErrorThrDef
Definition: globals.c:316
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786
void XMLCDECL xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
Definition: error.c:71

◆ xmlThrDefSetStructuredErrorFunc()

void xmlThrDefSetStructuredErrorFunc ( void ctx,
xmlStructuredErrorFunc  handler 
)

Definition at line 596 of file globals.c.

596  {
601 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
static xmlStructuredErrorFunc xmlStructuredErrorThrDef
Definition: globals.c:323
static void * xmlStructuredErrorContextThrDef
Definition: globals.c:337
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786

◆ xmlThrDefSubstituteEntitiesDefaultValue()

int xmlThrDefSubstituteEntitiesDefaultValue ( int  v)

Definition at line 1080 of file globals.c.

1080  {
1081  int ret;
1086  return ret;
1087 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static int xmlSubstituteEntitiesDefaultValueThrDef
Definition: globals.c:288

◆ xmlThrDefTreeIndentString()

const char* xmlThrDefTreeIndentString ( const char v)

Definition at line 952 of file globals.c.

952  {
953  const char * ret;
958  return ret;
959 }
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
int ret
static xmlMutexPtr xmlThrDefMutex
Definition: globals.c:40
const GLdouble * v
Definition: gl.h:2040
static const char * xmlTreeIndentStringThrDef
Definition: globals.c:358

Referenced by DllMain().

Variable Documentation

◆ oldXMLWDcompatibility

int oldXMLWDcompatibility = 0

oldXMLWDcompatibility:

Global setting, DEPRECATED.

Definition at line 214 of file globals.c.

Referenced by __oldXMLWDcompatibility().

◆ xmlBufferAllocScheme

xmlBufferAllocScheme:

Global setting, default allocation policy for buffers, default is XML_BUFFER_ALLOC_EXACT

Definition at line 195 of file globals.c.

Referenced by __xmlBufferAllocScheme().

◆ xmlBufferAllocSchemeThrDef

xmlBufferAllocationScheme xmlBufferAllocSchemeThrDef = XML_BUFFER_ALLOC_EXACT
static

Definition at line 196 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefBufferAllocScheme().

◆ xmlDefaultBufferSize

int xmlDefaultBufferSize = BASE_BUFFER_SIZE

xmlDefaultBufferSize:

Global setting, default buffer size. Default value is BASE_BUFFER_SIZE

Definition at line 202 of file globals.c.

Referenced by __xmlDefaultBufferSize().

◆ xmlDefaultBufferSizeThrDef

int xmlDefaultBufferSizeThrDef = BASE_BUFFER_SIZE
static

Definition at line 203 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefDefaultBufferSize().

◆ xmlDefaultSAXLocator

xmlSAXLocator xmlDefaultSAXLocator
Initial value:
= {
}
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
Definition: SAX2.c:273
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
Definition: SAX2.c:257
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
Definition: SAX2.c:289

xmlDefaultSAXLocator:

The default SAX Locator { getPublicId, getSystemId, getLineNumber, getColumnNumber}

Definition at line 415 of file globals.c.

Referenced by __xmlDefaultSAXLocator().

◆ xmlDeregisterNodeDefaultValue

xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue = NULL

Definition at line 292 of file globals.c.

Referenced by __xmlDeregisterNodeDefaultValue(), and xmlDeregisterNodeDefault().

◆ xmlDeregisterNodeDefaultValueThrDef

xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValueThrDef = NULL
static

Definition at line 293 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefDeregisterNodeDefault().

◆ xmlDoValidityCheckingDefaultValue

int xmlDoValidityCheckingDefaultValue = 0

xmlDoValidityCheckingDefaultValue:

Global setting, indicate that the parser should work in validating mode. Disabled by default.

Definition at line 230 of file globals.c.

Referenced by __xmlDoValidityCheckingDefaultValue().

◆ xmlDoValidityCheckingDefaultValueThrDef

int xmlDoValidityCheckingDefaultValueThrDef = 0
static

Definition at line 231 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefDoValidityCheckingDefaultValue().

◆ xmlFree

xmlFreeFunc xmlFree = free

xmlFree: @mem: an already allocated block of memory

The variable holding the libxml free() implementation

Definition at line 95 of file globals.c.

◆ xmlGenericError

xmlGenericError:

Global setting: function used for generic error callbacks

Definition at line 315 of file globals.c.

Referenced by __xmlGenericError().

◆ xmlGenericErrorContext

void* xmlGenericErrorContext = NULL

xmlGenericErrorContext:

Global setting passed to generic error callbacks

Definition at line 329 of file globals.c.

Referenced by __xmlGenericErrorContext().

◆ xmlGenericErrorContextThrDef

void* xmlGenericErrorContextThrDef = NULL
static

Definition at line 330 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSetGenericErrorFunc().

◆ xmlGenericErrorThrDef

xmlGenericErrorFunc xmlGenericErrorThrDef = xmlGenericErrorDefaultFunc
static

Definition at line 316 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSetGenericErrorFunc().

◆ xmlGetWarningsDefaultValue

int xmlGetWarningsDefaultValue = 1

xmlGetWarningsDefaultValue:

Global setting, indicate that the parser should provide warnings. Activated by default.

Definition at line 238 of file globals.c.

Referenced by __xmlGetWarningsDefaultValue().

◆ xmlGetWarningsDefaultValueThrDef

int xmlGetWarningsDefaultValueThrDef = 1
static

Definition at line 239 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefGetWarningsDefaultValue().

◆ xmlIndentTreeOutput

int xmlIndentTreeOutput = 1

xmlIndentTreeOutput:

Global setting, asking the serializer to indent the output tree by default Enabled by default

Definition at line 349 of file globals.c.

Referenced by __xmlIndentTreeOutput().

◆ xmlIndentTreeOutputThrDef

int xmlIndentTreeOutputThrDef = 1
static

Definition at line 350 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefIndentTreeOutput().

◆ xmlKeepBlanksDefaultValue

int xmlKeepBlanksDefaultValue = 1

xmlKeepBlanksDefaultValue:

Global setting, indicate that the parser should keep all blanks nodes found in the content Activated by default, this is actually needed to have the parser conformant to the XML Recommendation, however the option is kept for some applications since this was libxml1 default behaviour.

Definition at line 276 of file globals.c.

Referenced by __xmlKeepBlanksDefaultValue().

◆ xmlKeepBlanksDefaultValueThrDef

int xmlKeepBlanksDefaultValueThrDef = 1
static

Definition at line 277 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefKeepBlanksDefaultValue().

◆ xmlLastError

xmlError xmlLastError

Definition at line 338 of file globals.c.

Referenced by __xmlLastError().

◆ xmlLineNumbersDefaultValue

int xmlLineNumbersDefaultValue = 0

xmlLineNumbersDefaultValue:

Global setting, indicate that the parser should store the line number in the content field of elements in the DOM tree. Disabled by default since this may not be safe for old classes of applicaton.

Definition at line 265 of file globals.c.

Referenced by __xmlLineNumbersDefaultValue().

◆ xmlLineNumbersDefaultValueThrDef

int xmlLineNumbersDefaultValueThrDef = 0
static

Definition at line 266 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefLineNumbersDefaultValue().

◆ xmlLoadExtDtdDefaultValue

int xmlLoadExtDtdDefaultValue = 0

xmlLoadExtDtdDefaultValue:

Global setting, indicate that the parser should load DTD while not validating. Disabled by default.

Definition at line 247 of file globals.c.

Referenced by __xmlLoadExtDtdDefaultValue().

◆ xmlLoadExtDtdDefaultValueThrDef

int xmlLoadExtDtdDefaultValueThrDef = 0
static

Definition at line 248 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefLoadExtDtdDefaultValue().

◆ xmlMalloc

xmlMallocFunc xmlMalloc = malloc

xmlMalloc: @size: the size requested in bytes

The variable holding the libxml malloc() implementation

Returns a pointer to the newly allocated block or NULL in case of error

Definition at line 104 of file globals.c.

◆ xmlMallocAtomic

xmlMallocFunc xmlMallocAtomic = malloc

xmlMallocAtomic: @size: the size requested in bytes

The variable holding the libxml malloc() implementation for atomic data (i.e. blocks not containings pointers), useful when using a garbage collecting allocator.

Returns a pointer to the newly allocated block or NULL in case of error

Definition at line 115 of file globals.c.

◆ xmlMemStrdup

xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup

xmlMemStrdup: @str: a zero terminated string

The variable holding the libxml strdup() implementation

Returns the copy of the string or NULL in case of error

Definition at line 146 of file globals.c.

◆ xmlOutputBufferCreateFilenameValue

xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue = NULL

Definition at line 298 of file globals.c.

Referenced by __xmlOutputBufferCreateFilenameValue().

◆ xmlOutputBufferCreateFilenameValueThrDef

xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValueThrDef = NULL
static

◆ xmlParserDebugEntities

int xmlParserDebugEntities = 0

xmlParserDebugEntities:

Global setting, asking the parser to print out debugging informations. while handling entities. Disabled by default

Definition at line 222 of file globals.c.

Referenced by __xmlParserDebugEntities().

◆ xmlParserDebugEntitiesThrDef

int xmlParserDebugEntitiesThrDef = 0
static

Definition at line 223 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefParserDebugEntities().

◆ xmlParserInputBufferCreateFilenameValue

xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue = NULL

Definition at line 295 of file globals.c.

Referenced by __xmlParserInputBufferCreateFilenameValue().

◆ xmlParserInputBufferCreateFilenameValueThrDef

xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValueThrDef = NULL
static

◆ xmlParserVersion

xmlParserVersion:

Constant string describing the internal version of the library

Definition at line 187 of file globals.c.

Referenced by __xmlParserVersion().

◆ xmlPedanticParserDefaultValue

int xmlPedanticParserDefaultValue = 0

xmlPedanticParserDefaultValue:

Global setting, indicate that the parser be pedantic Disabled by default.

Definition at line 255 of file globals.c.

Referenced by __xmlPedanticParserDefaultValue().

◆ xmlPedanticParserDefaultValueThrDef

int xmlPedanticParserDefaultValueThrDef = 0
static

Definition at line 256 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefPedanticParserDefaultValue().

◆ xmlRealloc

xmlReallocFunc xmlRealloc = realloc

xmlRealloc: @mem: an already allocated block of memory @size: the new size requested in bytes

The variable holding the libxml realloc() implementation

Returns a pointer to the newly reallocated block or NULL in case of error

Definition at line 125 of file globals.c.

◆ xmlRegisterNodeDefaultValue

xmlRegisterNodeFunc xmlRegisterNodeDefaultValue = NULL

Definition at line 290 of file globals.c.

Referenced by __xmlRegisterNodeDefaultValue(), and xmlRegisterNodeDefault().

◆ xmlRegisterNodeDefaultValueThrDef

xmlRegisterNodeFunc xmlRegisterNodeDefaultValueThrDef = NULL
static

Definition at line 291 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefRegisterNodeDefault().

◆ xmlSaveNoEmptyTags

int xmlSaveNoEmptyTags = 0

xmlSaveNoEmptyTags:

Global setting, asking the serializer to not output empty tags as <empty> but <empty></empty>. those two forms are undistinguishable once parsed. Disabled by default

Definition at line 368 of file globals.c.

Referenced by __xmlSaveNoEmptyTags().

◆ xmlSaveNoEmptyTagsThrDef

int xmlSaveNoEmptyTagsThrDef = 0
static

Definition at line 369 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSaveNoEmptyTags().

◆ xmlStructuredError

xmlStructuredErrorFunc xmlStructuredError = NULL

xmlStructuredError:

Global setting: function used for structured error callbacks

Definition at line 322 of file globals.c.

Referenced by __xmlStructuredError().

◆ xmlStructuredErrorContext

void* xmlStructuredErrorContext = NULL

xmlStructuredErrorContext:

Global setting passed to structured error callbacks

Definition at line 336 of file globals.c.

Referenced by __xmlStructuredErrorContext().

◆ xmlStructuredErrorContextThrDef

void* xmlStructuredErrorContextThrDef = NULL
static

Definition at line 337 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSetStructuredErrorFunc().

◆ xmlStructuredErrorThrDef

xmlStructuredErrorFunc xmlStructuredErrorThrDef = NULL
static

Definition at line 323 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSetStructuredErrorFunc().

◆ xmlSubstituteEntitiesDefaultValue

int xmlSubstituteEntitiesDefaultValue = 0

xmlSubstituteEntitiesDefaultValue:

Global setting, indicate that the parser should not generate entity references but replace them with the actual content of the entity Disabled by default, this should be activated when using XPath since the XPath data model requires entities replacement and the XPath engine does not handle entities references transparently.

Definition at line 287 of file globals.c.

Referenced by __xmlSubstituteEntitiesDefaultValue().

◆ xmlSubstituteEntitiesDefaultValueThrDef

int xmlSubstituteEntitiesDefaultValueThrDef = 0
static

Definition at line 288 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefSubstituteEntitiesDefaultValue().

◆ xmlThrDefMutex

◆ xmlTreeIndentString

const char* xmlTreeIndentString = " "

xmlTreeIndentString:

The string used to do one-level indent. By default is equal to " " (two spaces)

Definition at line 357 of file globals.c.

Referenced by __xmlTreeIndentString().

◆ xmlTreeIndentStringThrDef

const char* xmlTreeIndentStringThrDef = " "
static

Definition at line 358 of file globals.c.

Referenced by xmlInitializeGlobalState(), and xmlThrDefTreeIndentString().