webengine/osswebengine/WebCore/platform/symbian/Libxml2/Libxml2_globals.h
changeset 0 dd21522fd290
child 13 10e98eab6f85
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2  * Summary: interface for all global variables of the library
       
     3  * Description: all the global variables and thread handling for
       
     4  *              those variables is handled by this module.
       
     5  *
       
     6  * The bottom of this file is automatically generated by build_glob.py
       
     7  * based on the description file global.data
       
     8  *
       
     9  * Copy: See Copyright for the status of this software.
       
    10  *
       
    11  * Author: Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard
       
    12  */
       
    13 
       
    14 #ifndef __XML_GLOBALS_H
       
    15 #define __XML_GLOBALS_H
       
    16 
       
    17 #include "Libxml2_xmlmemory.h"
       
    18 #include "Libxml2_SAX.h"
       
    19 #include "Libxml2_SAX2.h"
       
    20 
       
    21 #include "Libxml2_chvalid.h"
       
    22 
       
    23 #ifdef XMLENGINE_XSLT
       
    24 #include <libxslt/numbersInternals.h>
       
    25 #include "XmlEnglibxslt/xsltutils.h"
       
    26 #endif
       
    27 
       
    28 #ifdef __cplusplus
       
    29 extern "C" {
       
    30 #endif
       
    31 
       
    32 typedef struct _xmlGlobalState xmlGlobalState;
       
    33 typedef xmlGlobalState *xmlGlobalStatePtr;
       
    34 //defines a linear address type
       
    35 typedef unsigned int xmlLinAddress;
       
    36 
       
    37 XMLPUBFUN void XMLCALL xeSetTLS(void* ptr);
       
    38 XMLPUBFUN xmlGlobalStatePtr XMLCALL xeGetTLS();
       
    39 
       
    40 //#if defined (XMLENGINE_USE_DOMSTRINGARGUMENT)
       
    41 XMLPUBFUN void XMLCALL xeCleanupDOMStringConverter();
       
    42 //#endif
       
    43 XMLPUBFUN int  XMLCALL xmlOOMFlag();
       
    44 XMLPUBFUN void XMLCALL xmlSetOOM();
       
    45 XMLPUBFUN void XMLCALL xmlResetOOM();
       
    46 
       
    47 #define snprintf symbian_snprintf
       
    48 #define vsnprintf symbian_vsnprintf
       
    49 
       
    50 XMLPUBFUN int XMLCALL symbian_vsnprintf(char *str, size_t size, const char *format, va_list ap);
       
    51 XMLPUBFUN int XMLCALL symbian_snprintf(char *str, size_t size, const char *format, ...);
       
    52 //#endif
       
    53 
       
    54 #ifdef LIBXML_XPATH_ENABLED
       
    55 #   include "XmlEngtriodef.h"
       
    56 #   include "XmlEngtrionan.h"
       
    57 #   include "Libxml2_xpathInternals.h"
       
    58 #endif
       
    59 
       
    60 #include "Libxml2_chvalid.h"
       
    61 
       
    62 #ifdef LIBXML_CATALOG_ENABLED
       
    63 #include <catalog.h>
       
    64 #endif
       
    65 
       
    66 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES
       
    67 #include "Libxml2_xmlschemasGlobals.h"
       
    68 #endif
       
    69 
       
    70 
       
    71 void* malloc_impl(size_t size);
       
    72 #ifdef XMLENGINE_MEM_DEBUG
       
    73 void  free_debug(void* mem);
       
    74 #endif
       
    75 
       
    76 typedef struct _xmlCharEncodingAlias xmlCharEncodingAlias;
       
    77 typedef xmlCharEncodingAlias *xmlCharEncodingAliasPtr;
       
    78 struct _xmlCharEncodingAlias {
       
    79     const char *name;
       
    80     const char *alias;
       
    81 };
       
    82 
       
    83 typedef struct _xmlInputCallback {
       
    84     xmlInputMatchCallback matchcallback;
       
    85     xmlInputOpenCallback opencallback;
       
    86     xmlInputReadCallback readcallback;
       
    87     xmlInputCloseCallback closecallback;
       
    88 } xmlInputCallback;
       
    89 #define MAX_INPUT_CALLBACK 15
       
    90 
       
    91 #ifdef LIBXML_OUTPUT_ENABLED
       
    92 typedef struct _xmlOutputCallback {
       
    93     xmlOutputMatchCallback matchcallback;
       
    94     xmlOutputOpenCallback opencallback;
       
    95     xmlOutputWriteCallback writecallback;
       
    96     xmlOutputCloseCallback closecallback;
       
    97 } xmlOutputCallback;
       
    98 #define MAX_OUTPUT_CALLBACK 15
       
    99 #endif /* LIBXML_OUTPUT_ENABLED */
       
   100 
       
   101 XMLPUBFUN xmlParserInputPtr XMLCALL
       
   102 xmlDefaultExternalEntityLoader(const char *URL, const char *ID, xmlParserCtxtPtr ctxt);
       
   103 
       
   104 #define xmlThrDefMutex NULL
       
   105 #define xmlInitGlobals()
       
   106 #define xmlCleanupGlobals()
       
   107 
       
   108 
       
   109 
       
   110 /*
       
   111  * Externally global symbols which need to be protected for backwards
       
   112  * compatibility support.
       
   113  */
       
   114 
       
   115 #undef  docbDefaultSAXHandler
       
   116 #undef  htmlDefaultSAXHandler
       
   117 #undef  xmlBufferAllocScheme
       
   118 #undef  xmlDefaultBufferSize
       
   119 #undef  xmlDefaultSAXHandler
       
   120 #undef  xmlDefaultSAXLocator
       
   121 #undef  xmlDoValidityCheckingDefaultValue
       
   122 #undef  xmlFree
       
   123 #undef  xmlGenericError
       
   124 #undef  xmlStructuredError
       
   125 #undef  xmlGenericErrorContext
       
   126 #undef  xmlGetWarningsDefaultValue
       
   127 #undef  xmlIndentTreeOutput
       
   128 #undef  xmlTreeIndentString
       
   129 #undef  xmlKeepBlanksDefaultValue
       
   130 #undef  xmlLineNumbersDefaultValue
       
   131 #undef  xmlLoadExtDtdDefaultValue
       
   132 #undef  xmlMalloc
       
   133 #undef  xmlMallocAtomic
       
   134 #undef  xmlMemStrdup
       
   135 #undef  xmlParserDebugEntities
       
   136 #undef  xmlParserVersion
       
   137 #undef  xmlPedanticParserDefaultValue
       
   138 #undef  xmlRealloc
       
   139 #undef  xmlSaveNoEmptyTags
       
   140 #undef  xmlSubstituteEntitiesDefaultValue
       
   141 #undef  xmlRegisterNodeDefaultValue
       
   142 #undef  xmlDeregisterNodeDefaultValue
       
   143 #undef  xmlLastError
       
   144 #undef  xmlOOM
       
   145 #undef  xeUserCount
       
   146 
       
   147 #undef  htmlStartCloseIndex
       
   148 #undef  htmlStartCloseIndexinitialized
       
   149 
       
   150 /* XMLENGINE_XSLT */
       
   151 #undef calibration
       
   152 #undef default_token
       
   153 #undef xsltExtensionsHash
       
   154 #undef xsltFunctionsHash
       
   155 #undef xsltElementsHash
       
   156 #undef xsltTopLevelsHash
       
   157 #undef xsltDebuggerCurrentCallbacks
       
   158 
       
   159 typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node);
       
   160 typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node);
       
   161 
       
   162 
       
   163 struct _xmlGlobalState
       
   164 {
       
   165     //const
       
   166     char *xmlParserVersion;
       
   167 
       
   168     xmlSAXLocator   xmlDefaultSAXLocator;
       
   169     xmlSAXHandlerV1 xmlDefaultSAXHandler;
       
   170     xmlSAXHandlerV1 docbDefaultSAXHandler;
       
   171     xmlSAXHandlerV1 htmlDefaultSAXHandler;
       
   172 
       
   173     xmlFreeFunc xmlFreeFn;
       
   174     xmlMallocFunc xmlMallocFn;
       
   175     xmlStrdupFunc xmlMemStrdupFn;
       
   176     xmlReallocFunc xmlReallocFn;
       
   177 
       
   178     xmlGenericErrorFunc xmlGenericError;
       
   179     xmlStructuredErrorFunc xmlStructuredError;
       
   180     void *xmlGenericErrorContext;
       
   181 
       
   182     xmlBufferAllocationScheme xmlBufferAllocScheme;
       
   183     int xmlDefaultBufferSize;
       
   184 
       
   185     int xmlSubstituteEntitiesDefaultValue;
       
   186     int xmlDoValidityCheckingDefaultValue;
       
   187     int xmlGetWarningsDefaultValue;
       
   188     int xmlKeepBlanksDefaultValue;
       
   189 
       
   190 #ifdef LIBXML_ENABLE_NODE_LINEINFO
       
   191     int xmlLineNumbersDefaultValue;
       
   192 #endif // LIBXML_ENABLE_NODE_LINEINFO
       
   193 
       
   194     int xmlLoadExtDtdDefaultValue;
       
   195     int xmlParserDebugEntities;
       
   196     int xmlPedanticParserDefaultValue;
       
   197 
       
   198     int xmlSaveNoEmptyTags;
       
   199     int xmlIndentTreeOutput;
       
   200     //const
       
   201     char *xmlTreeIndentString;
       
   202 
       
   203     xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
       
   204     xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
       
   205 
       
   206     xmlMallocFunc xmlMallocAtomicFn;
       
   207     xmlError xmlLastError;
       
   208 
       
   209     /* encoding */
       
   210     xmlCharEncodingHandlerPtr   xmlUTF16LEHandler;
       
   211     xmlCharEncodingHandlerPtr   xmlUTF16BEHandler;
       
   212     xmlCharEncodingAliasPtr     xmlCharEncodingAliases;
       
   213     int     xmlCharEncodingAliasesNb;
       
   214     int     xmlCharEncodingAliasesMax;
       
   215     int     xmlLittleEndian;
       
   216     xmlCharEncodingHandlerPtr *handlers;
       
   217     int     nbCharEncodingHandler;
       
   218     xmlCharEncodingHandlerPtr xmlDefaultCharEncodingHandler;
       
   219 
       
   220     /* error */
       
   221     int had_info; /* internal */
       
   222 
       
   223     /* parserInternals */
       
   224     int xmlInputStreamId; /* internal: renamed from "id" to prevent namespace collisions */
       
   225 
       
   226     /* parser */
       
   227     unsigned int xmlParserMaxDepth;
       
   228     const char *xmlW3CPIs [2];
       
   229     int xmlParserInitialized;
       
   230     
       
   231     /* thread's stack info */
       
   232     unsigned int xeStackLimit;
       
   233 
       
   234     /* SAX2 */
       
   235     int xmlSAX2DefaultVersionValue;
       
   236 
       
   237     /* xmlio */
       
   238     xmlInputCallback xmlInputCallbackTable[MAX_INPUT_CALLBACK];
       
   239     int xmlInputCallbackNr;
       
   240     int xmlInputCallbackInitialized;
       
   241 
       
   242 #ifdef LIBXML_HTML_ENABLED
       
   243     /*HTML parser*/
       
   244     const char** htmlStartCloseIndex[100];
       
   245     int htmlStartCloseIndexinitialized;
       
   246 #endif
       
   247 
       
   248 #ifdef LIBXML_OUTPUT_ENABLED
       
   249     xmlOutputCallback xmlOutputCallbackTable[MAX_OUTPUT_CALLBACK];
       
   250     int xmlOutputCallbackNr;
       
   251     int xmlOutputCallbackInitialized;
       
   252 #endif /* LIBXML_OUTPUT_ENABLED */
       
   253 
       
   254     xmlExternalEntityLoader xmlCurrentExternalEntityLoader;
       
   255 
       
   256     /* xmlmemory */
       
   257     int xmlMemInitialized;
       
   258     unsigned long  debugMemSize;
       
   259     unsigned long  debugMaxMemSize;
       
   260 //  xmlMutexPtr xmlMemMutex;
       
   261     unsigned int block;
       
   262     unsigned int xmlMemStopAtBlock;
       
   263     void *xmlMemTraceBlockAt;
       
   264 
       
   265 //#ifdef LIBXML_TREE_ENABLED
       
   266     int __xmlRegisterCallbacks;
       
   267 //#endif
       
   268 
       
   269 #ifdef LIBXML_TREE_ENABLED
       
   270     int xmlCompressMode;
       
   271     int xmlCheckDTD;
       
   272 #endif
       
   273 
       
   274 #ifdef LIBXML_CATALOG_ENABLED
       
   275     int xmlDebugCatalogs;
       
   276     xmlCatalogAllow xmlCatalogDefaultAllow;
       
   277     xmlCatalogPrefer xmlCatalogDefaultPrefer;
       
   278     xmlHashTablePtr xmlCatalogXMLFiles;
       
   279     xmlCatalogPtr xmlDefaultCatalog;
       
   280 //  xmlRMutexPtr xmlCatalogMutex;
       
   281     int xmlCatalogInitialized;
       
   282 #endif
       
   283 
       
   284 #ifdef LIBXML_XPATH_ENABLED
       
   285     /* xpath */
       
   286     double xmlXPathNAN;
       
   287     double xmlXPathPINF;
       
   288     double xmlXPathNINF;
       
   289     double xmlXPathNZERO;
       
   290     int xmlXPathInitialized;
       
   291 
       
   292 #ifndef LIBXML_THREAD_ENABLED
       
   293     int xmlXPathDisableOptimizer;
       
   294 #endif
       
   295 #endif
       
   296 
       
   297 #ifdef LIBXML_XPTR_ENABLED
       
   298     xlinkHandlerPtr xlinkDefaultHandler;
       
   299     xlinkNodeDetectFunc xlinkDefaultDetect;
       
   300 #endif
       
   301 
       
   302 #if defined (XMLENGINE_USE_DOMSTRINGARGUMENT)
       
   303     DOMStringConverterData xeStringArgs;
       
   304 #endif
       
   305 
       
   306 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES
       
   307     xmlSchemaTypesGlobalDataPtr xmlSchemaTypesGlobals;
       
   308     int xmlSchemaTypesInitialized;
       
   309 #endif
       
   310 
       
   311 #ifdef LIBXML_XPATH_ENABLED
       
   312 #   ifdef XMLENGINE_XPATH_FUNC_HASH_OPTIMIZED
       
   313     int xmlXPathDefineExtensionFunctionsGlobally;
       
   314     xmlHashTablePtr xmlXPathDefaultFunctionsHash;
       
   315     xmlHashTablePtr xmlXPathIntermediaryExtensionFunctionsHash;
       
   316 #   endif
       
   317 #endif
       
   318 
       
   319 #ifdef XMLENGINE_XSLT
       
   320     long calibration;
       
   321     xsltFormatToken default_token;
       
   322     xmlHashTablePtr xsltTopLevelsHash;
       
   323 #ifdef XSLT_EXTENSION
       
   324     xmlHashTablePtr xsltExtensionsHash;
       
   325     xmlHashTablePtr xsltFunctionsHash;
       
   326     xmlHashTablePtr xsltElementsHash;
       
   327 #endif
       
   328     xsltDebuggerCallbacks xsltDebuggerCurrentCallbacks;
       
   329 #endif /*end of XMLENGINE_XSLT*/
       
   330 
       
   331     int xmlOOM;
       
   332     int xeUserCount;
       
   333 #ifdef XMLENGINE_MEM_DEBUG
       
   334     int allocCount;
       
   335 #endif
       
   336 }; // end of struct _xmlGlobalState
       
   337 
       
   338 #ifdef __cplusplus
       
   339 }
       
   340 #endif
       
   341 
       
   342 #include "Libxml2_threads.h"
       
   343 
       
   344 #ifdef __cplusplus
       
   345 extern "C" {
       
   346 #endif
       
   347 
       
   348 XMLPUBVAR const char* const xmlTreeIndentString;
       
   349 XMLPUBVAR const char* const xmlParserVersion;
       
   350 
       
   351 XMLPUBFUN void                  XMLCALL xmlInitializeGlobalState(xmlGlobalStatePtr gs, xmlLinAddress stackLimit);
       
   352 XMLPUBFUN xmlRegisterNodeFunc   XMLCALL xmlRegisterNodeDefault  (xmlRegisterNodeFunc func);
       
   353 XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func);
       
   354 
       
   355 #define xmlFree xmlGetGlobalState()->xmlFreeFn
       
   356 #define xmlMalloc xmlGetGlobalState()->xmlMallocFn
       
   357 #define xmlMallocAtomic xmlGetGlobalState()->xmlMallocFn
       
   358 #define xmlRealloc xmlGetGlobalState()->xmlReallocFn
       
   359 #define xmlMemStrdup xmlGetGlobalState()->xmlMemStrdupFn
       
   360 
       
   361 #define xmlLastError (xmlGetGlobalState()->xmlLastError)
       
   362 #define xmlBufferAllocScheme (xmlGetGlobalState()->xmlBufferAllocScheme)
       
   363 #define xmlDefaultBufferSize (xmlGetGlobalState()->xmlDefaultBufferSize)
       
   364 
       
   365 #ifdef LIBXML_SAX1_ENABLED
       
   366 #define xmlDefaultSAXHandler (xmlGetGlobalState()->xmlDefaultSAXHandler)
       
   367 #endif /* LIBXML_SAX1_ENABLED */
       
   368 
       
   369 #define xmlDefaultSAXLocator (xmlGetGlobalState()->xmlDefaultSAXLocator)
       
   370 
       
   371 #define xmlDoValidityCheckingDefaultValue (xmlGetGlobalState()->xmlDoValidityCheckingDefaultValue)
       
   372 #define xmlGenericError (xmlGetGlobalState()->xmlGenericError)
       
   373 #define xmlStructuredError (xmlGetGlobalState()->xmlStructuredError)
       
   374 #define xmlGenericErrorContext (xmlGetGlobalState()->xmlGenericErrorContext)
       
   375 #define xmlGetWarningsDefaultValue (xmlGetGlobalState()->xmlGetWarningsDefaultValue)
       
   376 #define xmlIndentTreeOutput (xmlGetGlobalState()->xmlIndentTreeOutput)
       
   377 #define xmlKeepBlanksDefaultValue (xmlGetGlobalState()->xmlKeepBlanksDefaultValue)
       
   378 #define xmlLineNumbersDefaultValue (xmlGetGlobalState()->xmlLineNumbersDefaultValue)
       
   379 #define xmlLoadExtDtdDefaultValue (xmlGetGlobalState()->xmlLoadExtDtdDefaultValue)
       
   380 #define xmlParserDebugEntities (xmlGetGlobalState()->xmlParserDebugEntities)
       
   381 #define xmlPedanticParserDefaultValue (xmlGetGlobalState()->xmlPedanticParserDefaultValue)
       
   382 #define xmlSaveNoEmptyTags (xmlGetGlobalState()->xmlSaveNoEmptyTags)
       
   383 #define xmlSubstituteEntitiesDefaultValue (xmlGetGlobalState()->xmlSubstituteEntitiesDefaultValue)
       
   384 #define xmlRegisterNodeDefaultValue (xmlGetGlobalState()->xmlRegisterNodeDefaultValue)
       
   385 #define xmlDeregisterNodeDefaultValue (xmlGetGlobalState()->xmlDeregisterNodeDefaultValue)
       
   386 
       
   387 /* Static Globals */
       
   388 #define xmlLibraryLock NULL
       
   389 
       
   390 #define had_info (xmlGetGlobalState()->had_info)
       
   391 #define xmlInputStreamId (xmlGetGlobalState()->xmlInputStreamId)
       
   392 
       
   393 #define xmlUTF16LEHandler (xmlGetGlobalState()->xmlUTF16LEHandler)
       
   394 #define xmlUTF16BEHandler (xmlGetGlobalState()->xmlUTF16BEHandler)
       
   395 #define xmlCharEncodingAliases (xmlGetGlobalState()->xmlCharEncodingAliases)
       
   396 #define xmlCharEncodingAliasesNb (xmlGetGlobalState()->xmlCharEncodingAliasesNb)
       
   397 #define xmlCharEncodingAliasesMax (xmlGetGlobalState()->xmlCharEncodingAliasesMax)
       
   398 #define xmlLittleEndian (xmlGetGlobalState()->xmlLittleEndian)
       
   399 #define handlers (xmlGetGlobalState()->handlers)
       
   400 #define nbCharEncodingHandler (xmlGetGlobalState()->nbCharEncodingHandler)
       
   401 #define xmlDefaultCharEncodingHandler (xmlGetGlobalState()->xmlDefaultCharEncodingHandler)
       
   402 
       
   403 #define xmlParserMaxDepth (xmlGetGlobalState()->xmlParserMaxDepth)
       
   404 #define xmlW3CPIs (xmlGetGlobalState()->xmlW3CPIs)
       
   405 #define xmlParserInitialized (xmlGetGlobalState()->xmlParserInitialized)
       
   406 #define xeStackLimit (xmlGetGlobalState()->xeStackLimit)
       
   407 
       
   408 #define xmlSAX2DefaultVersionValue (xmlGetGlobalState()->xmlSAX2DefaultVersionValue)
       
   409 
       
   410 #define xmlInputCallbackTable (xmlGetGlobalState()->xmlInputCallbackTable)
       
   411 #define xmlInputCallbackNr (xmlGetGlobalState()->xmlInputCallbackNr)
       
   412 #define xmlInputCallbackInitialized (xmlGetGlobalState()->xmlInputCallbackInitialized)
       
   413 #define xmlOutputCallbackTable (xmlGetGlobalState()->xmlOutputCallbackTable)
       
   414 #define xmlOutputCallbackNr (xmlGetGlobalState()->xmlOutputCallbackNr)
       
   415 #define xmlOutputCallbackInitialized (xmlGetGlobalState()->xmlOutputCallbackInitialized)
       
   416 #define xmlCurrentExternalEntityLoader (xmlGetGlobalState()->xmlCurrentExternalEntityLoader)
       
   417 
       
   418 #define xmlMemInitialized (xmlGetGlobalState()->xmlMemInitialized)
       
   419 #define debugMemSize (xmlGetGlobalState()->debugMemSize)
       
   420 #define debugMaxMemSize (xmlGetGlobalState()->debugMaxMemSize)
       
   421 //#define   xmlMemMutex (xmlGetGlobalState->xmlMemMutex)
       
   422 #define xmlMemMutex NULL
       
   423 #define block (xmlGetGlobalState()->block)
       
   424 #define xmlMemStopAtBlock (xmlGetGlobalState()->xmlMemStopAtBlock)
       
   425 #define xmlMemTraceBlockAt (xmlGetGlobalState()->xmlMemTraceBlockAt)
       
   426 
       
   427 #define __xmlRegisterCallbacks (xmlGetGlobalState()->__xmlRegisterCallbacks)
       
   428 
       
   429 #ifdef LIBXML_TREE_ENABLED
       
   430 #   define xmlCompressMode (xmlGetGlobalState()->xmlCompressMode)
       
   431 #   define xmlCheckDTD (xmlGetGlobalState()->xmlCheckDTD)
       
   432 #endif
       
   433 
       
   434 #ifdef LIBXML_CATALOG_ENABLED
       
   435 #   define xmlDebugCatalogs (xmlGetGlobalState()->xmlDebugCatalogs)
       
   436 #   define  xmlCatalogDefaultAllow (xmlGetGlobalState()->xmlCatalogDefaultAllow)
       
   437 #   define xmlCatalogDefaultPrefer (xmlGetGlobalState()->xmlCatalogDefaultPrefer)
       
   438 #   define  xmlCatalogXMLFiles (xmlGetGlobalState()->xmlCatalogXMLFiles)
       
   439 #   define  xmlDefaultCatalog (xmlGetGlobalState()->xmlDefaultCatalog)
       
   440 //#define   xmlCatalogMutex  (xmlGetGlobalState()->xmlCatalogMutex)
       
   441 #   define  xmlCatalogMutex NULL
       
   442 #   define  xmlCatalogInitialized (xmlGetGlobalState()->xmlCatalogInitialized)
       
   443 #endif
       
   444 
       
   445 #ifdef LIBXML_HTML_ENABLED
       
   446 #define htmlStartCloseIndex (xmlGetGlobalState()->htmlStartCloseIndex)
       
   447 #define htmlStartCloseIndexinitialized (xmlGetGlobalState()->htmlStartCloseIndexinitialized)
       
   448 #define htmlDefaultSAXHandler (xmlGetGlobalState()->htmlDefaultSAXHandler)
       
   449 #endif
       
   450 
       
   451 #ifdef LIBXML_XPATH_ENABLED
       
   452 #   define xmlXPathNAN (xmlGetGlobalState()->xmlXPathNAN)
       
   453 #   define xmlXPathPINF (xmlGetGlobalState()->xmlXPathPINF)
       
   454 #   define xmlXPathNINF (xmlGetGlobalState()->xmlXPathNINF)
       
   455 #   define xmlXPathNZERO (xmlGetGlobalState()->xmlXPathNZERO)
       
   456 #   define xmlXPathInitialized (xmlGetGlobalState()->xmlXPathInitialized)
       
   457 #   ifndef LIBXML_THREAD_ENABLED
       
   458 #       define xmlXPathDisableOptimizer (xmlGetGlobalState()->xmlXPathDisableOptimizer)
       
   459 #   endif
       
   460 #   ifdef XMLENGINE_XPATH_FUNC_HASH_OPTIMIZED
       
   461 #       define xmlXPathDefineExtensionFunctionsGlobally (xmlGetGlobalState()->xmlXPathDefineExtensionFunctionsGlobally)
       
   462 #       define xmlXPathDefaultFunctionsHash (xmlGetGlobalState()->xmlXPathDefaultFunctionsHash)
       
   463 #       define xmlXPathIntermediaryExtensionFunctionsHash (xmlGetGlobalState()->xmlXPathIntermediaryExtensionFunctionsHash)
       
   464 #   endif
       
   465 #endif
       
   466 
       
   467 #ifdef LIBXML_XPTR_ENABLED
       
   468 #   define xlinkDefaultHandler (xmlGetGlobalState()->xlinkDefaultHandler)
       
   469 #   define xlinkDefaultDetect (xmlGetGlobalState()->xlinkDefaultDetect)
       
   470 #endif
       
   471 
       
   472 #define xmlOOM      (xmlGetGlobalState()->xmlOOM)
       
   473 #define xeUserCount (xmlGetGlobalState()->xeUserCount)
       
   474 
       
   475 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES
       
   476 #   define xmlSchemaTypesGlobals (xmlGetGlobalState()->xmlSchemaTypesGlobals)
       
   477 #   define xmlSchemaTypesInitialized (xmlGetGlobalState()->xmlSchemaTypesInitialized)
       
   478 #endif
       
   479 
       
   480 #ifdef __cplusplus
       
   481 }
       
   482 #endif
       
   483 #endif /* __XML_GLOBALS_H */
       
   484