📄 globals.h
字号:
/* * globals.h: interface for all global variables of the library * * The bottom of this file is automatically generated by build_glob.py * based on the description file global.data * * See Copyright for the status of this software. * * Gary Pennington <Gary.Pennington@uk.sun.com> * daniel@veillard.com */#ifndef __XML_GLOBALS_H#define __XML_GLOBALS_H#include <libxml/parser.h>#include <libxml/xmlerror.h>#include <libxml/SAX.h>#include <libxml/xmlmemory.h>#ifdef __cplusplusextern "C" {#endif/* * Externally global symbols which need to be protected for backwards * compatibility support. */#undef docbDefaultSAXHandler#undef htmlDefaultSAXHandler#undef oldXMLWDcompatibility#undef xmlBufferAllocScheme#undef xmlDefaultBufferSize#undef xmlDefaultSAXHandler#undef xmlDefaultSAXLocator#undef xmlDoValidityCheckingDefaultValue#undef xmlFree#undef xmlGenericError#undef xmlGenericErrorContext#undef xmlGetWarningsDefaultValue#undef xmlIndentTreeOutput#undef xmlKeepBlanksDefaultValue#undef xmlLineNumbersDefaultValue#undef xmlLoadExtDtdDefaultValue#undef xmlMalloc#undef xmlMemStrdup#undef xmlParserDebugEntities#undef xmlParserVersion#undef xmlPedanticParserDefaultValue#undef xmlRealloc#undef xmlSaveNoEmptyTags#undef xmlSubstituteEntitiesDefaultValuetypedef struct _xmlGlobalState xmlGlobalState;typedef xmlGlobalState *xmlGlobalStatePtr;struct _xmlGlobalState { const char *xmlParserVersion; xmlSAXLocator xmlDefaultSAXLocator; xmlSAXHandler xmlDefaultSAXHandler; xmlSAXHandler docbDefaultSAXHandler; xmlSAXHandler htmlDefaultSAXHandler; xmlFreeFunc xmlFree; xmlMallocFunc xmlMalloc; xmlStrdupFunc xmlMemStrdup; xmlReallocFunc xmlRealloc; xmlGenericErrorFunc xmlGenericError; void *xmlGenericErrorContext; int oldXMLWDcompatibility; xmlBufferAllocationScheme xmlBufferAllocScheme; int xmlDefaultBufferSize; int xmlSubstituteEntitiesDefaultValue; int xmlDoValidityCheckingDefaultValue; int xmlGetWarningsDefaultValue; int xmlKeepBlanksDefaultValue; int xmlLineNumbersDefaultValue; int xmlLoadExtDtdDefaultValue; int xmlParserDebugEntities; int xmlPedanticParserDefaultValue; int xmlSaveNoEmptyTags; int xmlIndentTreeOutput;};#ifdef __cplusplus}#endif#include <libxml/threads.h>#ifdef __cplusplusextern "C" {#endifvoid xmlInitializeGlobalState(xmlGlobalStatePtr gs);/* * In general the memory allocation entry points are not kept * thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED * - xmlMalloc * - xmlRealloc * - xmlMemStrdup * - xmlFree */#ifdef LIBXML_THREAD_ALLOC_ENABLED#ifdef LIBXML_THREAD_ENABLEDextern xmlMallocFunc *__xmlMalloc(void);#define xmlMalloc \(*(__xmlMalloc()))#elseLIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc;#endif#ifdef LIBXML_THREAD_ENABLEDextern xmlReallocFunc *__xmlRealloc(void);#define xmlRealloc \(*(__xmlRealloc()))#elseLIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc;#endif#ifdef LIBXML_THREAD_ENABLEDextern xmlFreeFunc *__xmlFree(void);#define xmlFree \(*(__xmlFree()))#elseLIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;#endif#ifdef LIBXML_THREAD_ENABLEDextern xmlStrdupFunc *__xmlMemStrdup(void);#define xmlMemStrdup \(*(__xmlMemStrdup()))#elseLIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;#endif#else /* !LIBXML_THREAD_ALLOC_ENABLED */LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc;LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc;LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;#endif /* LIBXML_THREAD_ALLOC_ENABLED */#ifdef LIBXML_DOCB_ENABLEDextern xmlSAXHandler *__docbDefaultSAXHandler(void);#ifdef LIBXML_THREAD_ENABLED#define docbDefaultSAXHandler \(*(__docbDefaultSAXHandler()))#elseLIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;#endif#endif#ifdef LIBXML_HTML_ENABLEDextern xmlSAXHandler *__htmlDefaultSAXHandler(void);#ifdef LIBXML_THREAD_ENABLED#define htmlDefaultSAXHandler \(*(__htmlDefaultSAXHandler()))#elseLIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler;#endif#endif/* * Everything starting from the line below is * Automatically generated by build_glob.py. * Do not modify the previous line. */extern int *__oldXMLWDcompatibility(void);#ifdef LIBXML_THREAD_ENABLED#define oldXMLWDcompatibility \(*(__oldXMLWDcompatibility()))#elseLIBXML_DLL_IMPORT extern int oldXMLWDcompatibility;#endifextern xmlBufferAllocationScheme *__xmlBufferAllocScheme(void);#ifdef LIBXML_THREAD_ENABLED#define xmlBufferAllocScheme \(*(__xmlBufferAllocScheme()))#elseLIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme;#endifextern int *__xmlDefaultBufferSize(void);#ifdef LIBXML_THREAD_ENABLED#define xmlDefaultBufferSize \(*(__xmlDefaultBufferSize()))#elseLIBXML_DLL_IMPORT extern int xmlDefaultBufferSize;#endifextern xmlSAXHandler *__xmlDefaultSAXHandler(void);#ifdef LIBXML_THREAD_ENABLED#define xmlDefaultSAXHandler \(*(__xmlDefaultSAXHandler()))#elseLIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler;#endifextern xmlSAXLocator *__xmlDefaultSAXLocator(void);#ifdef LIBXML_THREAD_ENABLED#define xmlDefaultSAXLocator \(*(__xmlDefaultSAXLocator()))#elseLIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator;#endifextern int *__xmlDoValidityCheckingDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlDoValidityCheckingDefaultValue \(*(__xmlDoValidityCheckingDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue;#endifextern xmlGenericErrorFunc *__xmlGenericError(void);#ifdef LIBXML_THREAD_ENABLED#define xmlGenericError \(*(__xmlGenericError()))#elseLIBXML_DLL_IMPORT extern xmlGenericErrorFunc xmlGenericError;#endifextern void * *__xmlGenericErrorContext(void);#ifdef LIBXML_THREAD_ENABLED#define xmlGenericErrorContext \(*(__xmlGenericErrorContext()))#elseLIBXML_DLL_IMPORT extern void * xmlGenericErrorContext;#endifextern int *__xmlGetWarningsDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlGetWarningsDefaultValue \(*(__xmlGetWarningsDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue;#endifextern int *__xmlIndentTreeOutput(void);#ifdef LIBXML_THREAD_ENABLED#define xmlIndentTreeOutput \(*(__xmlIndentTreeOutput()))#elseLIBXML_DLL_IMPORT extern int xmlIndentTreeOutput;#endifextern int *__xmlKeepBlanksDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlKeepBlanksDefaultValue \(*(__xmlKeepBlanksDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue;#endifextern int *__xmlLineNumbersDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlLineNumbersDefaultValue \(*(__xmlLineNumbersDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlLineNumbersDefaultValue;#endifextern int *__xmlLoadExtDtdDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlLoadExtDtdDefaultValue \(*(__xmlLoadExtDtdDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue;#endifextern int *__xmlParserDebugEntities(void);#ifdef LIBXML_THREAD_ENABLED#define xmlParserDebugEntities \(*(__xmlParserDebugEntities()))#elseLIBXML_DLL_IMPORT extern int xmlParserDebugEntities;#endifextern const char * *__xmlParserVersion(void);#ifdef LIBXML_THREAD_ENABLED#define xmlParserVersion \(*(__xmlParserVersion()))#elseLIBXML_DLL_IMPORT extern const char * xmlParserVersion;#endifextern int *__xmlPedanticParserDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlPedanticParserDefaultValue \(*(__xmlPedanticParserDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue;#endifextern int *__xmlSaveNoEmptyTags(void);#ifdef LIBXML_THREAD_ENABLED#define xmlSaveNoEmptyTags \(*(__xmlSaveNoEmptyTags()))#elseLIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags;#endifextern int *__xmlSubstituteEntitiesDefaultValue(void);#ifdef LIBXML_THREAD_ENABLED#define xmlSubstituteEntitiesDefaultValue \(*(__xmlSubstituteEntitiesDefaultValue()))#elseLIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue;#endif#ifdef __cplusplus}#endif#endif /* __XML_GLOBALS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -