Annotation of win32/gnome/gnome-xml/include/libxml/globals.h, revision 1.2

1.1       paf         1: /*
                      2:  * globals.h: interface for all global variables of the library
                      3:  *
                      4:  * The bottom of this file is automatically generated by build_glob.py
                      5:  * based on the description file global.data
                      6:  *
                      7:  * See Copyright for the status of this software.
                      8:  *
                      9:  * Gary Pennington <Gary.Pennington@uk.sun.com>
                     10:  * daniel@veillard.com
                     11:  */
                     12: 
                     13: #ifndef __XML_GLOBALS_H
                     14: #define __XML_GLOBALS_H
                     15: 
                     16: #include <libxml/parser.h>
                     17: #include <libxml/xmlerror.h>
                     18: #include <libxml/SAX.h>
                     19: #include <libxml/xmlmemory.h>
                     20: 
                     21: #ifdef __cplusplus
                     22: extern "C" {
                     23: #endif
                     24: 
                     25: /*
                     26:  * Externally global symbols which need to be protected for backwards
                     27:  * compatibility support.
                     28:  */
                     29: 
                     30: #undef docbDefaultSAXHandler
                     31: #undef htmlDefaultSAXHandler
                     32: #undef oldXMLWDcompatibility
                     33: #undef xmlBufferAllocScheme
                     34: #undef xmlDefaultBufferSize
                     35: #undef xmlDefaultSAXHandler
                     36: #undef xmlDefaultSAXLocator
                     37: #undef xmlDoValidityCheckingDefaultValue
                     38: #undef xmlFree
                     39: #undef xmlGenericError
                     40: #undef xmlGenericErrorContext
                     41: #undef xmlGetWarningsDefaultValue
                     42: #undef xmlIndentTreeOutput
                     43: #undef  xmlTreeIndentString
                     44: #undef xmlKeepBlanksDefaultValue
                     45: #undef xmlLineNumbersDefaultValue
                     46: #undef xmlLoadExtDtdDefaultValue
                     47: #undef xmlMalloc
1.2     ! paf        48: #undef xmlMallocAtomic
1.1       paf        49: #undef xmlMemStrdup
                     50: #undef xmlParserDebugEntities
                     51: #undef xmlParserVersion
                     52: #undef xmlPedanticParserDefaultValue
                     53: #undef xmlRealloc
                     54: #undef xmlSaveNoEmptyTags
                     55: #undef xmlSubstituteEntitiesDefaultValue
                     56: #undef xmlRegisterNodeDefaultValue
                     57: #undef xmlDeregisterNodeDefaultValue
                     58: 
                     59: typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node);
                     60: typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node);
                     61: 
                     62: typedef struct _xmlGlobalState xmlGlobalState;
                     63: typedef xmlGlobalState *xmlGlobalStatePtr;
                     64: struct _xmlGlobalState 
                     65: {
                     66:        const char *xmlParserVersion;
                     67: 
                     68:        xmlSAXLocator xmlDefaultSAXLocator;
                     69:        xmlSAXHandler xmlDefaultSAXHandler;
                     70:        xmlSAXHandler docbDefaultSAXHandler;
                     71:        xmlSAXHandler htmlDefaultSAXHandler;
                     72: 
                     73:        xmlFreeFunc xmlFree;
                     74:        xmlMallocFunc xmlMalloc;
                     75:        xmlStrdupFunc xmlMemStrdup;
                     76:        xmlReallocFunc xmlRealloc;
                     77: 
                     78:        xmlGenericErrorFunc xmlGenericError;
                     79:        void *xmlGenericErrorContext;
                     80: 
                     81:        int oldXMLWDcompatibility;
                     82: 
                     83:        xmlBufferAllocationScheme xmlBufferAllocScheme;
                     84:        int xmlDefaultBufferSize;
                     85: 
                     86:        int xmlSubstituteEntitiesDefaultValue;
                     87:        int xmlDoValidityCheckingDefaultValue;
                     88:        int xmlGetWarningsDefaultValue;
                     89:        int xmlKeepBlanksDefaultValue;
                     90:        int xmlLineNumbersDefaultValue;
                     91:        int xmlLoadExtDtdDefaultValue;
                     92:        int xmlParserDebugEntities;
                     93:        int xmlPedanticParserDefaultValue;
                     94: 
                     95:        int xmlSaveNoEmptyTags;
                     96:        int xmlIndentTreeOutput;
                     97:        const char *xmlTreeIndentString;
                     98: 
                     99:        xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
                    100:        xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
1.2     ! paf       101: 
        !           102:        xmlMallocFunc xmlMallocAtomic;
1.1       paf       103: };
                    104: 
                    105: #ifdef __cplusplus
                    106: }
                    107: #endif
                    108: #include <libxml/threads.h>
                    109: #ifdef __cplusplus
                    110: extern "C" {
                    111: #endif
                    112: 
                    113: void   xmlInitializeGlobalState(xmlGlobalStatePtr gs);
                    114: 
                    115: xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func);
                    116: xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func);
                    117: 
                    118: /*
                    119:  * In general the memory allocation entry points are not kept
                    120:  * thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED
                    121:  *    - xmlMalloc
1.2     ! paf       122:  *    - xmlMallocAtomic
1.1       paf       123:  *    - xmlRealloc
                    124:  *    - xmlMemStrdup
                    125:  *    - xmlFree
                    126:  */
                    127: 
                    128: #ifdef LIBXML_THREAD_ALLOC_ENABLED
                    129: #ifdef LIBXML_THREAD_ENABLED
                    130: extern xmlMallocFunc *__xmlMalloc(void);
                    131: #define xmlMalloc \
                    132: (*(__xmlMalloc()))
                    133: #else
                    134: LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc;
                    135: #endif
                    136: 
                    137: #ifdef LIBXML_THREAD_ENABLED
