ReactOS  0.4.14-dev-52-g6116262
globals.h File Reference
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
#include <libxml/xmlerror.h>
#include <libxml/SAX2.h>
#include <libxml/xmlmemory.h>
#include <libxml/threads.h>
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _xmlGlobalState
 

Typedefs

typedef xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc) (const char *URI, xmlCharEncoding enc)
 
typedef xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc) (const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)
 
typedef void(* xmlRegisterNodeFunc) (xmlNodePtr node)
 
typedef void(* xmlDeregisterNodeFunc) (xmlNodePtr node)
 
typedef struct _xmlGlobalState xmlGlobalState
 
typedef xmlGlobalStatexmlGlobalStatePtr
 

Functions

XMLPUBFUN void XMLCALL xmlInitGlobals (void)
 
XMLPUBFUN void XMLCALL xmlCleanupGlobals (void)
 
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc XMLCALL xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlOutputBufferCreateFilenameFunc XMLCALL xmlOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
 
XMLPUBFUN void XMLCALL xmlInitializeGlobalState (xmlGlobalStatePtr gs)
 
XMLPUBFUN void XMLCALL xmlThrDefSetGenericErrorFunc (void *ctx, xmlGenericErrorFunc handler)
 
XMLPUBFUN void XMLCALL xmlThrDefSetStructuredErrorFunc (void *ctx, xmlStructuredErrorFunc handler)
 
XMLPUBFUN xmlRegisterNodeFunc XMLCALL xmlRegisterNodeDefault (xmlRegisterNodeFunc func)
 
XMLPUBFUN xmlRegisterNodeFunc XMLCALL xmlThrDefRegisterNodeDefault (xmlRegisterNodeFunc func)
 
XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func)
 
XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlThrDefDeregisterNodeDefault (xmlDeregisterNodeFunc func)
 
XMLPUBFUN xmlOutputBufferCreateFilenameFunc XMLCALL xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc XMLCALL xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
 
XMLPUBFUN xmlError *XMLCALL __xmlLastError (void)
 
XMLPUBFUN int *XMLCALL __oldXMLWDcompatibility (void)
 
XMLPUBFUN xmlBufferAllocationScheme *XMLCALL __xmlBufferAllocScheme (void)
 
XMLPUBFUN xmlBufferAllocationScheme XMLCALL xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v)
 
XMLPUBFUN int *XMLCALL __xmlDefaultBufferSize (void)
 
XMLPUBFUN int XMLCALL xmlThrDefDefaultBufferSize (int v)
 
XMLPUBFUN xmlSAXHandlerV1 *XMLCALL __xmlDefaultSAXHandler (void)
 
XMLPUBFUN xmlSAXLocator *XMLCALL __xmlDefaultSAXLocator (void)
 
XMLPUBFUN int *XMLCALL __xmlDoValidityCheckingDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefDoValidityCheckingDefaultValue (int v)
 
XMLPUBFUN xmlGenericErrorFunc *XMLCALL __xmlGenericError (void)
 
XMLPUBFUN xmlStructuredErrorFunc *XMLCALL __xmlStructuredError (void)
 
XMLPUBFUN void **XMLCALL __xmlGenericErrorContext (void)
 
XMLPUBFUN void **XMLCALL __xmlStructuredErrorContext (void)
 
XMLPUBFUN int *XMLCALL __xmlGetWarningsDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefGetWarningsDefaultValue (int v)
 
XMLPUBFUN int *XMLCALL __xmlIndentTreeOutput (void)
 
XMLPUBFUN int XMLCALL xmlThrDefIndentTreeOutput (int v)
 
XMLPUBFUN const char **XMLCALL __xmlTreeIndentString (void)
 
XMLPUBFUN const char *XMLCALL xmlThrDefTreeIndentString (const char *v)
 
XMLPUBFUN int *XMLCALL __xmlKeepBlanksDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefKeepBlanksDefaultValue (int v)
 
