|
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 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
13 */ |
|
14 |
|
15 /** @file |
|
16 @publishedAll |
|
17 @released |
|
18 */ |
|
19 |
|
20 #ifndef XML_GLOBALS_H |
|
21 #define XML_GLOBALS_H |
|
22 |
|
23 #ifdef XE_ENABLE_GS_CACHING |
|
24 /* This feature is enabled/disabled by defining/removing XE_ENABLE_GS_CACHING macro in libxml2 mmp file. |
|
25 When enabled, it allows to use cached GS (global state) pointer from xmlDoc and xmlParserCtxt objects |
|
26 in libxml2. This improves the overall performance (depending on usecase, dom parsing is improved sigificantly) |
|
27 since it avoids most of Dll::Tls() calls for accessing each member in GS data structure. |
|
28 |
|
29 NOTE: When GS pointer caching is enabled, always ensure that GS proxy variable is initialized |
|
30 before first access to any GS member. We should ensure more safety in debug builds, like non initialized or NULL |
|
31 GS proxy variable. |
|
32 */ |
|
33 #define XE_GS_PROXY_VAR __xe_gs |
|
34 #define DEFINE_GS_PROXY xmlGlobalStatePtr XE_GS_PROXY_VAR; |
|
35 #define SET_GS_PROXY(addr) XE_GS_PROXY_VAR = addr; |
|
36 #define DEFINE_GS_PROXY_AS(addr) xmlGlobalStatePtr XE_GS_PROXY_VAR = addr; |
|
37 #define ASSIGN_GS_DIRECT XE_GS_PROXY_VAR = (xmlGlobalStatePtr)xmlGetGlobalState() |
|
38 #define ASSIGN_GS(var) XE_GS_PROXY_VAR = (xmlGlobalStatePtr)(var->cachedGs) |
|
39 #define LOAD_GS_DIRECT DEFINE_GS_PROXY_AS((xmlGlobalStatePtr)xmlGetGlobalState()) |
|
40 #define LOAD_GS(src) DEFINE_GS_PROXY_AS((xmlGlobalStatePtr)(src->cachedGs)) |
|
41 |
|
42 #define LOAD_GS_SAFE_CTXT(ctxt) \ |
|
43 DEFINE_GS_PROXY \ |
|
44 if(ctxt) \ |
|
45 {ASSIGN_GS(ctxt);} else {ASSIGN_GS_DIRECT;} |
|
46 |
|
47 #define LOAD_GS_SAFE_DOC(doc) \ |
|
48 DEFINE_GS_PROXY \ |
|
49 if(doc && (doc->type == XML_DOCUMENT_NODE)) \ |
|
50 {ASSIGN_GS(doc);} else {ASSIGN_GS_DIRECT;} |
|
51 |
|
52 #define LOAD_GS_SAFE_NODE(node) \ |
|
53 DEFINE_GS_PROXY \ |
|
54 if(node && (node->doc) && (node->doc->type == XML_DOCUMENT_NODE)) \ |
|
55 {ASSIGN_GS(node->doc);} else {ASSIGN_GS_DIRECT;} |
|
56 |
|
57 #define LOAD_GS_SAFE_DTD(dtd) \ |
|
58 DEFINE_GS_PROXY \ |
|
59 if(dtd && (dtd->doc) && (dtd->doc->type == XML_DOCUMENT_NODE)) \ |
|
60 {ASSIGN_GS(dtd->doc);} else {ASSIGN_GS_DIRECT;} |
|
61 |
|
62 #define LOAD_GS_SAFE_ATTR(attr) \ |
|
63 DEFINE_GS_PROXY \ |
|
64 if(attr && (attr->doc) && (attr->doc->type == XML_DOCUMENT_NODE)) \ |
|
65 {ASSIGN_GS(attr->doc);} else {ASSIGN_GS_DIRECT;} |
|
66 |
|
67 #define LOAD_GS_SAFE_ENT(ent) \ |
|
68 DEFINE_GS_PROXY \ |
|
69 if(ent && (ent->doc) && (ent->doc->type == XML_DOCUMENT_NODE)) \ |
|
70 {ASSIGN_GS(ent->doc);} else {ASSIGN_GS_DIRECT;} |
|
71 |
|
72 #define LOAD_GS_SAFE_XPATH_PARSER_CTXT(ctxtp) \ |
|
73 DEFINE_GS_PROXY \ |
|
74 if(ctxtp && (ctxtp->context) && (ctxtp->context->doc) && (ctxtp->context->doc->type == XML_DOCUMENT_NODE)) \ |
|
75 {ASSIGN_GS(ctxtp->context->doc);} else {ASSIGN_GS_DIRECT;} |
|
76 |
|
77 #define LOAD_GS_SAFE_XPATH_CTXT(ctx) \ |
|
78 DEFINE_GS_PROXY \ |
|
79 if(ctx && (ctx->doc) && (ctx->doc->type == XML_DOCUMENT_NODE)) \ |
|
80 {ASSIGN_GS(ctx->doc);} else {ASSIGN_GS_DIRECT;} |
|
81 |
|
82 #else // Feature is disabled |
|
83 #define XE_GS_PROXY_VAR xmlGetGlobalState() |
|
84 #define DEFINE_GS_PROXY |
|
85 #define SET_GS_PROXY(addr) |
|
86 #define LOAD_GS_DIRECT |
|
87 #define LOAD_GS(src) |
|
88 #define ASSIGN_GS_DIRECT |
|
89 #define ASSIGN_GS(var) |
|
90 #define LOAD_GS_SAFE_CTXT(ctxt) |
|
91 #define LOAD_GS_SAFE_DOC(doc) |
|
92 #define LOAD_GS_SAFE_NODE(node) |
|
93 #define LOAD_GS_SAFE_DTD(dtd) |
|
94 #define LOAD_GS_SAFE_ATTR(attr) |
|
95 #define LOAD_GS_SAFE_ENT(ent) |
|
96 #define LOAD_GS_SAFE_XPATH_PARSER_CTXT(ctxtp) |
|
97 #define LOAD_GS_SAFE_XPATH_CTXT(ctx) |
|
98 #endif //XE_ENABLE_GS_CACHING |
|
99 |
|
100 typedef struct _xmlGlobalState xmlGlobalState; |
|
101 typedef xmlGlobalState *xmlGlobalStatePtr; |
|
102 |
|
103 #include <stdapis/libxml2/libxml2_xmlmemory.h> |
|
104 #include <stdapis/libxml2/libxml2_sax.h> |
|
105 #include <stdapis/libxml2/libxml2_sax2.h> |
|
106 #include <stdapis/libxml2/libxml2_chvalid.h> |
|
107 |
|
108 #ifdef XMLENGINE_XSLT |
|
109 #if defined(XSLT_WIN32_PERFORMANCE_COUNTER) || defined(HAVE_GETTIMEOFDAY) |
|
110 #defined XSLT_PROFILING_ENABLED |
|
111 #endif |
|
112 #endif |
|
113 |
|
114 #ifdef __cplusplus |
|
115 extern "C" { |
|
116 #endif |
|
117 |
|
118 typedef unsigned int xmlLinAddress; |
|
119 |
|
120 XMLPUBFUN int XMLCALL xmlOOMFlag(); |
|
121 |
|
122 XMLPUBFUN void* XMLCALL malloc_impl(size_t size); |
|
123 |
|
124 XMLPUBFUN void* XMLCALL realloc_impl(void *ptr, size_t size); |
|
125 |
|
126 #ifdef LIBXML_XPATH_ENABLED |
|
127 # include "xmlengtriodef.h" |
|
128 # include "xmlengtrionan.h" |
|
129 # include "libxml2_xpathinternals.h" |
|
130 #endif |
|
131 |
|
132 #ifdef LIBXML_CATALOG_ENABLED |
|
133 #include "libxml/libxml2_catalog.h" |
|
134 #endif |
|
135 |
|
136 |
|
137 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES |
|
138 #include <stdapis/libxml2/libxml2_xmlschemasglobals.h> |
|
139 #endif |
|
140 |
|
141 |
|
142 typedef struct _xmlCharEncodingAlias xmlCharEncodingAlias; |
|
143 typedef xmlCharEncodingAlias *xmlCharEncodingAliasPtr; |
|
144 struct _xmlCharEncodingAlias { |
|
145 const char *name; |
|
146 const char *alias; |
|
147 }; |
|
148 |
|
149 typedef struct _xmlInputCallback { |
|
150 xmlInputMatchCallback matchcallback; |
|
151 xmlInputOpenCallback opencallback; |
|
152 xmlInputReadCallback readcallback; |
|
153 xmlInputCloseCallback closecallback; |
|
154 } xmlInputCallback; |
|
155 #define MAX_INPUT_CALLBACK 15 |
|
156 |
|
157 #ifdef LIBXML_OUTPUT_ENABLED |
|
158 typedef struct _xmlOutputCallback { |
|
159 xmlOutputMatchCallback matchcallback; |
|
160 xmlOutputOpenCallback opencallback; |
|
161 xmlOutputWriteCallback writecallback; |
|
162 xmlOutputCloseCallback closecallback; |
|
163 } xmlOutputCallback; |
|
164 #define MAX_OUTPUT_CALLBACK 15 |
|
165 #endif /* LIBXML_OUTPUT_ENABLED */ |
|
166 |
|
167 #define xmlThrDefMutex NULL |
|
168 #define xmlInitGlobals() |
|
169 #define xmlCleanupGlobals() |
|
170 |
|
171 |
|
172 /* |
|
173 * Externally global symbols which need to be protected for backwards |
|
174 * compatibility support. |
|
175 */ |
|
176 |
|
177 #undef docbDefaultSAXHandler |
|
178 #undef htmlDefaultSAXHandler |
|
179 #undef xmlBufferAllocScheme |
|
180 #undef xmlDefaultBufferSize |
|
181 #undef xmlDefaultSAXHandler |
|
182 #undef xmlDefaultSAXLocator |
|
183 #undef xmlDoValidityCheckingDefaultValue |
|
184 #undef xmlFree |
|
185 #undef xmlGenericError |
|
186 #undef xmlStructuredError |
|
187 #undef xmlGenericErrorContext |
|
188 #undef xmlGetWarningsDefaultValue |
|
189 #undef xmlIndentTreeOutput |
|
190 #undef xmlTreeIndentString |
|
191 #undef xmlKeepBlanksDefaultValue |
|
192 #undef xmlLineNumbersDefaultValue |
|
193 #undef xmlLoadExtDtdDefaultValue |
|
194 #undef xmlMalloc |
|
195 #undef xmlMallocAtomic |
|
196 #undef xmlMemStrdup |
|
197 #undef xmlParserDebugEntities |
|
198 #undef xmlPedanticParserDefaultValue |
|
199 #undef xmlRealloc |
|
200 #undef xmlSaveNoEmptyTags |
|
201 #undef xmlSubstituteEntitiesDefaultValue |
|
202 #undef xmlRegisterNodeDefaultValue |
|
203 #undef xmlDeregisterNodeDefaultValue |
|
204 #undef xmlLastError |
|
205 #undef xmlOOM |
|
206 #undef xeUserCount |
|
207 |
|
208 #undef htmlStartCloseIndex |
|
209 #undef htmlStartCloseIndexinitialized |
|
210 |
|
211 /* XMLENGINE_XSLT |
|
212 #undef g_calibration |
|
213 #undef default_token |
|
214 #undef xsltExtensionsHash |
|
215 #undef xsltFunctionsHash |
|
216 #undef xsltElementsHash |
|
217 #undef xsltTopLevelsHash |
|
218 #undef xsltDebuggerCurrentCallbacks |
|
219 */ |
|
220 #undef xsltGlobalsCleanupFunc |
|
221 |
|
222 typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node); |
|
223 typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node); |
|
224 |
|
225 |
|
226 struct _xmlGlobalState |
|
227 { |
|
228 // NOTE: structure fields were reordered comparatively to the original libxml2 source |
|
229 // Most used fields should be in the first 256 bytes of the structure (64 fields) |
|
230 // because on ARM an extra operation is needed for addressing the fields with |
|
231 // larger offset. |
|
232 // Doing this has made size of the DLL 4 KB smaller ! (and faster!) |
|
233 |
|
234 int xmlOOM; |
|
235 int xeUserCount; |
|
236 xmlError xmlLastError; |
|
237 |
|
238 DOMStringConverterData xeStringArgs; |
|
239 |
|
240 /* Memory */ |
|
241 /* Not used in Symbian: xmlMalloc is malloc_impl(), xmlFree is standard free() now |
|
242 xmlFreeFunc xmlFreeFn; |
|
243 xmlMallocFunc xmlMallocFn; |
|
244 xmlStrdupFunc xmlMemStrdupFn; |
|
245 xmlReallocFunc xmlReallocFn; |
|
246 xmlMallocFunc xmlMallocAtomicFn; |
|
247 */ |
|
248 |
|
249 xmlGenericErrorFunc xmlGenericError; |
|
250 xmlStructuredErrorFunc xmlStructuredError; |
|
251 void *xmlGenericErrorContext; |
|
252 |
|
253 /* Deafault settings and configuration values */ |
|
254 xmlBufferAllocationScheme xmlBufferAllocScheme; |
|
255 int xmlDefaultBufferSize; |
|
256 int xmlSubstituteEntitiesDefaultValue; |
|
257 int xmlDoValidityCheckingDefaultValue; |
|
258 int xmlGetWarningsDefaultValue; |
|
259 int xmlKeepBlanksDefaultValue; |
|
260 int xmlLoadExtDtdDefaultValue; |
|
261 int xmlParserDebugEntities; |
|
262 int xmlPedanticParserDefaultValue; |
|
263 #ifdef LIBXML_ENABLE_NODE_LINEINFO |
|
264 int xmlLineNumbersDefaultValue; |
|
265 #endif // LIBXML_ENABLE_NODE_LINEINFO |
|
266 int xmlSaveNoEmptyTags; |
|
267 int xmlIndentTreeOutput; |
|
268 //const |
|
269 char *xmlTreeIndentString; |
|
270 xmlExternalEntityLoader xmlCurrentExternalEntityLoader; |
|
271 |
|
272 xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; |
|
273 xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; |
|
274 |
|
275 /* parser */ |
|
276 unsigned int xmlParserMaxDepth; |
|
277 |
|
278 int __xmlRegisterCallbacks; |
|
279 int xmlCompressMode; |
|
280 int xmlCheckDTD; |
|
281 |
|
282 /* xpath */ |
|
283 double xmlXPathNAN; |
|
284 double xmlXPathPINF; |
|
285 double xmlXPathNINF; |
|
286 double xmlXPathNZERO; |
|
287 int xmlXPathInitialized; |
|
288 #ifndef LIBXML_THREAD_ENABLED |
|
289 int xmlXPathDisableOptimizer; |
|
290 #endif |
|
291 int xmlXPathDefineExtensionFunctionsGlobally; |
|
292 xmlHashTablePtr xmlXPathDefaultFunctionsHash; |
|
293 xmlHashTablePtr xmlXPathIntermediaryExtensionFunctionsHash; |
|
294 |
|
295 /* encoding */ |
|
296 xmlCharEncodingHandlerPtr xmlUTF16LEHandler; |
|
297 xmlCharEncodingHandlerPtr xmlUTF16BEHandler; |
|
298 xmlCharEncodingAliasPtr xmlCharEncodingAliases; |
|
299 int xmlCharEncodingAliasesNb; |
|
300 int xmlCharEncodingAliasesMax; |
|
301 int xmlLittleEndian; |
|
302 |
|
303 xmlCharEncodingHandlerPtr *handlers; |
|
304 int nbCharEncodingHandler; |
|
305 xmlCharEncodingHandlerPtr xmlDefaultCharEncodingHandler; |
|
306 |
|
307 /* error */ |
|
308 int had_info; /* internal */ |
|
309 |
|
310 /* parserInternals */ |
|
311 int xmlInputStreamId; /* internal: renamed from "id" to prevent namespace collisions */ |
|
312 |
|
313 /* parser */ |
|
314 const char *xmlW3CPIs [2]; |
|
315 int xmlParserInitialized; |
|
316 unsigned int xeStackLimit; |
|
317 |
|
318 /* SAX2 */ |
|
319 int xmlSAX2DefaultVersionValue; |
|
320 |
|
321 /* xmlio */ |
|
322 xmlInputCallback xmlInputCallbackTable[MAX_INPUT_CALLBACK]; |
|
323 int xmlInputCallbackNr; |
|
324 int xmlInputCallbackInitialized; |
|
325 #ifdef LIBXML_OUTPUT_ENABLED |
|
326 xmlOutputCallback xmlOutputCallbackTable[MAX_OUTPUT_CALLBACK]; |
|
327 int xmlOutputCallbackNr; |
|
328 int xmlOutputCallbackInitialized; |
|
329 #endif /* LIBXML_OUTPUT_ENABLED */ |
|
330 |
|
331 #ifdef LIBXML_HTML_ENABLED |
|
332 /*HTML parser*/ |
|
333 const char** htmlStartCloseIndex[100]; |
|
334 int htmlStartCloseIndexinitialized; |
|
335 #endif |
|
336 |
|
337 |
|
338 /* SAX: old SAX1, and others */ |
|
339 xmlSAXLocator xmlDefaultSAXLocator; |
|
340 xmlSAXHandlerV1 xmlDefaultSAXHandler; |
|
341 xmlSAXHandlerV1 docbDefaultSAXHandler; |
|
342 xmlSAXHandlerV1 htmlDefaultSAXHandler; |
|
343 |
|
344 #ifdef LIBXML_XPTR_ENABLED |
|
345 xlinkHandlerPtr xlinkDefaultHandler; |
|
346 xlinkNodeDetectFunc xlinkDefaultDetect; |
|
347 #endif /* LIBXML_XPTR_ENABLED */ |
|
348 |
|
349 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES |
|
350 xmlSchemaTypesGlobalDataPtr xmlSchemaTypesGlobals; |
|
351 int xmlSchemaTypesInitialized; |
|
352 #endif |
|
353 |
|
354 #ifdef XMLENGINE_XSLT |
|
355 #ifdef XSLT_PROFILING_ENABLED |
|
356 long g_calibration; // DONE: renamed from 'calibration' |
|
357 #endif |
|
358 void* xsltGlobalsCleanupFunc; |
|
359 xmlHashTablePtr xsltTopLevelsHash; |
|
360 #ifdef XSLT_EXTENSION |
|
361 xmlHashTablePtr xsltExtensionsHash; |
|
362 xmlHashTablePtr xsltFunctionsHash; |
|
363 xmlHashTablePtr xsltElementsHash; |
|
364 //xsltFormatToken default_token; |
|
365 #endif |
|
366 |
|
367 #ifdef XSLT_DEBUG_CALLBACK |
|
368 xsltDebuggerCallbacks xsltDebuggerCurrentCallbacks; |
|
369 #endif |
|
370 #endif /*end of XMLENGINE_XSLT*/ |
|
371 |
|
372 #ifdef LIBXML_CATALOG_ENABLED |
|
373 int xmlDebugCatalogs; |
|
374 xmlCatalogAllow xmlCatalogDefaultAllow; |
|
375 xmlCatalogPrefer xmlCatalogDefaultPrefer; |
|
376 xmlHashTablePtr xmlCatalogXMLFiles; |
|
377 xmlCatalogPtr xmlDefaultCatalog; |
|
378 // xmlRMutexPtr xmlCatalogMutex; |
|
379 int xmlCatalogInitialized; |
|
380 #endif |
|
381 |
|
382 /* xmlmemory */ |
|
383 int xmlMemInitialized; |
|
384 unsigned long debugMemSize; |
|
385 unsigned long debugMaxMemSize; |
|
386 // xmlMutexPtr xmlMemMutex; |
|
387 unsigned int g_block; |
|
388 unsigned int xmlMemStopAtBlock; |
|
389 void *xmlMemTraceBlockAt; |
|
390 |
|
391 #ifdef XMLENGINE_MEM_DEBUG |
|
392 int allocCount; |
|
393 int reallocCount; |
|
394 int deallocCount; |
|
395 int allocTotal; |
|
396 int deallocTotal; |
|
397 void* memSizeFunc; |
|
398 int allocMemSize; |
|
399 int allocMemSizeMax; |
|
400 #endif |
|
401 |
|
402 int reserved; |
|
403 }; // end of struct _xmlGlobalState |
|
404 |
|
405 #ifdef XMLENGINE_MEM_DEBUG |
|
406 typedef void (*MemSizeFunc)(void*, void*, void*); |
|
407 #endif |
|
408 |
|
409 #ifdef __cplusplus |
|
410 } |
|
411 #endif |
|
412 |
|
413 #include <stdapis/libxml2/libxml2_threads.h> |
|
414 |
|
415 #ifdef __cplusplus |
|
416 extern "C" { |
|
417 #endif |
|
418 #ifndef UNDEF_IMPORT_C_IN_DATA |
|
419 XMLPUBVAR const char* const xmlTreeIndentString; |
|
420 XMLPUBVAR const char* const xmlParserVersion; |
|
421 #endif |
|
422 |
|
423 XMLPUBFUN void XMLCALL xmlInitializeGlobalState(xmlGlobalStatePtr gs); |
|
424 XMLPUBFUN xmlRegisterNodeFunc XMLCALL xmlRegisterNodeDefault (xmlRegisterNodeFunc func); |
|
425 XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func); |
|
426 |
|
427 // NOTE: We can actually use fixed values for memory allocation routines! |
|
428 |
|
429 // Boost the performance! This has saved 2 KB of the code and made it faster |
|
430 #define xmlFree free |
|
431 #define xmlMalloc malloc_impl |
|
432 #define xmlMallocAtomic malloc_impl |
|
433 #define xmlRealloc realloc_impl |
|
434 #define xmlMemStrdup(p) ((char*)xmlStrdup((const xmlChar*)(p))) |
|
435 |
|
436 #define xmlLastError (XE_GS_PROXY_VAR->xmlLastError) |
|
437 #define xmlBufferAllocScheme (XE_GS_PROXY_VAR->xmlBufferAllocScheme) |
|
438 #define xmlDefaultBufferSize (XE_GS_PROXY_VAR->xmlDefaultBufferSize) |
|
439 |
|
440 #ifdef LIBXML_SAX1_ENABLED |
|
441 #define xmlDefaultSAXHandler (XE_GS_PROXY_VAR->xmlDefaultSAXHandler) |
|
442 #endif /* LIBXML_SAX1_ENABLED */ |
|
443 |
|
444 #define xmlDefaultSAXLocator (XE_GS_PROXY_VAR->xmlDefaultSAXLocator) |
|
445 |
|
446 #define xmlDoValidityCheckingDefaultValue (XE_GS_PROXY_VAR->xmlDoValidityCheckingDefaultValue) |
|
447 #define xmlGenericError (xmlGetGlobalState()->xmlGenericError) |
|
448 #define xmlStructuredError (XE_GS_PROXY_VAR->xmlStructuredError) |
|
449 #define xmlGenericErrorContext (xmlGetGlobalState()->xmlGenericErrorContext) |
|
450 #define xmlGetWarningsDefaultValue (XE_GS_PROXY_VAR->xmlGetWarningsDefaultValue) |
|
451 #define xmlIndentTreeOutput (XE_GS_PROXY_VAR->xmlIndentTreeOutput) |
|
452 #define xmlKeepBlanksDefaultValue (XE_GS_PROXY_VAR->xmlKeepBlanksDefaultValue) |
|
453 #define xmlLineNumbersDefaultValue (XE_GS_PROXY_VAR->xmlLineNumbersDefaultValue) |
|
454 #define xmlLoadExtDtdDefaultValue (XE_GS_PROXY_VAR->xmlLoadExtDtdDefaultValue) |
|
455 #define xmlParserDebugEntities (XE_GS_PROXY_VAR->xmlParserDebugEntities) |
|
456 #define xmlPedanticParserDefaultValue (XE_GS_PROXY_VAR->xmlPedanticParserDefaultValue) |
|
457 #define xmlSaveNoEmptyTags (XE_GS_PROXY_VAR->xmlSaveNoEmptyTags) |
|
458 #define xmlSubstituteEntitiesDefaultValue (XE_GS_PROXY_VAR->xmlSubstituteEntitiesDefaultValue) |
|
459 #define xmlRegisterNodeDefaultValue (XE_GS_PROXY_VAR->xmlRegisterNodeDefaultValue) |
|
460 #define xmlDeregisterNodeDefaultValue (XE_GS_PROXY_VAR->xmlDeregisterNodeDefaultValue) |
|
461 |
|
462 /* Static Globals */ |
|
463 #define xmlLibraryLock NULL |
|
464 |
|
465 #define had_info (XE_GS_PROXY_VAR->had_info) |
|
466 #define xmlInputStreamId (XE_GS_PROXY_VAR->xmlInputStreamId) |
|
467 |
|
468 #define xmlUTF16LEHandler (XE_GS_PROXY_VAR->xmlUTF16LEHandler) |
|
469 #define xmlUTF16BEHandler (XE_GS_PROXY_VAR->xmlUTF16BEHandler) |
|
470 #define xmlCharEncodingAliases (XE_GS_PROXY_VAR->xmlCharEncodingAliases) |
|
471 #define xmlCharEncodingAliasesNb (XE_GS_PROXY_VAR->xmlCharEncodingAliasesNb) |
|
472 #define xmlCharEncodingAliasesMax (XE_GS_PROXY_VAR->xmlCharEncodingAliasesMax) |
|
473 #define xmlLittleEndian (XE_GS_PROXY_VAR->xmlLittleEndian) |
|
474 #define handlers (XE_GS_PROXY_VAR->handlers) |
|
475 #define nbCharEncodingHandler (XE_GS_PROXY_VAR->nbCharEncodingHandler) |
|
476 #define xmlDefaultCharEncodingHandler (XE_GS_PROXY_VAR->xmlDefaultCharEncodingHandler) |
|
477 |
|
478 #define xmlParserMaxDepth (XE_GS_PROXY_VAR->xmlParserMaxDepth) |
|
479 #define xmlW3CPIs (XE_GS_PROXY_VAR->xmlW3CPIs) |
|
480 #define xmlParserInitialized (XE_GS_PROXY_VAR->xmlParserInitialized) |
|
481 #define xeStackLimit (XE_GS_PROXY_VAR->xeStackLimit) |
|
482 |
|
483 #define xmlSAX2DefaultVersionValue (XE_GS_PROXY_VAR->xmlSAX2DefaultVersionValue) |
|
484 |
|
485 #define xmlInputCallbackTable (XE_GS_PROXY_VAR->xmlInputCallbackTable) |
|
486 #define xmlInputCallbackNr (XE_GS_PROXY_VAR->xmlInputCallbackNr) |
|
487 #define xmlInputCallbackInitialized (XE_GS_PROXY_VAR->xmlInputCallbackInitialized) |
|
488 #define xmlOutputCallbackTable (XE_GS_PROXY_VAR->xmlOutputCallbackTable) |
|
489 #define xmlOutputCallbackNr (XE_GS_PROXY_VAR->xmlOutputCallbackNr) |
|
490 #define xmlOutputCallbackInitialized (XE_GS_PROXY_VAR->xmlOutputCallbackInitialized) |
|
491 #define xmlCurrentExternalEntityLoader (XE_GS_PROXY_VAR->xmlCurrentExternalEntityLoader) |
|
492 |
|
493 #define xmlMemInitialized (XE_GS_PROXY_VAR->xmlMemInitialized) |
|
494 #define debugMemSize (XE_GS_PROXY_VAR->debugMemSize) |
|
495 #define debugMaxMemSize (XE_GS_PROXY_VAR->debugMaxMemSize) |
|
496 #define xmlMemMutex NULL |
|
497 #define g_block (XE_GS_PROXY_VAR->g_block) |
|
498 #define xmlMemStopAtBlock (XE_GS_PROXY_VAR->xmlMemStopAtBlock) |
|
499 #define xmlMemTraceBlockAt (XE_GS_PROXY_VAR->xmlMemTraceBlockAt) |
|
500 |
|
501 #define __xmlRegisterCallbacks (XE_GS_PROXY_VAR->__xmlRegisterCallbacks) |
|
502 |
|
503 #ifdef LIBXML_TREE_ENABLED |
|
504 # define xmlCompressMode (XE_GS_PROXY_VAR->xmlCompressMode) |
|
505 # define xmlCheckDTD (XE_GS_PROXY_VAR->xmlCheckDTD) |
|
506 #endif |
|
507 |
|
508 #ifdef LIBXML_CATALOG_ENABLED |
|
509 # define xmlDebugCatalogs (XE_GS_PROXY_VAR->xmlDebugCatalogs) |
|
510 # define xmlCatalogDefaultAllow (XE_GS_PROXY_VAR->xmlCatalogDefaultAllow) |
|
511 # define xmlCatalogDefaultPrefer (XE_GS_PROXY_VAR->xmlCatalogDefaultPrefer) |
|
512 # define xmlCatalogXMLFiles (XE_GS_PROXY_VAR->xmlCatalogXMLFiles) |
|
513 # define xmlDefaultCatalog (XE_GS_PROXY_VAR->xmlDefaultCatalog) |
|
514 # define xmlCatalogMutex NULL |
|
515 # define xmlCatalogInitialized (XE_GS_PROXY_VAR->xmlCatalogInitialized) |
|
516 #endif |
|
517 |
|
518 #ifdef LIBXML_HTML_ENABLED |
|
519 # define htmlStartCloseIndex (XE_GS_PROXY_VAR->htmlStartCloseIndex) |
|
520 # define htmlStartCloseIndexinitialized (XE_GS_PROXY_VAR->htmlStartCloseIndexinitialized) |
|
521 # define htmlDefaultSAXHandler (XE_GS_PROXY_VAR->htmlDefaultSAXHandler) |
|
522 #endif |
|
523 |
|
524 #ifdef LIBXML_XPATH_ENABLED |
|
525 # define xmlXPathNAN (XE_GS_PROXY_VAR->xmlXPathNAN) |
|
526 # define xmlXPathPINF (XE_GS_PROXY_VAR->xmlXPathPINF) |
|
527 # define xmlXPathNINF (XE_GS_PROXY_VAR->xmlXPathNINF) |
|
528 # define xmlXPathNZERO (XE_GS_PROXY_VAR->xmlXPathNZERO) |
|
529 # define xmlXPathInitialized (XE_GS_PROXY_VAR->xmlXPathInitialized) |
|
530 # define xmlXPathDefineExtensionFunctionsGlobally (XE_GS_PROXY_VAR->xmlXPathDefineExtensionFunctionsGlobally) |
|
531 # define xmlXPathDefaultFunctionsHash (XE_GS_PROXY_VAR->xmlXPathDefaultFunctionsHash) |
|
532 # define xmlXPathIntermediaryExtensionFunctionsHash (XE_GS_PROXY_VAR->xmlXPathIntermediaryExtensionFunctionsHash) |
|
533 # ifndef LIBXML_THREAD_ENABLED |
|
534 # define xmlXPathDisableOptimizer (XE_GS_PROXY_VAR->xmlXPathDisableOptimizer) |
|
535 # endif |
|
536 #endif |
|
537 |
|
538 #ifdef LIBXML_XPTR_ENABLED |
|
539 # define xlinkDefaultHandler (XE_GS_PROXY_VAR->xlinkDefaultHandler) |
|
540 # define xlinkDefaultDetect (XE_GS_PROXY_VAR->xlinkDefaultDetect) |
|
541 #endif |
|
542 |
|
543 #define xsltGlobalsCleanupFunc (XE_GS_PROXY_VAR->xsltGlobalsCleanupFunc) |
|
544 |
|
545 #define xmlOOM (XE_GS_PROXY_VAR->xmlOOM) |
|
546 #define xeUserCount (XE_GS_PROXY_VAR->xeUserCount) |
|
547 |
|
548 #ifdef XMLENGINE_XMLSCHEMA_DATATYPES |
|
549 # define xmlSchemaTypesGlobals (XE_GS_PROXY_VAR->xmlSchemaTypesGlobals) |
|
550 # define xmlSchemaTypesInitialized (XE_GS_PROXY_VAR->xmlSchemaTypesInitialized) |
|
551 #endif |
|
552 |
|
553 #ifdef __cplusplus |
|
554 } |
|
555 #endif |
|
556 |
|
557 #endif /* XML_GLOBALS_H */ |