ReactOS 0.4.16-dev-197-g92996da
|
#include "libxml.h"
#include <stdlib.h>
#include <string.h>
#include <libxml/globals.h>
#include <libxml/xmlmemory.h>
#include <libxml/threads.h>
#include <libxml/SAX.h>
Go to the source code of this file.
Macros | |
#define | IN_LIBXML |
#define | IS_MAIN_THREAD 1 |
Definition at line 751 of file globals.c.
xmlBufferAllocationScheme * __xmlBufferAllocScheme | ( | void | ) |
xmlSAXLocator * __xmlDefaultSAXLocator | ( | void | ) |
xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue | ( | void | ) |
xmlGenericErrorFunc * __xmlGenericError | ( | void | ) |
xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue | ( | void | ) |
Definition at line 1073 of file globals.c.
xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue | ( | void | ) |
Definition at line 1064 of file globals.c.
xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue | ( | void | ) |
xmlStructuredErrorFunc * __xmlStructuredError | ( | void | ) |
xmlCleanupGlobals:
DEPRECATED: This function will be made private. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all.
Additional cleanup for multi-threading
Definition at line 535 of file globals.c.
Referenced by xmlCleanupParser().
xmlDeregisterNodeFunc xmlDeregisterNodeDefault | ( | xmlDeregisterNodeFunc | func | ) |
xmlDeregisterNodeDefault: @func: function pointer to the new DeregisterNodeFunc
Registers a callback for node destruction
Returns the previous value of the deregistration function
Definition at line 611 of file globals.c.
Referenced by main().
xmlGenericErrorDefaultFunc: @ctx: an error context @msg: the message to display/transmit ...: extra parameters for the message display
Default handler for out of context error messages.
Definition at line 19 of file error.c.
Referenced by initGenericErrorDefaultFunc(), xmlSetGenericErrorFunc(), and xmlThrDefSetGenericErrorFunc().
xmlInitGlobals:
DEPRECATED: This function will be made private. Call xmlInitParser to initialize the library.
Additional initialisation for multi-threading
Definition at line 48 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlInitParser().
void xmlInitializeGlobalState | ( | xmlGlobalStatePtr | gs | ) |
xmlInitializeGlobalState: @gs: a pointer to a newly allocated global state
xmlInitializeGlobalState() initialize a global state with all the default values of the library.
Definition at line 454 of file globals.c.
Referenced by xmlGetGlobalState().
xmlRegisterNodeFunc xmlRegisterNodeDefault | ( | xmlRegisterNodeFunc | func | ) |
xmlRegisterNodeDefault: @func: function pointer to the new RegisterNodeFunc
Registers a callback for node creation
Returns the old value of the registration function
Definition at line 578 of file globals.c.
Referenced by main().
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme | ( | xmlBufferAllocationScheme | v | ) |
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault | ( | xmlDeregisterNodeFunc | func | ) |
Definition at line 621 of file globals.c.
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault | ( | xmlOutputBufferCreateFilenameFunc | func | ) |
Definition at line 653 of file globals.c.
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault | ( | xmlParserInputBufferCreateFilenameFunc | func | ) |
Definition at line 636 of file globals.c.
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault | ( | xmlRegisterNodeFunc | func | ) |
Definition at line 588 of file globals.c.
void xmlThrDefSetGenericErrorFunc | ( | void * | ctx, |
xmlGenericErrorFunc | handler | ||
) |
DOC_DISABLE : we ignore missing doc for the xmlThrDef functions, those are really internal work
Definition at line 551 of file globals.c.
void xmlThrDefSetStructuredErrorFunc | ( | void * | ctx, |
xmlStructuredErrorFunc | handler | ||
) |
int oldXMLWDcompatibility = 0 |
oldXMLWDcompatibility:
Global setting, DEPRECATED.
Definition at line 200 of file globals.c.
Referenced by __oldXMLWDcompatibility().
xmlBufferAllocationScheme xmlBufferAllocScheme = XML_BUFFER_ALLOC_EXACT |
xmlBufferAllocScheme:
Global setting, default allocation policy for buffers, default is XML_BUFFER_ALLOC_EXACT
Definition at line 181 of file globals.c.
Referenced by __xmlBufferAllocScheme().
|
static |
Definition at line 182 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefBufferAllocScheme().
int xmlDefaultBufferSize = BASE_BUFFER_SIZE |
xmlDefaultBufferSize:
Global setting, default buffer size. Default value is BASE_BUFFER_SIZE
Definition at line 188 of file globals.c.
Referenced by __xmlDefaultBufferSize().
|
static |
Definition at line 189 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefDefaultBufferSize().
xmlSAXLocator xmlDefaultSAXLocator |
xmlDefaultSAXLocator:
The default SAX Locator { getPublicId, getSystemId, getLineNumber, getColumnNumber}
Definition at line 401 of file globals.c.
Referenced by __xmlDefaultSAXLocator().
xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue = NULL |
Definition at line 278 of file globals.c.
Referenced by __xmlDeregisterNodeDefaultValue(), and xmlDeregisterNodeDefault().
|
static |
Definition at line 279 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefDeregisterNodeDefault().
int xmlDoValidityCheckingDefaultValue = 0 |
xmlDoValidityCheckingDefaultValue:
Global setting, indicate that the parser should work in validating mode. Disabled by default.
Definition at line 216 of file globals.c.
Referenced by __xmlDoValidityCheckingDefaultValue().
|
static |
Definition at line 217 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefDoValidityCheckingDefaultValue().
xmlFreeFunc xmlFree = free |
xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc |
xmlGenericError:
Global setting: function used for generic error callbacks
Definition at line 301 of file globals.c.
Referenced by __xmlGenericError().
xmlGenericErrorContext:
Global setting passed to generic error callbacks
Definition at line 315 of file globals.c.
Referenced by __xmlGenericErrorContext().
Definition at line 316 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSetGenericErrorFunc().
|
static |
Definition at line 302 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSetGenericErrorFunc().
int xmlGetWarningsDefaultValue = 1 |
xmlGetWarningsDefaultValue:
Global setting, indicate that the parser should provide warnings. Activated by default.
Definition at line 224 of file globals.c.
Referenced by __xmlGetWarningsDefaultValue().
|
static |
Definition at line 225 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefGetWarningsDefaultValue().
int xmlIndentTreeOutput = 1 |
xmlIndentTreeOutput:
Global setting, asking the serializer to indent the output tree by default Enabled by default
Definition at line 335 of file globals.c.
Referenced by __xmlIndentTreeOutput().
|
static |
Definition at line 336 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefIndentTreeOutput().
int xmlKeepBlanksDefaultValue = 1 |
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.
Definition at line 262 of file globals.c.
Referenced by __xmlKeepBlanksDefaultValue().
|
static |
Definition at line 263 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefKeepBlanksDefaultValue().
xmlError xmlLastError |
Definition at line 324 of file globals.c.
Referenced by __xmlLastError(), and xmlCleanupGlobals().
int xmlLineNumbersDefaultValue = 0 |
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 application.
Definition at line 251 of file globals.c.
Referenced by __xmlLineNumbersDefaultValue().
|
static |
Definition at line 252 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefLineNumbersDefaultValue().
int xmlLoadExtDtdDefaultValue = 0 |
xmlLoadExtDtdDefaultValue:
Global setting, indicate that the parser should load DTD while not validating. Disabled by default.
Definition at line 233 of file globals.c.
Referenced by __xmlLoadExtDtdDefaultValue().
|
static |
Definition at line 234 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefLoadExtDtdDefaultValue().
xmlMallocFunc xmlMalloc = malloc |
xmlMallocFunc xmlMallocAtomic = malloc |
xmlMallocAtomic: @size: the size requested in bytes
The variable holding the libxml malloc() implementation for atomic data (i.e. blocks not containing pointers), useful when using a garbage collecting allocator.
Returns a pointer to the newly allocated block or NULL in case of error
xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup |
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue = NULL |
Definition at line 284 of file globals.c.
Referenced by __xmlOutputBufferCreateFilenameValue().
|
static |
Definition at line 285 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefOutputBufferCreateFilenameDefault().
int xmlParserDebugEntities = 0 |
xmlParserDebugEntities:
Global setting, asking the parser to print out debugging information. while handling entities. Disabled by default
Definition at line 208 of file globals.c.
Referenced by __xmlParserDebugEntities().
|
static |
Definition at line 209 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefParserDebugEntities().
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue = NULL |
Definition at line 281 of file globals.c.
Referenced by __xmlParserInputBufferCreateFilenameValue().
|
static |
Definition at line 282 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefParserInputBufferCreateFilenameDefault().
const char* xmlParserVersion = LIBXML_VERSION_STRING LIBXML_VERSION_EXTRA |
xmlParserVersion:
Constant string describing the internal version of the library
Definition at line 173 of file globals.c.
Referenced by __xmlParserVersion().
int xmlPedanticParserDefaultValue = 0 |
xmlPedanticParserDefaultValue:
Global setting, indicate that the parser be pedantic Disabled by default.
Definition at line 241 of file globals.c.
Referenced by __xmlPedanticParserDefaultValue().
|
static |
Definition at line 242 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefPedanticParserDefaultValue().
xmlReallocFunc xmlRealloc = realloc |
xmlRegisterNodeFunc xmlRegisterNodeDefaultValue = NULL |
Definition at line 276 of file globals.c.
Referenced by __xmlRegisterNodeDefaultValue(), and xmlRegisterNodeDefault().
|
static |
Definition at line 277 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefRegisterNodeDefault().
int xmlSaveNoEmptyTags = 0 |
xmlSaveNoEmptyTags:
Global setting, asking the serializer to not output empty tags as <empty> but <empty></empty>. those two forms are indistinguishable once parsed. Disabled by default
Definition at line 354 of file globals.c.
Referenced by __xmlSaveNoEmptyTags().
|
static |
Definition at line 355 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSaveNoEmptyTags().
xmlStructuredErrorFunc xmlStructuredError = NULL |
xmlStructuredError:
Global setting: function used for structured error callbacks
Definition at line 308 of file globals.c.
Referenced by __xmlStructuredError().
xmlStructuredErrorContext:
Global setting passed to structured error callbacks
Definition at line 322 of file globals.c.
Referenced by __xmlStructuredErrorContext().
Definition at line 323 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSetStructuredErrorFunc().
|
static |
Definition at line 309 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSetStructuredErrorFunc().
int xmlSubstituteEntitiesDefaultValue = 0 |
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.
Definition at line 273 of file globals.c.
Referenced by __xmlSubstituteEntitiesDefaultValue().
|
static |
Definition at line 274 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefSubstituteEntitiesDefaultValue().
|
static |
Definition at line 38 of file globals.c.
Referenced by xmlCleanupGlobals(), xmlInitGlobals(), xmlInitializeGlobalState(), xmlThrDefBufferAllocScheme(), xmlThrDefDefaultBufferSize(), xmlThrDefDeregisterNodeDefault(), xmlThrDefDoValidityCheckingDefaultValue(), xmlThrDefGetWarningsDefaultValue(), xmlThrDefIndentTreeOutput(), xmlThrDefKeepBlanksDefaultValue(), xmlThrDefLineNumbersDefaultValue(), xmlThrDefLoadExtDtdDefaultValue(), xmlThrDefOutputBufferCreateFilenameDefault(), xmlThrDefParserDebugEntities(), xmlThrDefParserInputBufferCreateFilenameDefault(), xmlThrDefPedanticParserDefaultValue(), xmlThrDefRegisterNodeDefault(), xmlThrDefSaveNoEmptyTags(), xmlThrDefSetGenericErrorFunc(), xmlThrDefSetStructuredErrorFunc(), xmlThrDefSubstituteEntitiesDefaultValue(), and xmlThrDefTreeIndentString().
xmlTreeIndentString:
The string used to do one-level indent. By default is equal to " " (two spaces)
Definition at line 343 of file globals.c.
Referenced by __xmlTreeIndentString().
Definition at line 344 of file globals.c.
Referenced by xmlInitializeGlobalState(), and xmlThrDefTreeIndentString().