XMLPUBFUN int *XMLCALL __xmlLineNumbersDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefLineNumbersDefaultValue (int v)
 
XMLPUBFUN int *XMLCALL __xmlLoadExtDtdDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefLoadExtDtdDefaultValue (int v)
 
XMLPUBFUN int *XMLCALL __xmlParserDebugEntities (void)
 
XMLPUBFUN int XMLCALL xmlThrDefParserDebugEntities (int v)
 
XMLPUBFUN const char **XMLCALL __xmlParserVersion (void)
 
XMLPUBFUN int *XMLCALL __xmlPedanticParserDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefPedanticParserDefaultValue (int v)
 
XMLPUBFUN int *XMLCALL __xmlSaveNoEmptyTags (void)
 
XMLPUBFUN int XMLCALL xmlThrDefSaveNoEmptyTags (int v)
 
XMLPUBFUN int *XMLCALL __xmlSubstituteEntitiesDefaultValue (void)
 
XMLPUBFUN int XMLCALL xmlThrDefSubstituteEntitiesDefaultValue (int v)
 
XMLPUBFUN xmlRegisterNodeFunc *XMLCALL __xmlRegisterNodeDefaultValue (void)
 
XMLPUBFUN xmlDeregisterNodeFunc *XMLCALL __xmlDeregisterNodeDefaultValue (void)
 
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *XMLCALL __xmlParserInputBufferCreateFilenameValue (void)
 
XMLPUBFUN xmlOutputBufferCreateFilenameFunc *XMLCALL __xmlOutputBufferCreateFilenameValue (void)
 

Variables

XMLPUBVAR xmlMallocFunc xmlMalloc
 
XMLPUBVAR xmlMallocFunc xmlMallocAtomic
 
XMLPUBVAR xmlReallocFunc xmlRealloc
 
XMLPUBVAR xmlFreeFunc xmlFree
 
XMLPUBVAR xmlStrdupFunc xmlMemStrdup
 
XMLPUBVAR xmlError xmlLastError
 
XMLPUBVAR int oldXMLWDcompatibility
 
XMLPUBVAR xmlBufferAllocationScheme xmlBufferAllocScheme
 
XMLPUBVAR int xmlDefaultBufferSize
 
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
 
XMLPUBVAR xmlSAXLocator xmlDefaultSAXLocator
 
XMLPUBVAR int xmlDoValidityCheckingDefaultValue
 
XMLPUBVAR xmlGenericErrorFunc xmlGenericError
 
XMLPUBVAR xmlStructuredErrorFunc xmlStructuredError
 
XMLPUBVAR voidxmlGenericErrorContext
 
XMLPUBVAR voidxmlStructuredErrorContext
 
XMLPUBVAR int xmlGetWarningsDefaultValue
 
XMLPUBVAR int xmlIndentTreeOutput
 
XMLPUBVAR const charxmlTreeIndentString
 
XMLPUBVAR int xmlKeepBlanksDefaultValue
 
XMLPUBVAR int xmlLineNumbersDefaultValue
 
XMLPUBVAR int xmlLoadExtDtdDefaultValue
 
XMLPUBVAR int xmlParserDebugEntities
 
XMLPUBVAR const charxmlParserVersion
 
XMLPUBVAR int xmlPedanticParserDefaultValue
 
XMLPUBVAR int xmlSaveNoEmptyTags
 
XMLPUBVAR int xmlSubstituteEntitiesDefaultValue
 
XMLPUBVAR xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
 
XMLPUBVAR xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue
 
XMLPUBVAR xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue
 
XMLPUBVAR xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue
 

Typedef Documentation

◆ xmlDeregisterNodeFunc

typedef void(* xmlDeregisterNodeFunc) (xmlNodePtr node)

xmlDeregisterNodeFunc: @node: the current node

Signature for the deregistration callback of a discarded node

Definition at line 117 of file globals.h.

◆ xmlGlobalState

Definition at line 119 of file globals.h.

◆ xmlGlobalStatePtr

Definition at line 120 of file globals.h.