1.2     ! paf       138: extern xmlMallocFunc *__xmlMallocAtomic(void);
        !           139: #define xmlMallocAtomic \
        !           140: (*(__xmlMallocAtomic()))
        !           141: #else
        !           142: LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMallocAtomic;
        !           143: #endif
        !           144: 
        !           145: #ifdef LIBXML_THREAD_ENABLED
1.1       paf       146: extern xmlReallocFunc *__xmlRealloc(void);
                    147: #define xmlRealloc \
                    148: (*(__xmlRealloc()))
                    149: #else
                    150: LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc;
                    151: #endif
                    152: 
                    153: #ifdef LIBXML_THREAD_ENABLED
                    154: extern xmlFreeFunc *__xmlFree(void);
                    155: #define xmlFree \
                    156: (*(__xmlFree()))
                    157: #else
                    158: LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;
                    159: #endif
                    160: 
                    161: #ifdef LIBXML_THREAD_ENABLED
                    162: extern xmlStrdupFunc *__xmlMemStrdup(void);
                    163: #define xmlMemStrdup \
                    164: (*(__xmlMemStrdup()))
                    165: #else
                    166: LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;
                    167: #endif
1.2     ! paf       168: 
1.1       paf       169: #else /* !LIBXML_THREAD_ALLOC_ENABLED */
                    170: LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMalloc;
