2001-10-12 17:29:10 +00:00
/*
* globals . c : definition and handling of the set of 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
*/
2002-03-18 19:37:11 +00:00
# define IN_LIBXML
2001-10-12 17:29:10 +00:00
# include "libxml.h"
2001-10-13 12:18:28 +00:00
# ifdef HAVE_STDLIB_H
2001-10-13 12:06:09 +00:00
# include <stdlib.h>
2001-10-13 12:18:28 +00:00
# endif
2001-10-13 12:06:09 +00:00
# include <string.h>
2001-10-17 15:58:35 +00:00
# include <libxml/globals.h>
2001-10-13 12:18:28 +00:00
# include <libxml/xmlmemory.h>
2001-10-17 15:58:35 +00:00
/* #define DEBUG_GLOBALS */
2001-10-12 17:29:10 +00:00
/*
* Helpful Macro
*/
2001-10-17 15:58:35 +00:00
# ifdef LIBXML_THREAD_ENABLED
# define IS_MAIN_THREAD (xmlIsMainThread())
2001-10-12 17:29:10 +00:00
# else
# define IS_MAIN_THREAD 1
# endif
/************************************************************************
* *
* All the user accessible global variables of the library *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Memory allocation routines
*/
# if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
2001-10-13 09:15:48 +00:00
extern void xmlMemFree ( void * ptr ) ;
extern void * xmlMemMalloc ( size_t size ) ;
extern void * xmlMemRealloc ( void * ptr , size_t size ) ;
extern char * xmlMemoryStrdup ( const char * str ) ;
2001-10-12 17:29:10 +00:00
xmlFreeFunc xmlFree = ( xmlFreeFunc ) xmlMemFree ;
xmlMallocFunc xmlMalloc = ( xmlMallocFunc ) xmlMemMalloc ;
xmlReallocFunc xmlRealloc = ( xmlReallocFunc ) xmlMemRealloc ;
xmlStrdupFunc xmlMemStrdup = ( xmlStrdupFunc ) xmlMemoryStrdup ;
# else
2002-01-22 18:15:52 +00:00
/**
* xmlFree :
* @ mem : an already allocated block of memory
*
* The variable holding the libxml free ( ) implementation
*/
2001-10-12 17:29:10 +00:00
xmlFreeFunc xmlFree = ( xmlFreeFunc ) free ;
2002-01-22 18:15:52 +00:00
/**
* xmlMalloc :
* @ size : the size requested in bytes
*
* The variable holding the libxml malloc ( ) implementation
*
* Returns a pointer to the newly allocated block or NULL in case of error
*/
2001-10-12 17:29:10 +00:00
xmlMallocFunc xmlMalloc = ( xmlMallocFunc ) malloc ;
2002-01-22 18:15:52 +00:00
/**
* xmlRealloc :
* @ mem : an already allocated block of memory
* @ size : the new size requested in bytes
*
* The variable holding the libxml realloc ( ) implementation
*
* Returns a pointer to the newly reallocated block or NULL in case of error
*/
2001-10-12 17:29:10 +00:00
xmlReallocFunc xmlRealloc = ( xmlReallocFunc ) realloc ;
2002-01-22 18:15:52 +00:00
/**
* xmlMemStrdup :
* @ str : a zero terminated string
*
* The variable holding the libxml strdup ( ) implementation
*
* Returns the copy of the string or NULL in case of error
*/
2001-12-09 14:00:54 +00:00
xmlStrdupFunc xmlMemStrdup = ( xmlStrdupFunc ) xmlStrdup ;
2001-10-12 17:29:10 +00:00
# endif
2001-10-13 09:15:48 +00:00
# include <libxml/threads.h>
# include <libxml/globals.h>
# include <libxml/SAX.h>
# undef docbDefaultSAXHandler
# undef htmlDefaultSAXHandler
# undef oldXMLWDcompatibility
# undef xmlBufferAllocScheme
# undef xmlDefaultBufferSize
# undef xmlDefaultSAXHandler
# undef xmlDefaultSAXLocator
# undef xmlDoValidityCheckingDefaultValue
# undef xmlGenericError
# undef xmlGenericErrorContext
# undef xmlGetWarningsDefaultValue
# undef xmlIndentTreeOutput
# undef xmlKeepBlanksDefaultValue
# undef xmlLineNumbersDefaultValue
# undef xmlLoadExtDtdDefaultValue
# undef xmlParserDebugEntities
# undef xmlParserVersion
# undef xmlPedanticParserDefaultValue
# undef xmlSaveNoEmptyTags
# undef xmlSubstituteEntitiesDefaultValue
# undef xmlFree
# undef xmlMalloc
# undef xmlMemStrdup
# undef xmlRealloc
2002-01-22 18:15:52 +00:00
/**
* xmlParserVersion :
*
* Constant string describing the internal version of the library
*/
2001-10-17 15:58:35 +00:00
const char * xmlParserVersion = LIBXML_VERSION_STRING ;
2002-01-22 18:15:52 +00:00
/**
* xmlBufferAllocScheme :
*
* Global setting , default allocation policy for buffers , default is
* XML_BUFFER_ALLOC_EXACT
2001-10-12 17:29:10 +00:00
*/
xmlBufferAllocationScheme xmlBufferAllocScheme = XML_BUFFER_ALLOC_EXACT ;
2002-01-22 18:15:52 +00:00
/**
* xmlDefaultBufferSize :
*
* Global setting , default buffer size . Default value is BASE_BUFFER_SIZE
*/
2001-10-12 17:29:10 +00:00
int xmlDefaultBufferSize = BASE_BUFFER_SIZE ;
/*
* Parser defaults
*/
2001-10-13 09:15:48 +00:00
2002-01-22 18:15:52 +00:00
/**
* oldXMLWDcompatibility :
*
* Global setting , DEPRECATED .
*/
2001-10-12 17:29:10 +00:00
int oldXMLWDcompatibility = 0 ; /* DEPRECATED */
2002-01-22 18:15:52 +00:00
/**
* xmlParserDebugEntities :
*
* Global setting , asking the parser to print out debugging informations .
* while handling entities .
* Disabled by default
*/
2001-10-12 17:29:10 +00:00
int xmlParserDebugEntities = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlDoValidityCheckingDefaultValue :
*
* Global setting , indicate that the parser should work in validating mode .
* Disabled by default .
*/
2001-10-12 17:29:10 +00:00
int xmlDoValidityCheckingDefaultValue = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlGetWarningsDefaultValue :
*
* Global setting , indicate that the parser should provide warnings .
* Activated by default .
*/
2001-10-12 17:29:10 +00:00
int xmlGetWarningsDefaultValue = 1 ;
2002-01-22 18:15:52 +00:00
/**
* xmlLoadExtDtdDefaultValue :
*
* Global setting , indicate that the parser should load DTD while not
* validating .
* Disabled by default .
*/
2001-10-12 17:29:10 +00:00
int xmlLoadExtDtdDefaultValue = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlPedanticParserDefaultValue :
*
* Global setting , indicate that the parser be pedantic
* Disabled by default .
*/
2001-10-12 17:29:10 +00:00
int xmlPedanticParserDefaultValue = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlLineNumbersDefaultValue :
*
* Global setting , indicate that the parser should store the line number
* in the content field of elements in the DOM tree .
* Disabled by default since this may not be safe for old classes of
* applicaton .
*/
2001-10-12 17:29:10 +00:00
int xmlLineNumbersDefaultValue = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlKeepBlanksDefaultValue :
*
* Global setting , indicate that the parser should keep all blanks
* nodes found in the content
* Activated by default , this is actually needed to have the parser
* conformant to the XML Recommendation , however the option is kept
* for some applications since this was libxml1 default behaviour .
*/
2001-10-12 17:29:10 +00:00
int xmlKeepBlanksDefaultValue = 1 ;
2002-01-22 18:15:52 +00:00
/**
* xmlSubstituteEntitiesDefaultValue :
*
* Global setting , indicate that the parser should not generate entity
* references but replace them with the actual content of the entity
* Disabled by default , this should be activated when using XPath since
* the XPath data model requires entities replacement and the XPath
* engine does not handle entities references transparently .
*/
2001-10-12 17:29:10 +00:00
int xmlSubstituteEntitiesDefaultValue = 0 ;
/*
* Error handling
*/
/* xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc; */
/* Must initialize xmlGenericError in xmlInitParser */
2001-10-29 11:48:19 +00:00
void xmlGenericErrorDefaultFunc ( void * ctx ATTRIBUTE_UNUSED ,
const char * msg ,
. . . ) ;
2002-01-22 18:15:52 +00:00
/**
* xmlGenericError :
*
* Global setting : function used for generic error callbacks
*/
2001-10-29 11:48:19 +00:00
xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc ;
2002-01-22 18:15:52 +00:00
/**
* xmlGenericErrorContext :
*
* Global setting passed to generic error callbacks
*/
2001-10-12 17:29:10 +00:00
void * xmlGenericErrorContext = NULL ;
/*
* output defaults
*/
2002-01-22 18:15:52 +00:00
/**
* xmlIndentTreeOutput :
*
* Global setting , asking the serializer to indent the output tree by default
* Disabled by default
*/
2001-10-12 17:29:10 +00:00
int xmlIndentTreeOutput = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlSaveNoEmptyTags :
*
* Global setting , asking the serializer to not output empty tags
* as < empty / > but < empty > < / empty > . those two forms are undistinguishable
* once parsed .
* Disabled by default
*/
2001-10-12 17:29:10 +00:00
int xmlSaveNoEmptyTags = 0 ;
2002-01-22 18:15:52 +00:00
/**
* xmlDefaultSAXHandler :
*
2001-10-12 17:29:10 +00:00
* Default handler for XML , builds the DOM tree
*/
xmlSAXHandler xmlDefaultSAXHandler = {
internalSubset ,
isStandalone ,
hasInternalSubset ,
hasExternalSubset ,
resolveEntity ,
getEntity ,
entityDecl ,
notationDecl ,
attributeDecl ,
elementDecl ,
unparsedEntityDecl ,
setDocumentLocator ,
startDocument ,
endDocument ,
startElement ,
endElement ,
reference ,
characters ,
characters ,
processingInstruction ,
comment ,
xmlParserWarning ,
xmlParserError ,
xmlParserError ,
getParameterEntity ,
cdataBlock ,
externalSubset ,
0
} ;
2002-01-22 18:15:52 +00:00
/**
* xmlDefaultSAXLocator :
*
* The default SAX Locator
* { getPublicId , getSystemId , getLineNumber , getColumnNumber }
2001-10-12 17:29:10 +00:00
*/
xmlSAXLocator xmlDefaultSAXLocator = {
getPublicId , getSystemId , getLineNumber , getColumnNumber
} ;
# ifdef LIBXML_HTML_ENABLED
2002-01-22 18:15:52 +00:00
/**
* htmlDefaultSAXHandler :
*
2001-10-12 17:29:10 +00:00
* Default handler for HTML , builds the DOM tree
*/
xmlSAXHandler htmlDefaultSAXHandler = {
internalSubset ,
NULL ,
NULL ,
NULL ,
NULL ,
getEntity ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
setDocumentLocator ,
startDocument ,
endDocument ,
startElement ,
endElement ,
NULL ,
characters ,
ignorableWhitespace ,
NULL ,
comment ,
xmlParserWarning ,
xmlParserError ,
xmlParserError ,
getParameterEntity ,
cdataBlock ,
NULL ,
0
} ;
# endif /* LIBXML_HTML_ENABLED */
# ifdef LIBXML_DOCB_ENABLED
2002-01-22 18:15:52 +00:00
/**
* docbDefaultSAXHandler :
*
2001-10-12 17:29:10 +00:00
* Default handler for SGML DocBook , builds the DOM tree
*/
xmlSAXHandler docbDefaultSAXHandler = {
internalSubset ,
isStandalone ,
hasInternalSubset ,
hasExternalSubset ,
resolveEntity ,
getEntity ,
entityDecl ,
NULL ,
NULL ,
NULL ,
NULL ,
setDocumentLocator ,
startDocument ,
endDocument ,
startElement ,
endElement ,
reference ,
characters ,
ignorableWhitespace ,
NULL ,
comment ,
xmlParserWarning ,
xmlParserError ,
xmlParserError ,
getParameterEntity ,
NULL ,
NULL ,
0
} ;
# endif /* LIBXML_DOCB_ENABLED */
/**
* xmlInitializeGlobalState :
* @ gs : a pointer to a newly allocated global state
*
* xmlInitializeGlobalState ( ) initialize a global state with all the
* default values of the library .
*/
void
xmlInitializeGlobalState ( xmlGlobalStatePtr gs )
{
2001-10-17 15:58:35 +00:00
# ifdef DEBUG_GLOBALS
fprintf ( stderr , " Initializing globals at %lu for thread %d \n " ,
( unsigned long ) gs , xmlGetThreadId ( ) ) ;
# endif
2001-10-12 17:29:10 +00:00
/*
2001-12-31 16:16:02 +00:00
* Perform initialization as required by libxml
2001-10-12 17:29:10 +00:00
*/
2001-10-17 15:58:35 +00:00
initxmlDefaultSAXHandler ( & gs - > xmlDefaultSAXHandler , 1 ) ;
2001-11-04 20:19:12 +00:00
# ifdef LIBXML_DOCB_ENABLED
2001-10-12 17:29:10 +00:00
initdocbDefaultSAXHandler ( & gs - > docbDefaultSAXHandler ) ;
2001-11-04 20:19:12 +00:00
# endif
# ifdef LIBXML_HTML_ENABLED
2001-10-12 17:29:10 +00:00
inithtmlDefaultSAXHandler ( & gs - > htmlDefaultSAXHandler ) ;
2001-11-04 20:19:12 +00:00
# endif
2001-10-17 15:58:35 +00:00
initGenericErrorDefaultFunc ( & gs - > xmlGenericError ) ;
2001-10-12 17:29:10 +00:00
gs - > oldXMLWDcompatibility = 0 ;
gs - > xmlBufferAllocScheme = XML_BUFFER_ALLOC_EXACT ;
gs - > xmlDefaultBufferSize = BASE_BUFFER_SIZE ;
initxmlDefaultSAXHandler ( & gs - > xmlDefaultSAXHandler , 1 ) ;
gs - > xmlDefaultSAXLocator . getPublicId = getPublicId ;
gs - > xmlDefaultSAXLocator . getSystemId = getSystemId ;
gs - > xmlDefaultSAXLocator . getLineNumber = getLineNumber ;
gs - > xmlDefaultSAXLocator . getColumnNumber = getColumnNumber ;
gs - > xmlDoValidityCheckingDefaultValue = 0 ;
# if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
gs - > xmlFree = ( xmlFreeFunc ) xmlMemFree ;
gs - > xmlMalloc = ( xmlMallocFunc ) xmlMemMalloc ;
gs - > xmlRealloc = ( xmlReallocFunc ) xmlMemRealloc ;
gs - > xmlMemStrdup = ( xmlStrdupFunc ) xmlMemoryStrdup ;
# else
gs - > xmlFree = ( xmlFreeFunc ) free ;
gs - > xmlMalloc = ( xmlMallocFunc ) malloc ;
gs - > xmlRealloc = ( xmlReallocFunc ) realloc ;
2002-01-18 16:23:55 +00:00
gs - > xmlMemStrdup = ( xmlStrdupFunc ) xmlStrdup ;
2001-10-12 17:29:10 +00:00
# endif
gs - > xmlGenericErrorContext = NULL ;
gs - > xmlGetWarningsDefaultValue = 1 ;
gs - > xmlIndentTreeOutput = 0 ;
gs - > xmlKeepBlanksDefaultValue = 1 ;
gs - > xmlLineNumbersDefaultValue = 0 ;
gs - > xmlLoadExtDtdDefaultValue = 0 ;
gs - > xmlParserDebugEntities = 0 ;
gs - > xmlParserVersion = LIBXML_VERSION_STRING ;
gs - > xmlPedanticParserDefaultValue = 0 ;
gs - > xmlSaveNoEmptyTags = 0 ;
gs - > xmlSubstituteEntitiesDefaultValue = 0 ;
}
2001-11-04 20:19:12 +00:00
# ifdef LIBXML_DOCB_ENABLED
2001-10-12 17:29:10 +00:00
# undef docbDefaultSAXHandler
xmlSAXHandler *
__docbDefaultSAXHandler ( void ) {
if ( IS_MAIN_THREAD )
return ( & docbDefaultSAXHandler ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > docbDefaultSAXHandler ) ;
2001-10-12 17:29:10 +00:00
}
2001-11-04 20:19:12 +00:00
# endif
2001-10-12 17:29:10 +00:00
2001-11-04 20:19:12 +00:00
# ifdef LIBXML_HTML_ENABLED
2001-10-12 17:29:10 +00:00
# undef htmlDefaultSAXHandler
xmlSAXHandler *
__htmlDefaultSAXHandler ( void ) {
if ( IS_MAIN_THREAD )
return ( & htmlDefaultSAXHandler ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > htmlDefaultSAXHandler ) ;
2001-10-12 17:29:10 +00:00
}
2001-11-04 20:19:12 +00:00
# endif
/*
* Everything starting from the line below is
* Automatically generated by build_glob . py .
* Do not modify the previous line .
*/
2001-10-12 17:29:10 +00:00
# undef oldXMLWDcompatibility
int *
__oldXMLWDcompatibility ( void ) {
if ( IS_MAIN_THREAD )
return ( & oldXMLWDcompatibility ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > oldXMLWDcompatibility ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlBufferAllocScheme
xmlBufferAllocationScheme *
__xmlBufferAllocScheme ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlBufferAllocScheme ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlBufferAllocScheme ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlDefaultBufferSize
int *
__xmlDefaultBufferSize ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlDefaultBufferSize ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlDefaultBufferSize ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlDefaultSAXHandler
xmlSAXHandler *
__xmlDefaultSAXHandler ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlDefaultSAXHandler ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlDefaultSAXHandler ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlDefaultSAXLocator
xmlSAXLocator *
__xmlDefaultSAXLocator ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlDefaultSAXLocator ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlDefaultSAXLocator ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlDoValidityCheckingDefaultValue
int *
__xmlDoValidityCheckingDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlDoValidityCheckingDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlDoValidityCheckingDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlGenericError
xmlGenericErrorFunc *
__xmlGenericError ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlGenericError ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlGenericError ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlGenericErrorContext
void * *
__xmlGenericErrorContext ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlGenericErrorContext ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlGenericErrorContext ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlGetWarningsDefaultValue
int *
__xmlGetWarningsDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlGetWarningsDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlGetWarningsDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlIndentTreeOutput
int *
__xmlIndentTreeOutput ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlIndentTreeOutput ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlIndentTreeOutput ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlKeepBlanksDefaultValue
int *
__xmlKeepBlanksDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlKeepBlanksDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlKeepBlanksDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlLineNumbersDefaultValue
int *
__xmlLineNumbersDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlLineNumbersDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlLineNumbersDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlLoadExtDtdDefaultValue
int *
__xmlLoadExtDtdDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlLoadExtDtdDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlLoadExtDtdDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlParserDebugEntities
int *
__xmlParserDebugEntities ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlParserDebugEntities ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlParserDebugEntities ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlParserVersion
const char * *
__xmlParserVersion ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlParserVersion ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlParserVersion ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlPedanticParserDefaultValue
int *
__xmlPedanticParserDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlPedanticParserDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlPedanticParserDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlSaveNoEmptyTags
int *
__xmlSaveNoEmptyTags ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlSaveNoEmptyTags ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlSaveNoEmptyTags ) ;
2001-10-12 17:29:10 +00:00
}
# undef xmlSubstituteEntitiesDefaultValue
int *
__xmlSubstituteEntitiesDefaultValue ( void ) {
if ( IS_MAIN_THREAD )
return ( & xmlSubstituteEntitiesDefaultValue ) ;
else
2001-10-13 09:15:48 +00:00
return ( & xmlGetGlobalState ( ) - > xmlSubstituteEntitiesDefaultValue ) ;
2001-10-12 17:29:10 +00:00
}