◆ xmlOutputBufferCreateFilenameFunc

typedef xmlOutputBufferPtr(* xmlOutputBufferCreateFilenameFunc) (const char *URI, xmlCharEncodingHandlerPtr encoder, int compression)

xmlOutputBufferCreateFilenameFunc: @URI: the URI to write to @enc: the requested target encoding

Signature for the function doing the lookup for a suitable output method corresponding to an URI.

Returns the new xmlOutputBufferPtr in case of success or NULL if no method was found.

Definition at line 56 of file globals.h.

◆ xmlParserInputBufferCreateFilenameFunc

typedef xmlParserInputBufferPtr(* xmlParserInputBufferCreateFilenameFunc) (const char *URI, xmlCharEncoding enc)

xmlParserInputBufferCreateFilenameFunc: @URI: the URI to read from @enc: the requested source encoding

Signature for the function doing the lookup for a suitable input method corresponding to an URI.

Returns the new xmlParserInputBufferPtr in case of success or NULL if no method was found.

Definition at line 41 of file globals.h.

◆ xmlRegisterNodeFunc

typedef void(* xmlRegisterNodeFunc) (xmlNodePtr node)

xmlRegisterNodeFunc: @node: the current node

Signature for the registration callback of a created node

Definition at line 110 of file globals.h.

Function Documentation

◆ __oldXMLWDcompatibility()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlBufferAllocationScheme* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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

◆ __xmlDefaultSAXHandler()

XMLPUBFUN xmlSAXHandlerV1* XMLCALL __xmlDefaultSAXHandler ( void  )

◆ __xmlDefaultSAXLocator()

XMLPUBFUN xmlSAXLocator* XMLCALL __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()

XMLPUBFUN xmlDeregisterNodeFunc* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlGenericErrorFunc* XMLCALL __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()

XMLPUBFUN void* * XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlError* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlOutputBufferCreateFilenameFunc* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlParserInputBufferCreateFilenameFunc* XMLCALL __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()

XMLPUBFUN const char* * XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlRegisterNodeFunc* XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN xmlStructuredErrorFunc* XMLCALL __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()

XMLPUBFUN void* * XMLCALL __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()

XMLPUBFUN int* XMLCALL __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()

XMLPUBFUN const char* * XMLCALL __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()

XMLPUBFUN void XMLCALL 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()

XMLPUBFUN xmlDeregisterNodeFunc XMLCALL 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().

◆ xmlInitGlobals()

XMLPUBFUN void XMLCALL 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()

XMLPUBFUN void XMLCALL 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().

◆ xmlOutputBufferCreateFilenameDefault()

◆ xmlParserInputBufferCreateFilenameDefault()

◆ xmlRegisterNodeDefault()

XMLPUBFUN xmlRegisterNodeFunc XMLCALL 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()

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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN xmlDeregisterNodeFunc XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN xmlOutputBufferCreateFilenameFunc XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN xmlParserInputBufferCreateFilenameFunc XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN xmlRegisterNodeFunc XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN void XMLCALL 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()

XMLPUBFUN void XMLCALL 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()

XMLPUBFUN int XMLCALL 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()

XMLPUBFUN const char* XMLCALL 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

XMLPUBVAR int oldXMLWDcompatibility

Definition at line 294 of file globals.h.

◆ xmlBufferAllocScheme

XMLPUBVAR xmlBufferAllocationScheme xmlBufferAllocScheme

Definition at line 302 of file globals.h.

Referenced by xmlBufCreate(), and xmlBufCreateSize().

◆ xmlDefaultBufferSize

XMLPUBVAR int xmlDefaultBufferSize

Definition at line 312 of file globals.h.

Referenced by xmlBufCreate().

◆ xmlDefaultSAXHandler

XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler

Definition at line 321 of file globals.h.

Referenced by xmlCreateIOParserCtxt(), xmlDefaultSAXHandlerInit(), and xmlFreeParserCtxt().

◆ xmlDefaultSAXLocator

XMLPUBVAR xmlSAXLocator xmlDefaultSAXLocator

Definition at line 329 of file globals.h.

Referenced by xmlParseDocument(), and xmlParseExtParsedEnt().

◆ xmlDeregisterNodeDefaultValue

XMLPUBVAR xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue

Definition at line 484 of file globals.h.

◆ xmlDoValidityCheckingDefaultValue

XMLPUBVAR int xmlDoValidityCheckingDefaultValue

Definition at line 337 of file globals.h.

Referenced by main(), and xmlInitParserCtxt().

◆ xmlFree

Definition at line 250 of file globals.h.

Referenced by myStrdupFunc(), parseAndPrintFile(), xmlAddDefAttrs(), xmlAddElementDecl(), xmlAddEncodingAlias(), xmlAddRef(), xmlBufBackToBuffer(), xmlBufCreate(), xmlBufCreateSize(), xmlBufFree(), xmlBufResize(), xmlBuildURI(), xmlCanonicPath(), xmlCharEncCloseFunc(), xmlCleanupCharEncodingHandlers(), xmlCleanupEncodingAliases(), xmlCleanURI(), xmlClearNodeInfoSeq(), xmlCreateEntityParserCtxtInternal(), xmlCreateIOParserCtxt(), xmlCtxtResetPush(), xmlCtxtUseOptionsInternal(), xmlDelEncodingAlias(), xmlDictCreate(), xmlDictFree(), xmlDictGrow(), xmlEscapeFormatString(), xmlFreeAttribute(), xmlFreeDocElementContent(), xmlFreeElement(), xmlFreeEnumeration(), xmlFreeID(), xmlFreeInputStream(), xmlFreeNotation(), xmlFreeParserCtxt(), xmlFreeRef(), xmlFreeURI(), xmlGcMemGet(), xmlGcMemSetup(), xmlGetDtdAttrDesc(), xmlGetDtdElementDesc(), xmlGetDtdElementDesc2(), xmlHashCreate(), xmlHashDefaultDeallocator(), xmlHashFree(), xmlHashGrow(), xmlHashRemoveEntry3(), xmlHTMLEncodeSend(), xmlIsID(), xmlLinkDeallocator(), xmllintExternalEntityLoader(), xmlListCreate(), xmlListDelete(), xmlMemGet(), xmlMemSetup(), xmlNewCharEncodingHandler(), xmlNewInputFromFile(), xmlParse3986Fragment(), xmlParse3986HierPart(), xmlParse3986Host(), xmlParse3986PathAbEmpty(), xmlParse3986PathAbsolute(), xmlParse3986PathNoScheme(), xmlParse3986PathRootless(), xmlParse3986Query(), xmlParse3986RelativeRef(), xmlParse3986Scheme(), xmlParse3986Userinfo(), xmlParseAttribute2(), xmlParseAttributeListDecl(), xmlParseAttValueComplex(), xmlParseCDSect(), xmlParseComment(), xmlParseCommentComplex(), xmlParseEncName(), xmlParseEncodingDecl(), xmlParseEntityDecl(), xmlParseEntityValue(), xmlParseEnumerationType(), xmlParseInNodeContext(), xmlParseNmtoken(), xmlParseNotationDecl(), xmlParseNotationType(), xmlParsePI(), xmlParsePubidLiteral(), xmlParseQName(), xmlParserEntityCheck(), xmlParseStartTag2(), xmlParseStringEntityRef(), xmlParseStringName(), xmlParseStringPEReference(), xmlParseSystemLiteral(), xmlParseVersionNum(), xmlParseXMLDecl(), xmlPathToURI(), xmlPrintURI(), xmlRemoveID(), xmlRemoveRef(), xmlSaveUri(), xmlSAX2AttributeDecl(), xmlSAX2AttributeNs(), xmlSAX2ExternalSubset(), xmlSAX2ResolveEntity(), xmlSAX2StartElementNs(), xmlSAX2TextNode(), xmlSplitQName(), xmlStringLenDecodeEntities(), xmlURIEscape(), xmlURIEscapeStr(), xsltAddKey(), xsltAttribute(), xsltAttrTemplateValueProcessNode(), xsltCheckWritePath(), xsltComment(), xsltCompileAttr(), xsltCompileIdKeyPattern(), xsltCompileLocationPathPattern(), xsltCompileStepPattern(), xsltCompMatchAdd(), xsltComputeSortResult(), xsltCopyAttrListNoOverwrite(), xsltCopyOf(), xsltCopyTree(), xsltDefaultSortFunction(), xsltDocumentElem(), xsltDocumentFunction(), xsltDocumentFunctionLoadDocument(), xsltElement(), xsltElementAvailableFunction(), xsltEvalAttrValueTemplate(), xsltEvalAVT(), xsltEvalStaticAttrValueTemplate(), xsltFormatNumberFunction(), xsltFreeAttrElem(), xsltFreeAttrSet(), xsltFreeAttrVT(), xsltFreeCompMatch(), xsltFreeDecimalFormat(), xsltFreeDocuments(), xsltFreeElemPreComp(), xsltFreeExtData(), xsltFreeExtDef(), xsltFreeExtElement(), xsltFreeExtModule(), xsltFreeKeyDef(), xsltFreeKeyTable(), xsltFreeLocales(), xsltFreeParserContext(), xsltFreeRVTs(), xsltFreeSecurityPrefs(), xsltFreeStackElem(), xsltFreeStyleDocuments(), xsltFreeStylePreComp(), xsltFreeStylesheet(), xsltFreeTemplate(), xsltFreeTransformContext(), xsltFreeUseAttrSet(), xsltFunctionAvailableFunction(), xsltGetCNsProp(), xsltGetProfileInformation(), xsltGetQNameURI(), xsltGetQNameURI2(), xsltInitCtxtKey(), xsltKeyFunction(), xsltLoadStylesheetPI(), xsltMessage(), xsltNamespaceAlias(), xsltNewCompMatch(), xsltNumberFormat(), xsltParseStylesheetAttributeSet(), xsltParseStylesheetDecimalFormat(), xsltParseStylesheetExcludePrefix(), xsltParseStylesheetExtPrefix(), xsltParseStylesheetImport(), xsltParseStylesheetInclude(), xsltParseStylesheetKey(), xsltParseStylesheetOutput(), xsltParseStylesheetPI(), xsltParseStylesheetPreserveSpace(), xsltParseStylesheetProcess(), xsltParseStylesheetStripSpace(), xsltParseStylesheetTemplate(), xsltParseStylesheetTop(), xsltParseTemplateContent(), xsltProcessingInstruction(), xsltReleaseRVT(), xsltReverseCompMatch(), xsltSaveProfiling(), xsltShallowCopyAttr(), xsltStrxfrm(), xsltSystemPropertyFunction(), xsltTestCompMatch(), xsltTransformCacheFree(), xsltTransformError(), and xsltValueOf().

◆ xmlGenericError

XMLPUBVAR xmlGenericErrorFunc xmlGenericError

Definition at line 346 of file globals.h.

Referenced by __xmlGlobalInitMutexLock(), debugmem_tag_error(), exclPrefixPush(), initGenericErrorDefaultFunc(), LIBXML_ATTR_FORMAT(), main(), nsPop(), parseAndPrintFile(), profCallgraphAdd(), profPush(), templPush(), xmlBufAdd(), xmlBufAddHead(), xmlBufCCat(), xmlBufDump(), xmlBufFree(), xmlBufGetAllocationScheme(), xmlBufSetAllocationScheme(), xmlBufWriteQuotedString(), xmlCharEncCloseFunc(), xmlCharEncFirstLineInput(), xmlCharEncFirstLineInt(), xmlCharEncInFunc(), xmlCharEncInput(), xmlCharEncOutFunc(), xmlCheckVersion(), xmlCleanupMemory(), xmlCleanupThreads(), xmlCtxtResetPush(), xmlDictGrow(), xmlFindCharEncodingHandler(), xmlGcMemSetup(), xmlGetCharEncodingHandler(), xmlGetGlobalState(), xmlHashGrow(), xmlHTMLEncodeSend(), xmlHTMLPrintFileContext(), xmlHTMLPrintFileInfo(), xmlInitMemory(), xmlInitParser(), xmlIsMainThread(), xmlListAppend(), xmlListCreate(), xmlListInsert(), xmlListPushBack(), xmlListPushFront(), xmlLoadEntityContent(), xmlLockLibrary(), xmlMallocAtomicLoc(), xmlMallocBreakpoint(), xmlMallocLoc(), xmlMemFree(), xmlMemSetup(), xmlMemStrdupLoc(), xmlMutexLock(), xmlNewCharEncodingHandler(), xmlNewEntityInputStream(), xmlNewInputFromFile(), xmlNewIOInputStream(), xmlNewStringInputStream(), xmlParseCharEncoding(), xmlParseConditionalSections(), xmlParsePEReference(), xmlParserInputGrow(), xmlParserInputShrink(), xmlParserPrintFileContext(), xmlParserPrintFileInfo(), xmlPopInput(), xmlPushInput(), xmlReallocLoc(), xmlReportError(), xmlSAX2AttributeDecl(), xmlSAX2CDataBlock(), xmlSAX2Characters(), xmlSAX2Comment(), xmlSAX2ElementDecl(), xmlSAX2EndDocument(), xmlSAX2EntityDecl(), xmlSAX2ExternalSubset(), xmlSAX2GetEntity(), xmlSAX2GetParameterEntity(), xmlSAX2IgnorableWhitespace(), xmlSAX2InternalSubset(), xmlSAX2NotationDecl(), xmlSAX2ProcessingInstruction(), xmlSAX2Reference(), xmlSAX2ResolveEntity(), xmlSAX2SetDocumentLocator(), xmlSAX2StartDocument(), xmlSAX2UnparsedEntityDecl(), xmlSetGenericErrorFunc(), xmlStringLenDecodeEntities(), xmlUnlockLibrary(), xmlUTF8Strndup(), xsltAddStackElem(), xsltExtensionInstructionResultFinalize(), xsltFlagRVTs(), xsltFreeStackElem(), xsltGetInheritedNsList(), xsltLocalVariablePush(), xsltNewTransformContext(), and xsltReleaseLocalRVTs().

◆ xmlGenericErrorContext

XMLPUBVAR void* xmlGenericErrorContext

Definition at line 362 of file globals.h.

Referenced by __xmlGlobalInitMutexLock(), debugmem_tag_error(), exclPrefixPush(), LIBXML_ATTR_FORMAT(), main(), nsPop(), parseAndPrintFile(), profCallgraphAdd(), profPush(), templPush(), xmlBufAdd(), xmlBufAddHead(), xmlBufCCat(), xmlBufDump(), xmlBufFree(), xmlBufGetAllocationScheme(), xmlBufSetAllocationScheme(), xmlBufWriteQuotedString(), xmlCharEncCloseFunc(), xmlCharEncFirstLineInput(), xmlCharEncFirstLineInt(), xmlCharEncInFunc(), xmlCharEncInput(), xmlCharEncOutFunc(), xmlCheckVersion(), xmlCleanupMemory(), xmlCleanupThreads(), xmlCtxtResetPush(), xmlDictGrow(), xmlFindCharEncodingHandler(), xmlGcMemSetup(), xmlGenericErrorDefaultFunc(), xmlGetCharEncodingHandler(), xmlGetGlobalState(), xmlHashGrow(), xmlHTMLEncodeSend(), xmlHTMLPrintFileContext(), xmlHTMLPrintFileInfo(), xmlInitMemory(), xmlIsMainThread(), xmlListAppend(), xmlListCreate(), xmlListInsert(), xmlListPushBack(), xmlListPushFront(), xmlLoadEntityContent(), xmlLockLibrary(), xmlMallocAtomicLoc(), xmlMallocBreakpoint(), xmlMallocLoc(), xmlMemFree(), xmlMemSetup(), xmlMemStrdupLoc(), xmlMutexLock(), xmlNewCharEncodingHandler(), xmlNewEntityInputStream(), xmlNewInputFromFile(), xmlNewIOInputStream(), xmlNewStringInputStream(), xmlParseCharEncoding(), xmlParseConditionalSections(), xmlParsePEReference(), xmlParserInputGrow(), xmlParserInputShrink(), xmlParserPrintFileContext(), xmlParserPrintFileInfo(), xmlPopInput(), xmlPushInput(), xmlReallocLoc(), xmlReportError(), xmlSAX2AttributeDecl(), xmlSAX2CDataBlock(), xmlSAX2Characters(), xmlSAX2Comment(), xmlSAX2ElementDecl(), xmlSAX2EndDocument(), xmlSAX2EntityDecl(), xmlSAX2ExternalSubset(), xmlSAX2GetEntity(), xmlSAX2GetParameterEntity(), xmlSAX2IgnorableWhitespace(), xmlSAX2InternalSubset(), xmlSAX2NotationDecl(), xmlSAX2ProcessingInstruction(), xmlSAX2Reference(), xmlSAX2ResolveEntity(), xmlSAX2SetDocumentLocator(), xmlSAX2StartDocument(), xmlSAX2UnparsedEntityDecl(), xmlSetGenericErrorFunc(), xmlStringLenDecodeEntities(), xmlUnlockLibrary(), xmlUTF8Strndup(), xsltAddStackElem(), xsltExtensionInstructionResultFinalize(), xsltFlagRVTs(), xsltFreeStackElem(), xsltGetInheritedNsList(), xsltLocalVariablePush(), xsltNewTransformContext(), and xsltReleaseLocalRVTs().

◆ xmlGetWarningsDefaultValue

XMLPUBVAR int xmlGetWarningsDefaultValue

Definition at line 378 of file globals.h.

Referenced by main(), and xmlInitParserCtxt().

◆ xmlIndentTreeOutput

XMLPUBVAR int xmlIndentTreeOutput

Definition at line 387 of file globals.h.

Referenced by xmlKeepBlanksDefault().

◆ xmlKeepBlanksDefaultValue

XMLPUBVAR int xmlKeepBlanksDefaultValue

Definition at line 405 of file globals.h.

Referenced by xmlInitParserCtxt(), and xmlKeepBlanksDefault().

◆ xmlLastError

XMLPUBVAR xmlError xmlLastError

Definition at line 279 of file globals.h.

◆ xmlLineNumbersDefaultValue

XMLPUBVAR int xmlLineNumbersDefaultValue

Definition at line 414 of file globals.h.

Referenced by xmlInitParserCtxt(), and xmlLineNumbersDefault().

◆ xmlLoadExtDtdDefaultValue

XMLPUBVAR int xmlLoadExtDtdDefaultValue

Definition at line 423 of file globals.h.

Referenced by main(), and xmlInitParserCtxt().

◆ xmlMalloc

XMLPUBVAR xmlMallocFunc xmlMalloc

DOC_DISABLE

Definition at line 247 of file globals.h.