1.2     ! paf       171: LIBXML_DLL_IMPORT extern xmlMallocFunc xmlMallocAtomic;
1.1       paf       172: LIBXML_DLL_IMPORT extern xmlReallocFunc xmlRealloc;
                    173: LIBXML_DLL_IMPORT extern xmlFreeFunc xmlFree;
                    174: LIBXML_DLL_IMPORT extern xmlStrdupFunc xmlMemStrdup;
                    175: #endif /* LIBXML_THREAD_ALLOC_ENABLED */
                    176: 
                    177: #ifdef LIBXML_DOCB_ENABLED
                    178: extern xmlSAXHandler *__docbDefaultSAXHandler(void);
                    179: #ifdef LIBXML_THREAD_ENABLED
                    180: #define docbDefaultSAXHandler \
                    181: (*(__docbDefaultSAXHandler()))
                    182: #else
                    183: LIBXML_DLL_IMPORT extern xmlSAXHandler docbDefaultSAXHandler;
                    184: #endif
                    185: #endif
                    186: 
                    187: #ifdef LIBXML_HTML_ENABLED
                    188: extern xmlSAXHandler *__htmlDefaultSAXHandler(void);
                    189: #ifdef LIBXML_THREAD_ENABLED
                    190: #define htmlDefaultSAXHandler \
                    191: (*(__htmlDefaultSAXHandler()))
                    192: #else
                    193: LIBXML_DLL_IMPORT extern xmlSAXHandler htmlDefaultSAXHandler;
                    194: #endif
                    195: #endif
                    196: 
                    197: 
                    198: /*
                    199:  * Everything starting from the line below is
                    200:  * Automatically generated by build_glob.py.
                    201:  * Do not modify the previous line.
                    202:  */
                    203: 
                    204: 
                    205: extern int *__oldXMLWDcompatibility(void);
                    206: #ifdef LIBXML_THREAD_ENABLED
                    207: #define oldXMLWDcompatibility \
                    208: (*(__oldXMLWDcompatibility()))
                    209: #else
                    210: LIBXML_DLL_IMPORT extern int oldXMLWDcompatibility;
                    211: #endif
                    212: 
                    213: extern xmlBufferAllocationScheme *__xmlBufferAllocScheme(void);
                    214: #ifdef LIBXML_THREAD_ENABLED
                    215: #define xmlBufferAllocScheme \
                    216: (*(__xmlBufferAllocScheme()))
                    217: #else
                    218: LIBXML_DLL_IMPORT extern xmlBufferAllocationScheme xmlBufferAllocScheme;
                    219: #endif
                    220: 
                    221: extern int *__xmlDefaultBufferSize(void);
                    222: #ifdef LIBXML_THREAD_ENABLED
                    223: #define xmlDefaultBufferSize \
                    224: (*(__xmlDefaultBufferSize()))
                    225: #else
                    226: LIBXML_DLL_IMPORT extern int xmlDefaultBufferSize;
                    227: #endif
                    228: 
                    229: extern xmlSAXHandler *__xmlDefaultSAXHandler(void);
                    230: #ifdef LIBXML_THREAD_ENABLED
                    231: #define xmlDefaultSAXHandler \
                    232: (*(__xmlDefaultSAXHandler()))
                    233: #else
                    234: LIBXML_DLL_IMPORT extern xmlSAXHandler xmlDefaultSAXHandler;
                    235: #endif
                    236: 
                    237: extern xmlSAXLocator *__xmlDefaultSAXLocator(void);
                    238: #ifdef LIBXML_THREAD_ENABLED
                    239: #define xmlDefaultSAXLocator \
                    240: (*(__xmlDefaultSAXLocator()))
                    241: #else
                    242: LIBXML_DLL_IMPORT extern xmlSAXLocator xmlDefaultSAXLocator;
                    243: #endif
                    244: 
                    245: extern int *__xmlDoValidityCheckingDefaultValue(void);
                    246: #ifdef LIBXML_THREAD_ENABLED
                    247: #define xmlDoValidityCheckingDefaultValue \
                    248: (*(__xmlDoValidityCheckingDefaultValue()))
                    249: #else
                    250: LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue;
                    251: #endif
                    252: 
                    253: extern xmlGenericErrorFunc *__xmlGenericError(void);
                    254: #ifdef LIBXML_THREAD_ENABLED
                    255: #define xmlGenericError \
                    256: (*(__xmlGenericError()))
                    257: #else
                    258: LIBXML_DLL_IMPORT extern xmlGenericErrorFunc xmlGenericError;
                    259: #endif
                    260: 
                    261: extern void * *__xmlGenericErrorContext(void);
                    262: #ifdef LIBXML_THREAD_ENABLED
                    263: #define xmlGenericErrorContext \
                    264: (*(__xmlGenericErrorContext()))
                    265: #else
                    266: LIBXML_DLL_IMPORT extern void * xmlGenericErrorContext;
                    267: #endif
                    268: 
                    269: extern int *__xmlGetWarningsDefaultValue(void);
                    270: #ifdef LIBXML_THREAD_ENABLED
                    271: #define xmlGetWarningsDefaultValue \
                    272: (*(__xmlGetWarningsDefaultValue()))
                    273: #else
                    274: LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue;
                    275: #endif
                    276: 
                    277: extern int *__xmlIndentTreeOutput(void);
                    278: #ifdef LIBXML_THREAD_ENABLED
                    279: #define xmlIndentTreeOutput \
                    280: (*(__xmlIndentTreeOutput()))
                    281: #else
                    282: LIBXML_DLL_IMPORT extern int xmlIndentTreeOutput;
                    283: #endif
                    284: 
                    285: extern const char * *__xmlTreeIndentString(void);
                    286: #ifdef LIBXML_THREAD_ENABLED
                    287: #define xmlTreeIndentString \
                    288: (*(__xmlTreeIndentString()))
                    289: #else
                    290: LIBXML_DLL_IMPORT extern const char * xmlTreeIndentString;
                    291: #endif
                    292: 
                    293: extern int *__xmlKeepBlanksDefaultValue(void);
                    294: #ifdef LIBXML_THREAD_ENABLED
                    295: #define xmlKeepBlanksDefaultValue \
                    296: (*(__xmlKeepBlanksDefaultValue()))
                    297: #else
                    298: LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue;
                    299: #endif
                    300: 
                    301: extern int *__xmlLineNumbersDefaultValue(void);
                    302: #ifdef LIBXML_THREAD_ENABLED
                    303: #define xmlLineNumbersDefaultValue \
                    304: (*(__xmlLineNumbersDefaultValue()))
                    305: #else
                    306: LIBXML_DLL_IMPORT extern int xmlLineNumbersDefaultValue;
                    307: #endif
                    308: 
                    309: extern int *__xmlLoadExtDtdDefaultValue(void);
                    310: #ifdef LIBXML_THREAD_ENABLED
                    311: #define xmlLoadExtDtdDefaultValue \
                    312: (*(__xmlLoadExtDtdDefaultValue()))
                    313: #else
                    314: LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue;
                    315: #endif
                    316: 
                    317: extern int *__xmlParserDebugEntities(void);
                    318: #ifdef LIBXML_THREAD_ENABLED
                    319: #define xmlParserDebugEntities \
                    320: (*(__xmlParserDebugEntities()))
                    321: #else
                    322: LIBXML_DLL_IMPORT extern int xmlParserDebugEntities;
                    323: #endif
                    324: 
                    325: extern const char * *__xmlParserVersion(void);
                    326: #ifdef LIBXML_THREAD_ENABLED
                    327: #define xmlParserVersion \
                    328: (*(__xmlParserVersion()))
                    329: #else
                    330: LIBXML_DLL_IMPORT extern const char * xmlParserVersion;
                    331: #endif
                    332: 
                    333: extern int *__xmlPedanticParserDefaultValue(void);
                    334: #ifdef LIBXML_THREAD_ENABLED
                    335: #define xmlPedanticParserDefaultValue \
                    336: (*(__xmlPedanticParserDefaultValue()))
                    337: #else
                    338: LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue;
                    339: #endif
                    340: 
                    341: extern int *__xmlSaveNoEmptyTags(void);
                    342: #ifdef LIBXML_THREAD_ENABLED
                    343: #define xmlSaveNoEmptyTags \
                    344: (*(__xmlSaveNoEmptyTags()))
                    345: #else
                    346: LIBXML_DLL_IMPORT extern int xmlSaveNoEmptyTags;
                    347: #endif
                    348: 
                    349: extern int *__xmlSubstituteEntitiesDefaultValue(void);
                    350: #ifdef LIBXML_THREAD_ENABLED
                    351: #define xmlSubstituteEntitiesDefaultValue \
                    352: (*(__xmlSubstituteEntitiesDefaultValue()))
                    353: #else
                    354: LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue;
                    355: #endif
                    356: 
                    357: extern xmlRegisterNodeFunc *__xmlRegisterNodeDefaultValue(void);
                    358: #ifdef LIBXML_THREAD_ENABLED
                    359: #define xmlRegisterNodeDefaultValue \
                    360: (*(__xmlRegisterNodeDefaultValue()))
                    361: #else
                    362: LIBXML_DLL_IMPORT extern xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
                    363: #endif
                    364: 
                    365: extern xmlDeregisterNodeFunc *__xmlDeregisterNodeDefaultValue(void);
                    366: #ifdef LIBXML_THREAD_ENABLED
                    367: #define xmlDeregisterNodeDefaultValue \
                    368: (*(__xmlDeregisterNodeDefaultValue()))
                    369: #else
                    370: LIBXML_DLL_IMPORT extern xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
                    371: #endif
                    372: 
                    373: #ifdef __cplusplus
                    374: }
                    375: #endif
                    376: 
                    377: #endif /* __XML_GLOBALS_H */

E-mail: