epoc32/include/stdapis/libxml2/libxml2_globals.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/libxml2/libxml2_globals.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,557 @@
     1.4 +/*
     1.5 + * Summary: interface for all global variables of the library
     1.6 + * Description: all the global variables and thread handling for
     1.7 + *              those variables is handled by this module.
     1.8 + *
     1.9 + * The bottom of this file is automatically generated by build_glob.py
    1.10 + * based on the description file global.data
    1.11 + *
    1.12 + * Copy: See Copyright for the status of this software.
    1.13 + *
    1.14 + * Author: Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard
    1.15 + * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
    1.16 + */
    1.17 +
    1.18 +/** @file
    1.19 +@publishedAll
    1.20 +@released
    1.21 +*/
    1.22 +
    1.23 +#ifndef XML_GLOBALS_H
    1.24 +#define XML_GLOBALS_H
    1.25 +
    1.26 +#ifdef XE_ENABLE_GS_CACHING
    1.27 +/* This feature is enabled/disabled by defining/removing XE_ENABLE_GS_CACHING macro in libxml2 mmp file.
    1.28 +   When enabled, it allows to use cached GS (global state) pointer from xmlDoc and xmlParserCtxt objects
    1.29 +   in libxml2. This improves the overall performance (depending on usecase, dom parsing is improved sigificantly)
    1.30 +   since it avoids most of Dll::Tls() calls for accessing each member in GS data structure.
    1.31 +
    1.32 +   NOTE: When GS pointer caching is enabled, always ensure that GS proxy variable is initialized
    1.33 +   before first access to any GS member. We should ensure more safety in debug builds, like non initialized or NULL
    1.34 +   GS proxy variable. 
    1.35 +*/
    1.36 +#define XE_GS_PROXY_VAR             __xe_gs
    1.37 +#define DEFINE_GS_PROXY             xmlGlobalStatePtr XE_GS_PROXY_VAR;
    1.38 +#define SET_GS_PROXY(addr)          XE_GS_PROXY_VAR = addr;
    1.39 +#define DEFINE_GS_PROXY_AS(addr)    xmlGlobalStatePtr XE_GS_PROXY_VAR = addr;
    1.40 +#define ASSIGN_GS_DIRECT            XE_GS_PROXY_VAR = (xmlGlobalStatePtr)xmlGetGlobalState()
    1.41 +#define ASSIGN_GS(var)              XE_GS_PROXY_VAR = (xmlGlobalStatePtr)(var->cachedGs)
    1.42 +#define LOAD_GS_DIRECT              DEFINE_GS_PROXY_AS((xmlGlobalStatePtr)xmlGetGlobalState())
    1.43 +#define LOAD_GS(src)                DEFINE_GS_PROXY_AS((xmlGlobalStatePtr)(src->cachedGs))
    1.44 +
    1.45 +#define LOAD_GS_SAFE_CTXT(ctxt) \
    1.46 +                DEFINE_GS_PROXY \
    1.47 +                if(ctxt)    \
    1.48 +                {ASSIGN_GS(ctxt);} else {ASSIGN_GS_DIRECT;}
    1.49 +
    1.50 +#define LOAD_GS_SAFE_DOC(doc) \
    1.51 +                DEFINE_GS_PROXY \
    1.52 +                if(doc && (doc->type == XML_DOCUMENT_NODE))    \
    1.53 +                   {ASSIGN_GS(doc);} else {ASSIGN_GS_DIRECT;}
    1.54 +
    1.55 +#define LOAD_GS_SAFE_NODE(node) \
    1.56 +                DEFINE_GS_PROXY \
    1.57 +                if(node && (node->doc) && (node->doc->type == XML_DOCUMENT_NODE)) \
    1.58 +                   {ASSIGN_GS(node->doc);} else {ASSIGN_GS_DIRECT;}
    1.59 +
    1.60 +#define LOAD_GS_SAFE_DTD(dtd) \
    1.61 +                DEFINE_GS_PROXY \
    1.62 +                if(dtd && (dtd->doc) && (dtd->doc->type == XML_DOCUMENT_NODE))    \
    1.63 +                   {ASSIGN_GS(dtd->doc);} else {ASSIGN_GS_DIRECT;}
    1.64 +
    1.65 +#define LOAD_GS_SAFE_ATTR(attr) \
    1.66 +                DEFINE_GS_PROXY \
    1.67 +                if(attr && (attr->doc) && (attr->doc->type == XML_DOCUMENT_NODE))    \
    1.68 +                   {ASSIGN_GS(attr->doc);} else {ASSIGN_GS_DIRECT;}
    1.69 +
    1.70 +#define LOAD_GS_SAFE_ENT(ent) \
    1.71 +                DEFINE_GS_PROXY \
    1.72 +                if(ent && (ent->doc) && (ent->doc->type == XML_DOCUMENT_NODE))    \
    1.73 +                   {ASSIGN_GS(ent->doc);} else {ASSIGN_GS_DIRECT;}
    1.74 +
    1.75 +#define LOAD_GS_SAFE_XPATH_PARSER_CTXT(ctxtp) \
    1.76 +                DEFINE_GS_PROXY \
    1.77 +                if(ctxtp && (ctxtp->context) && (ctxtp->context->doc) && (ctxtp->context->doc->type == XML_DOCUMENT_NODE))    \
    1.78 +                   {ASSIGN_GS(ctxtp->context->doc);} else {ASSIGN_GS_DIRECT;}
    1.79 +
    1.80 +#define LOAD_GS_SAFE_XPATH_CTXT(ctx) \
    1.81 +                DEFINE_GS_PROXY \
    1.82 +                if(ctx && (ctx->doc) && (ctx->doc->type == XML_DOCUMENT_NODE))    \
    1.83 +                   {ASSIGN_GS(ctx->doc);} else {ASSIGN_GS_DIRECT;}
    1.84 +
    1.85 +#else // Feature is disabled
    1.86 +#define XE_GS_PROXY_VAR xmlGetGlobalState()
    1.87 +#define DEFINE_GS_PROXY
    1.88 +#define SET_GS_PROXY(addr)
    1.89 +#define LOAD_GS_DIRECT
    1.90 +#define LOAD_GS(src)
    1.91 +#define ASSIGN_GS_DIRECT
    1.92 +#define ASSIGN_GS(var)
    1.93 +#define LOAD_GS_SAFE_CTXT(ctxt)
    1.94 +#define LOAD_GS_SAFE_DOC(doc)
    1.95 +#define LOAD_GS_SAFE_NODE(node)
    1.96 +#define LOAD_GS_SAFE_DTD(dtd)
    1.97 +#define LOAD_GS_SAFE_ATTR(attr)
    1.98 +#define LOAD_GS_SAFE_ENT(ent)
    1.99 +#define LOAD_GS_SAFE_XPATH_PARSER_CTXT(ctxtp)
   1.100 +#define LOAD_GS_SAFE_XPATH_CTXT(ctx)
   1.101 +#endif //XE_ENABLE_GS_CACHING
   1.102 +
   1.103 +typedef struct _xmlGlobalState xmlGlobalState;
   1.104 +typedef xmlGlobalState *xmlGlobalStatePtr;
   1.105 +
   1.106 +#include <stdapis/libxml2/libxml2_xmlmemory.h>
   1.107 +#include <stdapis/libxml2/libxml2_sax.h>
   1.108 +#include <stdapis/libxml2/libxml2_sax2.h>
   1.109 +#include <stdapis/libxml2/libxml2_chvalid.h>
   1.110 +
   1.111 +#ifdef XMLENGINE_XSLT
   1.112 +#if defined(XSLT_WIN32_PERFORMANCE_COUNTER) || defined(HAVE_GETTIMEOFDAY)
   1.113 +#defined XSLT_PROFILING_ENABLED
   1.114 +#endif
   1.115 +#endif
   1.116 +
   1.117 +#ifdef __cplusplus
   1.118 +extern "C" {
   1.119 +#endif
   1.120 +
   1.121 +typedef unsigned int xmlLinAddress;
   1.122 +
   1.123 +XMLPUBFUN int  XMLCALL xmlOOMFlag();
   1.124 +
   1.125 +XMLPUBFUN void* XMLCALL malloc_impl(size_t size);
   1.126 +
   1.127 +XMLPUBFUN void* XMLCALL realloc_impl(void *ptr, size_t size);
   1.128 +
   1.129 +#ifdef LIBXML_XPATH_ENABLED
   1.130 +#   include "xmlengtriodef.h"
   1.131 +#   include "xmlengtrionan.h"
   1.132 +#   include "libxml2_xpathinternals.h"
   1.133 +#endif
   1.134 +
   1.135 +#ifdef LIBXML_CATALOG_ENABLED
   1.136 +#include "libxml/libxml2_catalog.h"
   1.137 +#endif
   1.138 +
   1.139 +
   1.140 +#ifdef XMLENGINE_XMLSCHEMA_DATATYPES
   1.141 +#include <stdapis/libxml2/libxml2_xmlschemasglobals.h>
   1.142 +#endif
   1.143 +
   1.144 +
   1.145 +typedef struct _xmlCharEncodingAlias xmlCharEncodingAlias;
   1.146 +typedef xmlCharEncodingAlias *xmlCharEncodingAliasPtr;
   1.147 +struct _xmlCharEncodingAlias {
   1.148 +    const char *name;
   1.149 +    const char *alias;
   1.150 +};
   1.151 +
   1.152 +typedef struct _xmlInputCallback {
   1.153 +    xmlInputMatchCallback matchcallback;
   1.154 +    xmlInputOpenCallback opencallback;
   1.155 +    xmlInputReadCallback readcallback;
   1.156 +    xmlInputCloseCallback closecallback;
   1.157 +} xmlInputCallback;
   1.158 +#define MAX_INPUT_CALLBACK 15
   1.159 +
   1.160 +#ifdef LIBXML_OUTPUT_ENABLED
   1.161 +typedef struct _xmlOutputCallback {
   1.162 +    xmlOutputMatchCallback matchcallback;
   1.163 +    xmlOutputOpenCallback opencallback;
   1.164 +    xmlOutputWriteCallback writecallback;
   1.165 +    xmlOutputCloseCallback closecallback;
   1.166 +} xmlOutputCallback;
   1.167 +#define MAX_OUTPUT_CALLBACK 15
   1.168 +#endif /* LIBXML_OUTPUT_ENABLED */
   1.169 +
   1.170 +#define xmlThrDefMutex NULL
   1.171 +#define xmlInitGlobals()
   1.172 +#define xmlCleanupGlobals()
   1.173 +
   1.174 +
   1.175 +/*
   1.176 + * Externally global symbols which need to be protected for backwards
   1.177 + * compatibility support.
   1.178 + */
   1.179 +
   1.180 +#undef  docbDefaultSAXHandler
   1.181 +#undef  htmlDefaultSAXHandler
   1.182 +#undef  xmlBufferAllocScheme
   1.183 +#undef  xmlDefaultBufferSize
   1.184 +#undef  xmlDefaultSAXHandler
   1.185 +#undef  xmlDefaultSAXLocator
   1.186 +#undef  xmlDoValidityCheckingDefaultValue
   1.187 +#undef  xmlFree
   1.188 +#undef  xmlGenericError
   1.189 +#undef  xmlStructuredError
   1.190 +#undef  xmlGenericErrorContext
   1.191 +#undef  xmlGetWarningsDefaultValue
   1.192 +#undef  xmlIndentTreeOutput
   1.193 +#undef  xmlTreeIndentString
   1.194 +#undef  xmlKeepBlanksDefaultValue
   1.195 +#undef  xmlLineNumbersDefaultValue
   1.196 +#undef  xmlLoadExtDtdDefaultValue
   1.197 +#undef  xmlMalloc
   1.198 +#undef  xmlMallocAtomic
   1.199 +#undef  xmlMemStrdup
   1.200 +#undef  xmlParserDebugEntities
   1.201 +#undef  xmlPedanticParserDefaultValue
   1.202 +#undef  xmlRealloc
   1.203 +#undef  xmlSaveNoEmptyTags
   1.204 +#undef  xmlSubstituteEntitiesDefaultValue
   1.205 +#undef  xmlRegisterNodeDefaultValue
   1.206 +#undef  xmlDeregisterNodeDefaultValue
   1.207 +#undef  xmlLastError
   1.208 +#undef  xmlOOM
   1.209 +#undef  xeUserCount
   1.210 +
   1.211 +#undef  htmlStartCloseIndex
   1.212 +#undef  htmlStartCloseIndexinitialized
   1.213 +
   1.214 +/* XMLENGINE_XSLT
   1.215 +#undef g_calibration
   1.216 +#undef default_token
   1.217 +#undef xsltExtensionsHash
   1.218 +#undef xsltFunctionsHash
   1.219 +#undef xsltElementsHash
   1.220 +#undef xsltTopLevelsHash
   1.221 +#undef xsltDebuggerCurrentCallbacks
   1.222 +*/
   1.223 +#undef xsltGlobalsCleanupFunc
   1.224 +
   1.225 +typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node);
   1.226 +typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node);
   1.227 +
   1.228 +
   1.229 +struct _xmlGlobalState
   1.230 +{
   1.231 +    // NOTE: structure fields were reordered comparatively to the original libxml2 source
   1.232 +    //       Most used fields should be in the first 256 bytes of the structure (64 fields)
   1.233 +    //       because on ARM an extra operation is needed for addressing the fields with
   1.234 +    //       larger offset.
   1.235 +    //  Doing this has made size of the DLL 4 KB smaller ! (and faster!)
   1.236 +
   1.237 +    int xmlOOM;
   1.238 +    int xeUserCount;
   1.239 +    xmlError xmlLastError;
   1.240 +
   1.241 +    DOMStringConverterData xeStringArgs;
   1.242 +
   1.243 +    /* Memory */
   1.244 +/* Not used in Symbian: xmlMalloc is malloc_impl(), xmlFree is standard free() now
   1.245 +    xmlFreeFunc xmlFreeFn;
   1.246 +    xmlMallocFunc xmlMallocFn;
   1.247 +    xmlStrdupFunc xmlMemStrdupFn;
   1.248 +    xmlReallocFunc xmlReallocFn;
   1.249 +    xmlMallocFunc xmlMallocAtomicFn;
   1.250 +*/
   1.251 +
   1.252 +    xmlGenericErrorFunc xmlGenericError;
   1.253 +    xmlStructuredErrorFunc xmlStructuredError;
   1.254 +    void *xmlGenericErrorContext;
   1.255 +
   1.256 +    /* Deafault settings and configuration values */
   1.257 +    xmlBufferAllocationScheme xmlBufferAllocScheme;
   1.258 +    int xmlDefaultBufferSize;
   1.259 +    int xmlSubstituteEntitiesDefaultValue;
   1.260 +    int xmlDoValidityCheckingDefaultValue;
   1.261 +    int xmlGetWarningsDefaultValue;
   1.262 +    int xmlKeepBlanksDefaultValue;
   1.263 +    int xmlLoadExtDtdDefaultValue;
   1.264 +    int xmlParserDebugEntities;
   1.265 +    int xmlPedanticParserDefaultValue;
   1.266 +#ifdef LIBXML_ENABLE_NODE_LINEINFO
   1.267 +    int xmlLineNumbersDefaultValue;
   1.268 +#endif // LIBXML_ENABLE_NODE_LINEINFO
   1.269 +    int xmlSaveNoEmptyTags;
   1.270 +    int xmlIndentTreeOutput;
   1.271 +    //const
   1.272 +    char *xmlTreeIndentString; 
   1.273 +    xmlExternalEntityLoader xmlCurrentExternalEntityLoader;
   1.274 +
   1.275 +    xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
   1.276 +    xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
   1.277 +
   1.278 +    /* parser */
   1.279 +    unsigned int xmlParserMaxDepth;
   1.280 +
   1.281 +    int __xmlRegisterCallbacks;
   1.282 +    int xmlCompressMode;
   1.283 +    int xmlCheckDTD;
   1.284 +
   1.285 +    /* xpath */
   1.286 +    double xmlXPathNAN;
   1.287 +    double xmlXPathPINF;
   1.288 +    double xmlXPathNINF;
   1.289 +    double xmlXPathNZERO;
   1.290 +    int xmlXPathInitialized;
   1.291 +#ifndef LIBXML_THREAD_ENABLED
   1.292 +    int xmlXPathDisableOptimizer;
   1.293 +#endif
   1.294 +    int xmlXPathDefineExtensionFunctionsGlobally;
   1.295 +    xmlHashTablePtr xmlXPathDefaultFunctionsHash;
   1.296 +    xmlHashTablePtr xmlXPathIntermediaryExtensionFunctionsHash;
   1.297 +
   1.298 +    /* encoding */
   1.299 +    xmlCharEncodingHandlerPtr   xmlUTF16LEHandler;
   1.300 +    xmlCharEncodingHandlerPtr   xmlUTF16BEHandler;
   1.301 +    xmlCharEncodingAliasPtr     xmlCharEncodingAliases;
   1.302 +    int     xmlCharEncodingAliasesNb;
   1.303 +    int     xmlCharEncodingAliasesMax;
   1.304 +    int     xmlLittleEndian;
   1.305 +
   1.306 +    xmlCharEncodingHandlerPtr *handlers;
   1.307 +    int     nbCharEncodingHandler;
   1.308 +    xmlCharEncodingHandlerPtr xmlDefaultCharEncodingHandler;
   1.309 +
   1.310 +    /* error */
   1.311 +    int had_info; /* internal */
   1.312 +
   1.313 +    /* parserInternals */
   1.314 +    int xmlInputStreamId; /* internal: renamed from "id" to prevent namespace collisions */
   1.315 +
   1.316 +    /* parser */
   1.317 +    const char *xmlW3CPIs [2];
   1.318 +    int xmlParserInitialized;
   1.319 +    unsigned int xeStackLimit;
   1.320 +
   1.321 +    /* SAX2 */
   1.322 +    int xmlSAX2DefaultVersionValue;
   1.323 +
   1.324 +    /* xmlio */
   1.325 +    xmlInputCallback xmlInputCallbackTable[MAX_INPUT_CALLBACK];
   1.326 +    int xmlInputCallbackNr;
   1.327 +    int xmlInputCallbackInitialized;
   1.328 +#ifdef LIBXML_OUTPUT_ENABLED
   1.329 +    xmlOutputCallback xmlOutputCallbackTable[MAX_OUTPUT_CALLBACK];
   1.330 +    int xmlOutputCallbackNr;
   1.331 +    int xmlOutputCallbackInitialized;
   1.332 +#endif /* LIBXML_OUTPUT_ENABLED */
   1.333 +
   1.334 +#ifdef LIBXML_HTML_ENABLED
   1.335 +    /*HTML parser*/
   1.336 +    const char** htmlStartCloseIndex[100];
   1.337 +    int htmlStartCloseIndexinitialized;
   1.338 +#endif
   1.339 +
   1.340 +
   1.341 +    /* SAX: old SAX1, and others */
   1.342 +    xmlSAXLocator   xmlDefaultSAXLocator;
   1.343 +    xmlSAXHandlerV1 xmlDefaultSAXHandler;
   1.344 +    xmlSAXHandlerV1 docbDefaultSAXHandler;
   1.345 +    xmlSAXHandlerV1 htmlDefaultSAXHandler;
   1.346 +
   1.347 +#ifdef LIBXML_XPTR_ENABLED
   1.348 +    xlinkHandlerPtr xlinkDefaultHandler;
   1.349 +    xlinkNodeDetectFunc xlinkDefaultDetect;
   1.350 +#endif /* LIBXML_XPTR_ENABLED */
   1.351 +
   1.352 +#ifdef XMLENGINE_XMLSCHEMA_DATATYPES
   1.353 +    xmlSchemaTypesGlobalDataPtr xmlSchemaTypesGlobals;
   1.354 +    int xmlSchemaTypesInitialized;
   1.355 +#endif
   1.356 +
   1.357 +#ifdef XMLENGINE_XSLT
   1.358 +#ifdef XSLT_PROFILING_ENABLED
   1.359 +    long g_calibration; // DONE: renamed from 'calibration'
   1.360 +#endif
   1.361 +    void*           xsltGlobalsCleanupFunc;
   1.362 +    xmlHashTablePtr xsltTopLevelsHash;
   1.363 +#ifdef XSLT_EXTENSION
   1.364 +    xmlHashTablePtr xsltExtensionsHash;
   1.365 +    xmlHashTablePtr xsltFunctionsHash;
   1.366 +    xmlHashTablePtr xsltElementsHash;
   1.367 +    //xsltFormatToken default_token;
   1.368 +#endif
   1.369 +
   1.370 +#ifdef XSLT_DEBUG_CALLBACK
   1.371 +    xsltDebuggerCallbacks xsltDebuggerCurrentCallbacks;
   1.372 +#endif
   1.373 +#endif /*end of XMLENGINE_XSLT*/
   1.374 +
   1.375 +#ifdef LIBXML_CATALOG_ENABLED
   1.376 +    int xmlDebugCatalogs;
   1.377 +    xmlCatalogAllow xmlCatalogDefaultAllow;
   1.378 +    xmlCatalogPrefer xmlCatalogDefaultPrefer;
   1.379 +    xmlHashTablePtr xmlCatalogXMLFiles;
   1.380 +    xmlCatalogPtr xmlDefaultCatalog;
   1.381 +//  xmlRMutexPtr xmlCatalogMutex;
   1.382 +    int xmlCatalogInitialized;
   1.383 +#endif
   1.384 +
   1.385 +    /* xmlmemory */
   1.386 +    int xmlMemInitialized;
   1.387 +    unsigned long  debugMemSize;
   1.388 +    unsigned long  debugMaxMemSize;
   1.389 +//  xmlMutexPtr xmlMemMutex;
   1.390 +    unsigned int g_block;
   1.391 +    unsigned int xmlMemStopAtBlock;
   1.392 +    void *xmlMemTraceBlockAt;
   1.393 +
   1.394 +#ifdef XMLENGINE_MEM_DEBUG
   1.395 +    int allocCount;
   1.396 +    int reallocCount;
   1.397 +    int deallocCount;
   1.398 +    int allocTotal;
   1.399 +    int deallocTotal;
   1.400 +    void* memSizeFunc;
   1.401 +    int allocMemSize;
   1.402 +    int allocMemSizeMax;
   1.403 +#endif
   1.404 +
   1.405 +    int reserved;
   1.406 +}; // end of struct _xmlGlobalState
   1.407 +
   1.408 +#ifdef XMLENGINE_MEM_DEBUG
   1.409 +typedef void (*MemSizeFunc)(void*, void*, void*);
   1.410 +#endif
   1.411 +
   1.412 +#ifdef __cplusplus
   1.413 +}
   1.414 +#endif
   1.415 +
   1.416 +#include <stdapis/libxml2/libxml2_threads.h>
   1.417 +
   1.418 +#ifdef __cplusplus
   1.419 +extern "C" {
   1.420 +#endif
   1.421 +#ifndef UNDEF_IMPORT_C_IN_DATA
   1.422 +XMLPUBVAR const char* const xmlTreeIndentString;
   1.423 +XMLPUBVAR const char* const xmlParserVersion;
   1.424 +#endif
   1.425 +
   1.426 +XMLPUBFUN void                  XMLCALL xmlInitializeGlobalState(xmlGlobalStatePtr gs);
   1.427 +XMLPUBFUN xmlRegisterNodeFunc   XMLCALL xmlRegisterNodeDefault  (xmlRegisterNodeFunc func);
   1.428 +XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func);
   1.429 +
   1.430 +// NOTE: We can actually use fixed values for memory allocation routines!
   1.431 +
   1.432 +// Boost the performance! This has saved 2 KB of the code and made it faster
   1.433 +#define xmlFree         free
   1.434 +#define xmlMalloc       malloc_impl
   1.435 +#define xmlMallocAtomic malloc_impl
   1.436 +#define xmlRealloc      realloc_impl
   1.437 +#define xmlMemStrdup(p) ((char*)xmlStrdup((const xmlChar*)(p)))
   1.438 +
   1.439 +#define xmlLastError (XE_GS_PROXY_VAR->xmlLastError)
   1.440 +#define xmlBufferAllocScheme (XE_GS_PROXY_VAR->xmlBufferAllocScheme)
   1.441 +#define xmlDefaultBufferSize (XE_GS_PROXY_VAR->xmlDefaultBufferSize)
   1.442 +
   1.443 +#ifdef LIBXML_SAX1_ENABLED
   1.444 +#define xmlDefaultSAXHandler (XE_GS_PROXY_VAR->xmlDefaultSAXHandler)
   1.445 +#endif /* LIBXML_SAX1_ENABLED */
   1.446 +
   1.447 +#define xmlDefaultSAXLocator (XE_GS_PROXY_VAR->xmlDefaultSAXLocator)
   1.448 +
   1.449 +#define xmlDoValidityCheckingDefaultValue (XE_GS_PROXY_VAR->xmlDoValidityCheckingDefaultValue)
   1.450 +#define xmlGenericError (xmlGetGlobalState()->xmlGenericError)
   1.451 +#define xmlStructuredError (XE_GS_PROXY_VAR->xmlStructuredError)
   1.452 +#define xmlGenericErrorContext (xmlGetGlobalState()->xmlGenericErrorContext)
   1.453 +#define xmlGetWarningsDefaultValue (XE_GS_PROXY_VAR->xmlGetWarningsDefaultValue)
   1.454 +#define xmlIndentTreeOutput (XE_GS_PROXY_VAR->xmlIndentTreeOutput)
   1.455 +#define xmlKeepBlanksDefaultValue (XE_GS_PROXY_VAR->xmlKeepBlanksDefaultValue)
   1.456 +#define xmlLineNumbersDefaultValue (XE_GS_PROXY_VAR->xmlLineNumbersDefaultValue)
   1.457 +#define xmlLoadExtDtdDefaultValue (XE_GS_PROXY_VAR->xmlLoadExtDtdDefaultValue)
   1.458 +#define xmlParserDebugEntities (XE_GS_PROXY_VAR->xmlParserDebugEntities)
   1.459 +#define xmlPedanticParserDefaultValue (XE_GS_PROXY_VAR->xmlPedanticParserDefaultValue)
   1.460 +#define xmlSaveNoEmptyTags (XE_GS_PROXY_VAR->xmlSaveNoEmptyTags)
   1.461 +#define xmlSubstituteEntitiesDefaultValue (XE_GS_PROXY_VAR->xmlSubstituteEntitiesDefaultValue)
   1.462 +#define xmlRegisterNodeDefaultValue (XE_GS_PROXY_VAR->xmlRegisterNodeDefaultValue)
   1.463 +#define xmlDeregisterNodeDefaultValue (XE_GS_PROXY_VAR->xmlDeregisterNodeDefaultValue)
   1.464 +
   1.465 +/* Static Globals */
   1.466 +#define xmlLibraryLock NULL
   1.467 +
   1.468 +#define had_info (XE_GS_PROXY_VAR->had_info)
   1.469 +#define xmlInputStreamId (XE_GS_PROXY_VAR->xmlInputStreamId)
   1.470 +
   1.471 +#define xmlUTF16LEHandler (XE_GS_PROXY_VAR->xmlUTF16LEHandler)
   1.472 +#define xmlUTF16BEHandler (XE_GS_PROXY_VAR->xmlUTF16BEHandler)
   1.473 +#define xmlCharEncodingAliases (XE_GS_PROXY_VAR->xmlCharEncodingAliases)
   1.474 +#define xmlCharEncodingAliasesNb (XE_GS_PROXY_VAR->xmlCharEncodingAliasesNb)
   1.475 +#define xmlCharEncodingAliasesMax (XE_GS_PROXY_VAR->xmlCharEncodingAliasesMax)
   1.476 +#define xmlLittleEndian (XE_GS_PROXY_VAR->xmlLittleEndian)
   1.477 +#define handlers (XE_GS_PROXY_VAR->handlers)
   1.478 +#define nbCharEncodingHandler (XE_GS_PROXY_VAR->nbCharEncodingHandler)
   1.479 +#define xmlDefaultCharEncodingHandler (XE_GS_PROXY_VAR->xmlDefaultCharEncodingHandler)
   1.480 +
   1.481 +#define xmlParserMaxDepth (XE_GS_PROXY_VAR->xmlParserMaxDepth)
   1.482 +#define xmlW3CPIs (XE_GS_PROXY_VAR->xmlW3CPIs)
   1.483 +#define xmlParserInitialized (XE_GS_PROXY_VAR->xmlParserInitialized)
   1.484 +#define xeStackLimit (XE_GS_PROXY_VAR->xeStackLimit)
   1.485 +
   1.486 +#define xmlSAX2DefaultVersionValue (XE_GS_PROXY_VAR->xmlSAX2DefaultVersionValue)
   1.487 +
   1.488 +#define xmlInputCallbackTable (XE_GS_PROXY_VAR->xmlInputCallbackTable)
   1.489 +#define xmlInputCallbackNr (XE_GS_PROXY_VAR->xmlInputCallbackNr)
   1.490 +#define xmlInputCallbackInitialized (XE_GS_PROXY_VAR->xmlInputCallbackInitialized)
   1.491 +#define xmlOutputCallbackTable (XE_GS_PROXY_VAR->xmlOutputCallbackTable)
   1.492 +#define xmlOutputCallbackNr (XE_GS_PROXY_VAR->xmlOutputCallbackNr)
   1.493 +#define xmlOutputCallbackInitialized (XE_GS_PROXY_VAR->xmlOutputCallbackInitialized)
   1.494 +#define xmlCurrentExternalEntityLoader (XE_GS_PROXY_VAR->xmlCurrentExternalEntityLoader)
   1.495 +
   1.496 +#define xmlMemInitialized (XE_GS_PROXY_VAR->xmlMemInitialized)
   1.497 +#define debugMemSize (XE_GS_PROXY_VAR->debugMemSize)
   1.498 +#define debugMaxMemSize (XE_GS_PROXY_VAR->debugMaxMemSize)
   1.499 +#define xmlMemMutex NULL
   1.500 +#define g_block (XE_GS_PROXY_VAR->g_block)
   1.501 +#define xmlMemStopAtBlock (XE_GS_PROXY_VAR->xmlMemStopAtBlock)
   1.502 +#define xmlMemTraceBlockAt (XE_GS_PROXY_VAR->xmlMemTraceBlockAt)
   1.503 +
   1.504 +#define __xmlRegisterCallbacks (XE_GS_PROXY_VAR->__xmlRegisterCallbacks)
   1.505 +
   1.506 +#ifdef LIBXML_TREE_ENABLED
   1.507 +#   define xmlCompressMode (XE_GS_PROXY_VAR->xmlCompressMode)
   1.508 +#   define xmlCheckDTD (XE_GS_PROXY_VAR->xmlCheckDTD)
   1.509 +#endif
   1.510 +
   1.511 +#ifdef LIBXML_CATALOG_ENABLED
   1.512 +#   define xmlDebugCatalogs (XE_GS_PROXY_VAR->xmlDebugCatalogs)
   1.513 +#   define  xmlCatalogDefaultAllow (XE_GS_PROXY_VAR->xmlCatalogDefaultAllow)
   1.514 +#   define xmlCatalogDefaultPrefer (XE_GS_PROXY_VAR->xmlCatalogDefaultPrefer)
   1.515 +#   define  xmlCatalogXMLFiles (XE_GS_PROXY_VAR->xmlCatalogXMLFiles)
   1.516 +#   define  xmlDefaultCatalog (XE_GS_PROXY_VAR->xmlDefaultCatalog)
   1.517 +#   define  xmlCatalogMutex NULL
   1.518 +#   define  xmlCatalogInitialized (XE_GS_PROXY_VAR->xmlCatalogInitialized)
   1.519 +#endif
   1.520 +
   1.521 +#ifdef LIBXML_HTML_ENABLED
   1.522 +#   define htmlStartCloseIndex (XE_GS_PROXY_VAR->htmlStartCloseIndex)
   1.523 +#   define htmlStartCloseIndexinitialized (XE_GS_PROXY_VAR->htmlStartCloseIndexinitialized)
   1.524 +#   define htmlDefaultSAXHandler (XE_GS_PROXY_VAR->htmlDefaultSAXHandler)
   1.525 +#endif
   1.526 +
   1.527 +#ifdef LIBXML_XPATH_ENABLED
   1.528 +#   define xmlXPathNAN (XE_GS_PROXY_VAR->xmlXPathNAN)
   1.529 +#   define xmlXPathPINF (XE_GS_PROXY_VAR->xmlXPathPINF)
   1.530 +#   define xmlXPathNINF (XE_GS_PROXY_VAR->xmlXPathNINF)
   1.531 +#   define xmlXPathNZERO (XE_GS_PROXY_VAR->xmlXPathNZERO)
   1.532 +#   define xmlXPathInitialized (XE_GS_PROXY_VAR->xmlXPathInitialized)
   1.533 +#   define xmlXPathDefineExtensionFunctionsGlobally (XE_GS_PROXY_VAR->xmlXPathDefineExtensionFunctionsGlobally)
   1.534 +#   define xmlXPathDefaultFunctionsHash (XE_GS_PROXY_VAR->xmlXPathDefaultFunctionsHash)
   1.535 +#   define xmlXPathIntermediaryExtensionFunctionsHash (XE_GS_PROXY_VAR->xmlXPathIntermediaryExtensionFunctionsHash)
   1.536 +#   ifndef LIBXML_THREAD_ENABLED
   1.537 +#       define xmlXPathDisableOptimizer (XE_GS_PROXY_VAR->xmlXPathDisableOptimizer)
   1.538 +#   endif
   1.539 +#endif
   1.540 +
   1.541 +#ifdef LIBXML_XPTR_ENABLED
   1.542 +#   define xlinkDefaultHandler (XE_GS_PROXY_VAR->xlinkDefaultHandler)
   1.543 +#   define xlinkDefaultDetect (XE_GS_PROXY_VAR->xlinkDefaultDetect)
   1.544 +#endif
   1.545 +
   1.546 +#define xsltGlobalsCleanupFunc (XE_GS_PROXY_VAR->xsltGlobalsCleanupFunc)
   1.547 +
   1.548 +#define xmlOOM      (XE_GS_PROXY_VAR->xmlOOM)
   1.549 +#define xeUserCount (XE_GS_PROXY_VAR->xeUserCount)
   1.550 +
   1.551 +#ifdef XMLENGINE_XMLSCHEMA_DATATYPES
   1.552 +#   define xmlSchemaTypesGlobals (XE_GS_PROXY_VAR->xmlSchemaTypesGlobals)
   1.553 +#   define xmlSchemaTypesInitialized (XE_GS_PROXY_VAR->xmlSchemaTypesInitialized)
   1.554 +#endif
   1.555 +
   1.556 +#ifdef __cplusplus
   1.557 +}
   1.558 +#endif
   1.559 +
   1.560 +#endif /* XML_GLOBALS_H */