Referenced by exclPrefixPush(), nsPush(), profCallgraphAdd(), profPush(), templPush(), xmlAddAttributeDecl(), xmlAddDefAttrs(), xmlAddElementDecl(), xmlAddEncodingAlias(), xmlAddID(), xmlAddNotationDecl(), xmlAddRef(), xmlBufCreate(), xmlBufCreateSize(), xmlBufCreateStatic(), xmlBufFromBuffer(), xmlCopyDocElementContent(), xmlCreateEnumeration(), xmlCreateIOParserCtxt(), xmlCreateURI(), xmlCtxtGrowAttrs(), xmlCtxtResetPush(), xmlDictAddQString(), xmlDictAddString(), xmlDictCreate(), xmlDictGrow(), xmlDictLookup(), xmlDictQLookup(), xmlFindCharEncodingHandler(), xmlGcMemGet(), xmlGcMemSetup(), xmlGetDtdElementDesc2(), xmlHashAddEntry3(), xmlHashCreate(), xmlHashGrow(), xmlHashUpdateEntry3(), xmlInitCharEncodingHandlers(), xmlInitParserCtxt(), xmlListAppend(), xmlListCreate(), xmlListInsert(), xmlListPushBack(), xmlListPushFront(), xmlMemGet(), xmlMemSetup(), xmlNewCharEncodingHandler(), xmlNewDocElementContent(), xmlNewInputStream(), xmlNewParserCtxt(), xmlParserAddNodeInfo(), xmlSAX2ExternalSubset(), xmlSAX2TextNode(), xmlStrncatNew(), xsltAddStackElem(), xsltAllocateExtraCtxt(), xsltComputeSortResult(), xsltCopyStackElem(), xsltGetInheritedNsList(), xsltGetProfileInformation(), xsltLocalVariablePush(), xsltNewAttrElem(), xsltNewAttrSet(), xsltNewAttrVT(), xsltNewCompMatch(), xsltNewDecimalFormat(), xsltNewDocument(), xsltNewElemPreComp(), xsltNewExtData(), xsltNewExtDef(), xsltNewExtElement(), xsltNewExtModule(), xsltNewKeyDef(), xsltNewKeyTable(), xsltNewParserContext(), xsltNewSecurityPrefs(), xsltNewStackElem(), xsltNewStyleDocument(), xsltNewStylePreComp(), xsltNewStylesheet(), xsltNewTemplate(), xsltNewTransformContext(), xsltNewUseAttrSet(), xsltPatPushState(), xsltSaveProfiling(), xsltStrxfrm(), and xsltTransformCacheCreate().

◆ xmlMallocAtomic

◆ xmlMemStrdup

◆ xmlOutputBufferCreateFilenameValue

XMLPUBVAR xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue

Definition at line 501 of file globals.h.

◆ xmlParserDebugEntities

◆ xmlParserInputBufferCreateFilenameValue

XMLPUBVAR xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue

Definition at line 493 of file globals.h.

◆ xmlParserVersion

XMLPUBVAR const char* xmlParserVersion

Definition at line 441 of file globals.h.

Referenced by showVersion().

◆ xmlPedanticParserDefaultValue

XMLPUBVAR int xmlPedanticParserDefaultValue

Definition at line 449 of file globals.h.

Referenced by xmlInitParserCtxt(), and xmlPedanticParserDefault().

◆ xmlRealloc

◆ xmlRegisterNodeDefaultValue

XMLPUBVAR xmlRegisterNodeFunc xmlRegisterNodeDefaultValue

Definition at line 476 of file globals.h.

Referenced by xmlSAX2AttributeNs(), and xmlSAX2StartElementNs().

◆ xmlSaveNoEmptyTags

XMLPUBVAR int xmlSaveNoEmptyTags

Definition at line 458 of file globals.h.

◆ xmlStructuredError

XMLPUBVAR xmlStructuredErrorFunc xmlStructuredError

Definition at line 354 of file globals.h.

Referenced by xmlSetStructuredErrorFunc().

◆ xmlStructuredErrorContext

XMLPUBVAR void* xmlStructuredErrorContext

Definition at line 370 of file globals.h.

Referenced by xmlSetStructuredErrorFunc().

◆ xmlSubstituteEntitiesDefaultValue

XMLPUBVAR int xmlSubstituteEntitiesDefaultValue

Definition at line 467 of file globals.h.

Referenced by xmlInitParserCtxt(), and xmlSubstituteEntitiesDefault().

◆ xmlTreeIndentString

XMLPUBVAR const char* xmlTreeIndentString

Definition at line 396 of file globals.h.

Referenced by DllMain(), and main().