Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
include/expat.h File Reference
#include <stdlib.h>
#include "expat_external.h"

Go to the source code of this file.

Data Structures

struct  XML_cp
 
struct  XML_Memory_Handling_Suite
 
struct  XML_Encoding
 
struct  XML_ParsingStatus
 
struct  XML_Expat_Version
 
struct  XML_Feature
 

Macros

#define XML_TRUE   ((XML_Bool) 1)
 
#define XML_FALSE   ((XML_Bool) 0)
 
#define XML_STATUS_ERROR   XML_STATUS_ERROR
 
#define XML_STATUS_OK   XML_STATUS_OK
 
#define XML_STATUS_SUSPENDED   XML_STATUS_SUSPENDED
 
#define XML_GetUserData(parser)   (*(void **)(parser))
 
#define XML_GetErrorLineNumber   XML_GetCurrentLineNumber
 
#define XML_GetErrorColumnNumber   XML_GetCurrentColumnNumber
 
#define XML_GetErrorByteIndex   XML_GetCurrentByteIndex
 
#define XML_MAJOR_VERSION   2
 
#define XML_MINOR_VERSION   0
 
#define XML_MICRO_VERSION   1
 

Typedefs

typedef struct XML_ParserStructXML_Parser
 
typedef unsigned char XML_Bool
 
typedef struct XML_cp XML_Content
 
typedef const XML_Charname
 
typedef const XML_Char
XML_Content
model
 
typedef const XML_Charelname
 
typedef const XML_Char const
XML_Char
attname
 
typedef const XML_Char const
XML_Char const XML_Char
att_type
 
typedef const XML_Char const
XML_Char const XML_Char const
XML_Char
dflt
 
typedef const XML_Char const
XML_Char const XML_Char const
XML_Char int 
isrequired
 
typedef const XML_Charversion
 
typedef const XML_Char const
XML_Char
encoding
 
typedef const XML_Char const
XML_Char int 
standalone
 
typedef const XML_Char const
XML_Char ** 
atts
 
typedef const XML_Chars
 
typedef const XML_Char int len
 
typedef const XML_Chartarget
 
typedef const XML_Char const
XML_Char
data
 
typedef const XML_ChardoctypeName
 
typedef const XML_Char const
XML_Char
sysid
 
typedef const XML_Char const
XML_Char const XML_Char
pubid
 
typedef const XML_Char const
XML_Char const XML_Char int 
has_internal_subset
 
typedef void(XMLCALLXML_EndDoctypeDeclHandler )(void *userData)
 
typedef const XML_CharentityName
 
typedef const XML_Char int is_parameter_entity
 
typedef const XML_Char int
const XML_Char
value
 
typedef const XML_Char int
const XML_Char int 
value_length
 
typedef const XML_Char int
const XML_Char int const
XML_Char
base
 
typedef const XML_Char int
const XML_Char int const
XML_Char const XML_Char
systemId
 
typedef const XML_Char int
const XML_Char int const
XML_Char const XML_Char const
XML_Char
publicId
 
typedef const XML_Char int
const XML_Char int const
XML_Char const XML_Char const
XML_Char const XML_Char
notationName
 
typedef const XML_Charprefix
 
typedef const XML_Char const
XML_Char
uri
 
typedef const XML_Charcontext
 
typedef const XML_Char
XML_Encoding
info
 

Enumerations

enum  XML_Status {
  XML_STATUS_ERROR = 0, XML_STATUS_ERROR = 0, XML_STATUS_OK = 1, XML_STATUS_OK = 1,
  XML_STATUS_SUSPENDED, XML_STATUS_ERROR = 0, XML_STATUS_ERROR = 0, XML_STATUS_OK = 1,
  XML_STATUS_OK = 1, XML_STATUS_SUSPENDED
}
 
enum  XML_Error {
  XML_ERROR_NONE, XML_ERROR_NO_MEMORY, XML_ERROR_SYNTAX, XML_ERROR_NO_ELEMENTS,
  XML_ERROR_INVALID_TOKEN, XML_ERROR_UNCLOSED_TOKEN, XML_ERROR_PARTIAL_CHAR, XML_ERROR_TAG_MISMATCH,
  XML_ERROR_DUPLICATE_ATTRIBUTE, XML_ERROR_JUNK_AFTER_DOC_ELEMENT, XML_ERROR_PARAM_ENTITY_REF, XML_ERROR_UNDEFINED_ENTITY,
  XML_ERROR_RECURSIVE_ENTITY_REF, XML_ERROR_ASYNC_ENTITY, XML_ERROR_BAD_CHAR_REF, XML_ERROR_BINARY_ENTITY_REF,
  XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF, XML_ERROR_MISPLACED_XML_PI, XML_ERROR_UNKNOWN_ENCODING, XML_ERROR_INCORRECT_ENCODING,
  XML_ERROR_UNCLOSED_CDATA_SECTION, XML_ERROR_EXTERNAL_ENTITY_HANDLING, XML_ERROR_NOT_STANDALONE, XML_ERROR_UNEXPECTED_STATE,
  XML_ERROR_ENTITY_DECLARED_IN_PE, XML_ERROR_FEATURE_REQUIRES_XML_DTD, XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING, XML_ERROR_UNBOUND_PREFIX,
  XML_ERROR_UNDECLARING_PREFIX, XML_ERROR_INCOMPLETE_PE, XML_ERROR_XML_DECL, XML_ERROR_TEXT_DECL,
  XML_ERROR_PUBLICID, XML_ERROR_SUSPENDED, XML_ERROR_NOT_SUSPENDED, XML_ERROR_ABORTED,
  XML_ERROR_FINISHED, XML_ERROR_SUSPEND_PE, XML_ERROR_RESERVED_PREFIX_XML, XML_ERROR_RESERVED_PREFIX_XMLNS,
  XML_ERROR_RESERVED_NAMESPACE_URI, XML_ERROR_NONE, XML_ERROR_NO_MEMORY, XML_ERROR_SYNTAX,
  XML_ERROR_NO_ELEMENTS, XML_ERROR_INVALID_TOKEN, XML_ERROR_UNCLOSED_TOKEN, XML_ERROR_PARTIAL_CHAR,
  XML_ERROR_TAG_MISMATCH, XML_ERROR_DUPLICATE_ATTRIBUTE, XML_ERROR_JUNK_AFTER_DOC_ELEMENT, XML_ERROR_PARAM_ENTITY_REF,
  XML_ERROR_UNDEFINED_ENTITY, XML_ERROR_RECURSIVE_ENTITY_REF, XML_ERROR_ASYNC_ENTITY, XML_ERROR_BAD_CHAR_REF,
  XML_ERROR_BINARY_ENTITY_REF, XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF, XML_ERROR_MISPLACED_XML_PI, XML_ERROR_UNKNOWN_ENCODING,
  XML_ERROR_INCORRECT_ENCODING, XML_ERROR_UNCLOSED_CDATA_SECTION, XML_ERROR_EXTERNAL_ENTITY_HANDLING, XML_ERROR_NOT_STANDALONE,
  XML_ERROR_UNEXPECTED_STATE, XML_ERROR_ENTITY_DECLARED_IN_PE, XML_ERROR_FEATURE_REQUIRES_XML_DTD, XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING,
  XML_ERROR_UNBOUND_PREFIX, XML_ERROR_UNDECLARING_PREFIX, XML_ERROR_INCOMPLETE_PE, XML_ERROR_XML_DECL,
  XML_ERROR_TEXT_DECL, XML_ERROR_PUBLICID, XML_ERROR_SUSPENDED, XML_ERROR_NOT_SUSPENDED,
  XML_ERROR_ABORTED, XML_ERROR_FINISHED, XML_ERROR_SUSPEND_PE, XML_ERROR_RESERVED_PREFIX_XML,
  XML_ERROR_RESERVED_PREFIX_XMLNS, XML_ERROR_RESERVED_NAMESPACE_URI
}
 
enum  XML_Content_Type {
  XML_CTYPE_EMPTY = 1, XML_CTYPE_ANY, XML_CTYPE_MIXED, XML_CTYPE_NAME,
  XML_CTYPE_CHOICE, XML_CTYPE_SEQ, XML_CTYPE_EMPTY = 1, XML_CTYPE_ANY,
  XML_CTYPE_MIXED, XML_CTYPE_NAME, XML_CTYPE_CHOICE, XML_CTYPE_SEQ
}
 
enum  XML_Content_Quant {
  XML_CQUANT_NONE, XML_CQUANT_OPT, XML_CQUANT_REP, XML_CQUANT_PLUS,
  XML_CQUANT_NONE, XML_CQUANT_OPT, XML_CQUANT_REP, XML_CQUANT_PLUS
}
 
enum  XML_Parsing {
  XML_INITIALIZED, XML_PARSING, XML_FINISHED, XML_SUSPENDED,
  XML_INITIALIZED, XML_PARSING, XML_FINISHED, XML_SUSPENDED
}
 
enum  XML_ParamEntityParsing {
  XML_PARAM_ENTITY_PARSING_NEVER, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE, XML_PARAM_ENTITY_PARSING_ALWAYS, XML_PARAM_ENTITY_PARSING_NEVER,
  XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE, XML_PARAM_ENTITY_PARSING_ALWAYS
}
 
enum  XML_FeatureEnum {
  XML_FEATURE_END = 0, XML_FEATURE_UNICODE, XML_FEATURE_UNICODE_WCHAR_T, XML_FEATURE_DTD,
  XML_FEATURE_CONTEXT_BYTES, XML_FEATURE_MIN_SIZE, XML_FEATURE_SIZEOF_XML_CHAR, XML_FEATURE_SIZEOF_XML_LCHAR,
  XML_FEATURE_NS, XML_FEATURE_LARGE_SIZE, XML_FEATURE_END = 0, XML_FEATURE_UNICODE,
  XML_FEATURE_UNICODE_WCHAR_T, XML_FEATURE_DTD, XML_FEATURE_CONTEXT_BYTES, XML_FEATURE_MIN_SIZE,
  XML_FEATURE_SIZEOF_XML_CHAR, XML_FEATURE_SIZEOF_XML_LCHAR, XML_FEATURE_NS, XML_FEATURE_LARGE_SIZE
}
 

Functions

typedef void (XMLCALL *XML_ElementDeclHandler)(void *userData
 
 XML_SetElementDeclHandler (XML_Parser parser, XML_ElementDeclHandler eldecl)
 
 XML_SetAttlistDeclHandler (XML_Parser parser, XML_AttlistDeclHandler attdecl)
 
 XML_SetXmlDeclHandler (XML_Parser parser, XML_XmlDeclHandler xmldecl)
 
 XML_ParserCreate (const XML_Char *encoding)
 
 XML_ParserCreateNS (const XML_Char *encoding, XML_Char namespaceSeparator)
 
 XML_ParserCreate_MM (const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite, const XML_Char *namespaceSeparator)
 
 XML_ParserReset (XML_Parser parser, const XML_Char *encoding)
 
 XML_SetEntityDeclHandler (XML_Parser parser, XML_EntityDeclHandler handler)
 
typedef int (XMLCALL *XML_NotStandaloneHandler)(void *userData)
 
 XML_SetElementHandler (XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end)
 
 XML_SetStartElementHandler (XML_Parser parser, XML_StartElementHandler handler)
 
 XML_SetEndElementHandler (XML_Parser parser, XML_EndElementHandler handler)
 
 XML_SetCharacterDataHandler (XML_Parser parser, XML_CharacterDataHandler handler)
 
 XML_SetProcessingInstructionHandler (XML_Parser parser, XML_ProcessingInstructionHandler handler)
 
 XML_SetCommentHandler (XML_Parser parser, XML_CommentHandler handler)
 
 XML_SetCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end)
 
 XML_SetStartCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start)
 
 XML_SetEndCdataSectionHandler (XML_Parser parser, XML_EndCdataSectionHandler end)
 
 XML_SetDefaultHandler (XML_Parser parser, XML_DefaultHandler handler)
 
 XML_SetDefaultHandlerExpand (XML_Parser parser, XML_DefaultHandler handler)
 
 XML_SetDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end)
 
 XML_SetStartDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start)
 
 XML_SetEndDoctypeDeclHandler (XML_Parser parser, XML_EndDoctypeDeclHandler end)
 
 XML_SetUnparsedEntityDeclHandler (XML_Parser parser, XML_UnparsedEntityDeclHandler handler)
 
 XML_SetNotationDeclHandler (XML_Parser parser, XML_NotationDeclHandler handler)
 
 XML_SetNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end)
 
 XML_SetStartNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start)
 
 XML_SetEndNamespaceDeclHandler (XML_Parser parser, XML_EndNamespaceDeclHandler end)
 
 XML_SetNotStandaloneHandler (XML_Parser parser, XML_NotStandaloneHandler handler)
 
 XML_SetExternalEntityRefHandler (XML_Parser parser, XML_ExternalEntityRefHandler handler)
 
 XML_SetExternalEntityRefHandlerArg (XML_Parser parser, void *arg)
 
 XML_SetSkippedEntityHandler (XML_Parser parser, XML_SkippedEntityHandler handler)
 
 XML_SetUnknownEncodingHandler (XML_Parser parser, XML_UnknownEncodingHandler handler, void *encodingHandlerData)
 
 XML_DefaultCurrent (XML_Parser parser)
 
 XML_SetReturnNSTriplet (XML_Parser parser, int do_nst)
 
 XML_SetUserData (XML_Parser parser, void *userData)
 
 XML_SetEncoding (XML_Parser parser, const XML_Char *encoding)
 
 XML_UseParserAsHandlerArg (XML_Parser parser)
 
 XML_UseForeignDTD (XML_Parser parser, XML_Bool useDTD)
 
 XML_SetBase (XML_Parser parser, const XML_Char *base)
 
 XML_GetBase (XML_Parser parser)
 
 XML_GetSpecifiedAttributeCount (XML_Parser parser)
 
 XML_GetIdAttributeIndex (XML_Parser parser)
 
 XML_Parse (XML_Parser parser, const char *s, int len, int isFinal)
 
 XML_GetBuffer (XML_Parser parser, int len)
 
 XML_ParseBuffer (XML_Parser parser, int len, int isFinal)
 
 XML_StopParser (XML_Parser parser, XML_Bool resumable)
 
 XML_ResumeParser (XML_Parser parser)
 
 XML_GetParsingStatus (XML_Parser parser, XML_ParsingStatus *status)
 
 XML_ExternalEntityParserCreate (XML_Parser parser, const XML_Char *context, const XML_Char *encoding)
 
 XML_SetParamEntityParsing (XML_Parser parser, enum XML_ParamEntityParsing parsing)
 
 XML_GetErrorCode (XML_Parser parser)
 
 XMLPARSEAPI (XML_Size) XML_GetCurrentLineNumber(XML_Parser parser)
 
 XMLPARSEAPI (XML_Index) XML_GetCurrentByteIndex(XML_Parser parser)
 
 XML_GetCurrentByteCount (XML_Parser parser)
 
 XML_GetInputContext (XML_Parser parser, int *offset, int *size)
 
 XML_FreeContentModel (XML_Parser parser, XML_Content *model)
 
 XML_MemMalloc (XML_Parser parser, size_t size)
 
 XML_MemRealloc (XML_Parser parser, void *ptr, size_t size)
 
 XML_MemFree (XML_Parser parser, void *ptr)
 
 XML_ParserFree (XML_Parser parser)
 
 XML_ErrorString (enum XML_Error code)
 
 XML_ExpatVersion (void)
 
 XML_ExpatVersionInfo (void)
 
 XML_GetFeatureList (void)
 

Macro Definition Documentation

#define XML_FALSE   ((XML_Bool) 0)
#define XML_GetErrorByteIndex   XML_GetCurrentByteIndex

Definition at line 936 of file include/expat.h.

#define XML_GetErrorColumnNumber   XML_GetCurrentColumnNumber

Definition at line 935 of file include/expat.h.

#define XML_GetErrorLineNumber   XML_GetCurrentLineNumber

Definition at line 934 of file include/expat.h.

#define XML_GetUserData (   parser)    (*(void **)(parser))

Definition at line 674 of file include/expat.h.

#define XML_MAJOR_VERSION   2

Definition at line 1006 of file include/expat.h.

Referenced by XML_ExpatVersion(), and XML_ExpatVersionInfo().

#define XML_MICRO_VERSION   1

Definition at line 1008 of file include/expat.h.

Referenced by XML_ExpatVersion(), and XML_ExpatVersionInfo().

#define XML_MINOR_VERSION   0

Definition at line 1007 of file include/expat.h.

Referenced by XML_ExpatVersion(), and XML_ExpatVersionInfo().

#define XML_STATUS_ERROR   XML_STATUS_ERROR
#define XML_STATUS_OK   XML_STATUS_OK
#define XML_STATUS_SUSPENDED   XML_STATUS_SUSPENDED
#define XML_TRUE   ((XML_Bool) 1)

Typedef Documentation

typedef const XML_Char const XML_Char const XML_Char* att_type

Definition at line 168 of file include/expat.h.

typedef const XML_Char const XML_Char* attname

Definition at line 168 of file include/expat.h.

typedef const XML_Char const XML_Char** atts

Definition at line 253 of file include/expat.h.

typedef const XML_Char const XML_Char * base

Definition at line 331 of file include/expat.h.

typedef const XML_Char* context

Definition at line 434 of file include/expat.h.

typedef const XML_Char * data

Definition at line 268 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char const XML_Char* dflt

Definition at line 168 of file include/expat.h.

typedef const XML_Char* doctypeName

Definition at line 300 of file include/expat.h.

typedef const XML_Char* elname

Definition at line 168 of file include/expat.h.

typedef const XML_Char const XML_Char* encoding

Definition at line 187 of file include/expat.h.

typedef const XML_Char * entityName

Definition at line 331 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char int has_internal_subset

Definition at line 300 of file include/expat.h.

typedef const XML_Char XML_Encoding* info

Definition at line 530 of file include/expat.h.

Definition at line 331 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char const XML_Char int isrequired

Definition at line 168 of file include/expat.h.

typedef const XML_Char int len

Definition at line 262 of file include/expat.h.

typedef const XML_Char XML_Content* model

Definition at line 151 of file include/expat.h.

typedef const XML_Char * name

Definition at line 151 of file include/expat.h.

typedef const XML_Char * notationName

Definition at line 331 of file include/expat.h.

typedef const XML_Char * prefix

Definition at line 380 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char* pubid

Definition at line 300 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char const XML_Char * publicId

Definition at line 331 of file include/expat.h.

typedef const XML_Char * s

Definition at line 262 of file include/expat.h.

typedef const XML_Char const XML_Char int standalone

Definition at line 187 of file include/expat.h.

typedef const XML_Char const XML_Char* sysid

Definition at line 300 of file include/expat.h.

typedef const XML_Char const XML_Char const XML_Char * systemId

Definition at line 331 of file include/expat.h.

typedef const XML_Char* target

Definition at line 268 of file include/expat.h.

typedef const XML_Char const XML_Char* uri

Definition at line 380 of file include/expat.h.

typedef const XML_Char int const XML_Char* value

Definition at line 331 of file include/expat.h.

typedef const XML_Char int const XML_Char int value_length

Definition at line 331 of file include/expat.h.

typedef const XML_Char* version

Definition at line 187 of file include/expat.h.

typedef unsigned char XML_Bool

Definition at line 28 of file include/expat.h.

typedef struct XML_cp XML_Content

Definition at line 135 of file include/expat.h.

typedef void(XMLCALL * XML_EndDoctypeDeclHandler)(void *userData)

Definition at line 309 of file include/expat.h.

typedef struct XML_ParserStruct* XML_Parser

Definition at line 25 of file include/expat.h.

Enumeration Type Documentation

Enumerator
XML_CQUANT_NONE 
XML_CQUANT_OPT 
XML_CQUANT_REP 
XML_CQUANT_PLUS 
XML_CQUANT_NONE 
XML_CQUANT_OPT 
XML_CQUANT_REP 
XML_CQUANT_PLUS 

Definition at line 110 of file include/expat.h.

Enumerator
XML_CTYPE_EMPTY 
XML_CTYPE_ANY 
XML_CTYPE_MIXED 
XML_CTYPE_NAME 
XML_CTYPE_CHOICE 
XML_CTYPE_SEQ 
XML_CTYPE_EMPTY 
XML_CTYPE_ANY 
XML_CTYPE_MIXED 
XML_CTYPE_NAME 
XML_CTYPE_CHOICE 
XML_CTYPE_SEQ 

Definition at line 101 of file include/expat.h.

enum XML_Error
Enumerator
XML_ERROR_NONE 
XML_ERROR_NO_MEMORY 
XML_ERROR_SYNTAX 
XML_ERROR_NO_ELEMENTS 
XML_ERROR_INVALID_TOKEN 
XML_ERROR_UNCLOSED_TOKEN 
XML_ERROR_PARTIAL_CHAR 
XML_ERROR_TAG_MISMATCH 
XML_ERROR_DUPLICATE_ATTRIBUTE 
XML_ERROR_JUNK_AFTER_DOC_ELEMENT 
XML_ERROR_PARAM_ENTITY_REF 
XML_ERROR_UNDEFINED_ENTITY 
XML_ERROR_RECURSIVE_ENTITY_REF 
XML_ERROR_ASYNC_ENTITY 
XML_ERROR_BAD_CHAR_REF 
XML_ERROR_BINARY_ENTITY_REF 
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF 
XML_ERROR_MISPLACED_XML_PI 
XML_ERROR_UNKNOWN_ENCODING 
XML_ERROR_INCORRECT_ENCODING 
XML_ERROR_UNCLOSED_CDATA_SECTION 
XML_ERROR_EXTERNAL_ENTITY_HANDLING 
XML_ERROR_NOT_STANDALONE 
XML_ERROR_UNEXPECTED_STATE 
XML_ERROR_ENTITY_DECLARED_IN_PE 
XML_ERROR_FEATURE_REQUIRES_XML_DTD 
XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING 
XML_ERROR_UNBOUND_PREFIX 
XML_ERROR_UNDECLARING_PREFIX 
XML_ERROR_INCOMPLETE_PE 
XML_ERROR_XML_DECL 
XML_ERROR_TEXT_DECL 
XML_ERROR_PUBLICID 
XML_ERROR_SUSPENDED 
XML_ERROR_NOT_SUSPENDED 
XML_ERROR_ABORTED 
XML_ERROR_FINISHED 
XML_ERROR_SUSPEND_PE 
XML_ERROR_RESERVED_PREFIX_XML 
XML_ERROR_RESERVED_PREFIX_XMLNS 
XML_ERROR_RESERVED_NAMESPACE_URI 
XML_ERROR_NONE 
XML_ERROR_NO_MEMORY 
XML_ERROR_SYNTAX 
XML_ERROR_NO_ELEMENTS 
XML_ERROR_INVALID_TOKEN 
XML_ERROR_UNCLOSED_TOKEN 
XML_ERROR_PARTIAL_CHAR 
XML_ERROR_TAG_MISMATCH 
XML_ERROR_DUPLICATE_ATTRIBUTE 
XML_ERROR_JUNK_AFTER_DOC_ELEMENT 
XML_ERROR_PARAM_ENTITY_REF 
XML_ERROR_UNDEFINED_ENTITY 
XML_ERROR_RECURSIVE_ENTITY_REF 
XML_ERROR_ASYNC_ENTITY 
XML_ERROR_BAD_CHAR_REF 
XML_ERROR_BINARY_ENTITY_REF 
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF 
XML_ERROR_MISPLACED_XML_PI 
XML_ERROR_UNKNOWN_ENCODING 
XML_ERROR_INCORRECT_ENCODING 
XML_ERROR_UNCLOSED_CDATA_SECTION 
XML_ERROR_EXTERNAL_ENTITY_HANDLING 
XML_ERROR_NOT_STANDALONE 
XML_ERROR_UNEXPECTED_STATE 
XML_ERROR_ENTITY_DECLARED_IN_PE 
XML_ERROR_FEATURE_REQUIRES_XML_DTD 
XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING 
XML_ERROR_UNBOUND_PREFIX 
XML_ERROR_UNDECLARING_PREFIX 
XML_ERROR_INCOMPLETE_PE 
XML_ERROR_XML_DECL 
XML_ERROR_TEXT_DECL 
XML_ERROR_PUBLICID 
XML_ERROR_SUSPENDED 
XML_ERROR_NOT_SUSPENDED 
XML_ERROR_ABORTED 
XML_ERROR_FINISHED 
XML_ERROR_SUSPEND_PE 
XML_ERROR_RESERVED_PREFIX_XML 
XML_ERROR_RESERVED_PREFIX_XMLNS 
XML_ERROR_RESERVED_NAMESPACE_URI 

Definition at line 54 of file include/expat.h.

54  {
82  /* Added in 1.95.7. */
84  /* Added in 1.95.8. */
95  /* Added in 2.0. */
99 };
Enumerator
XML_FEATURE_END 
XML_FEATURE_UNICODE 
XML_FEATURE_UNICODE_WCHAR_T 
XML_FEATURE_DTD 
XML_FEATURE_CONTEXT_BYTES 
XML_FEATURE_MIN_SIZE 
XML_FEATURE_SIZEOF_XML_CHAR 
XML_FEATURE_SIZEOF_XML_LCHAR 
XML_FEATURE_NS 
XML_FEATURE_LARGE_SIZE 
XML_FEATURE_END 
XML_FEATURE_UNICODE 
XML_FEATURE_UNICODE_WCHAR_T 
XML_FEATURE_DTD 
XML_FEATURE_CONTEXT_BYTES 
XML_FEATURE_MIN_SIZE 
XML_FEATURE_SIZEOF_XML_CHAR 
XML_FEATURE_SIZEOF_XML_LCHAR 
XML_FEATURE_NS 
XML_FEATURE_LARGE_SIZE 

Definition at line 977 of file include/expat.h.

Enumerator
XML_PARAM_ENTITY_PARSING_NEVER 
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE 
XML_PARAM_ENTITY_PARSING_ALWAYS 
XML_PARAM_ENTITY_PARSING_NEVER 
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE 
XML_PARAM_ENTITY_PARSING_ALWAYS 

Definition at line 853 of file include/expat.h.

Enumerator
XML_INITIALIZED 
XML_PARSING 
XML_FINISHED 
XML_SUSPENDED 
XML_INITIALIZED 
XML_PARSING 
XML_FINISHED 
XML_SUSPENDED 

Definition at line 812 of file include/expat.h.

enum XML_Status
Enumerator
XML_STATUS_ERROR 
XML_STATUS_ERROR 
XML_STATUS_OK 
XML_STATUS_OK 
XML_STATUS_SUSPENDED 
XML_STATUS_ERROR 
XML_STATUS_ERROR 
XML_STATUS_OK 
XML_STATUS_OK 
XML_STATUS_SUSPENDED 

Definition at line 45 of file include/expat.h.

45  {
46  XML_STATUS_ERROR = 0,
47 #define XML_STATUS_ERROR XML_STATUS_ERROR
48  XML_STATUS_OK = 1,
49 #define XML_STATUS_OK XML_STATUS_OK
51 #define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
52 };
#define XML_STATUS_OK
Definition: include/expat.h:49
#define XML_STATUS_SUSPENDED
#define XML_STATUS_ERROR
Definition: include/expat.h:47

Function Documentation

typedef int ( XMLCALL XML_NotStandaloneHandler)

Referenced by CML2ExpVoxels::add(), G4HepRepFileXMLWriter::addAttValue(), G4AdjointCSMatrix::AddData(), G4DigiManager::AddNewModule(), G4VarNtp::addParticle(), G4NeutronHPFinalState::adjust_final_state(), UVoxelizer::AllocatedMemory(), G4LENDCapture::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDFission::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4Abla::breakItUp(), G4AdjointCSManager::BuildCrossSectionMatrices(), G4GMocrenIO::calcDoseDistScale(), G4QMDNucleus::CalEnergyAndAngularMomentumInCM(), CML2WorldConstruction::checkVolumeOverlap(), testem0.App::cmd_beamOn(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForScatProj(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForSecond(), G4GMocrenIO::convertDensityToHU(), CLHEP::crc32ul(), G4LENDModel::create_used_target_map(), G4LENDCrossSection::create_used_target_map(), CLHEP::DoubConv::d2x(), G4GenericMessenger::DeclareProperty(), deflate_rle(), diagr(), UVoxelizer::DisplayListNodes(), dminit(), G4ITModelProcessor::DoCalculateStep(), dttest(), G4VScoreWriter::DumpAllQuantitiesToFile(), G4VScoreWriter::DumpQuantityToFile(), BrachyUserScoreWriter::DumpQuantityToFile(), RE03UserScoreWriter::DumpQuantityToFile(), G4AblaFission::even_odd(), ficonf(), findComponentsFastest(), G4DigiManager::FindDigitizerModule(), G4AblaFission::fissionDistri(), CLHEP::RanecuEngine::flat(), CLHEP::RanecuEngine::flatArray(), CLHEP::HepStat::flatToGaussian(), G4JpegCoder::ForwardDCT(), fozoca(), G4ITModelHandler::G4ITModelHandler(), G4ITModelProcessor::G4ITModelProcessor(), B5PrimaryGeneratorAction::GeneratePrimaries(), cheprep::DefaultHepRepDefinition::getAttDefFromNode(), cheprep::DefaultHepRepAttribute::getAttValueFromNode(), UVoxelizer::GetBitsPerSlice(), G4QMDParticipant::GetChargeInUnitOfEplus(), G4DCtable::GetCollectionID(), cheprep::DefaultHepRepAttDef::getLowerCaseName(), cheprep::DefaultHepRepAttValue::getLowerCaseName(), cheprep::DefaultHepRepAttValue::getLowerCaseString(), CML2ExpVoxels::getMaxNumberOfEvents(), __1DSortOut::GetMidle(), CML2ExpVoxels::getMinNumberOfEvents(), CLHEP::RanecuEngine::getState(), gzprintf(), G4ElasticHadrNucleusHE::HadrNucDifferCrSec(), G4HadSignalHandler_local::HandleIt(), harsca(), G4AblaFission::haz(), G4Abla::haz(), hijing(), hisfil(), hisfil2(), G4AblaFission::idint(), G4Abla::idint(), inflate(), inflate_table(), G4ITModelHandler::Initialize(), G4MTRunManager::InitializeEventLoop(), G4AdjointInterpolator::InterpolateWithIndexVector(), laptab(), leptox(), G4DigiManager::List(), longest_match(), lqcdpr(), lqqbev(), lremh(), lu4ent(), lucell(), ludecy(), luindf(), lujoin(), lukfdi(), luprep(), lushow(), lusphe(), lustrf(), lutabu(), lutest(), luthru(), lux4jt(), luxkfl(), G4JpegCoder::makeYCC(), G4LatticeLogical::MapKtoV(), G4LatticeLogical::MapKtoVDir(), MarshaledG4String::marshal1(), MarshaledExN04MuonHit::marshal1(), MarshaledExN04TrackerHit::marshal1(), MarshaledG4VHitsCollection::marshal1(), MarshaledG4HCofThisEvent::marshal1(), MarshaledG4HitsCollection::marshal1(), MarshaledExN02TrackerHit::marshal1(), MarshaledExN04CalorimeterHit::marshal1(), MarshaledG4THitsCollection< T >::marshal1(), MarshaledExN04MuonHit::marshal2(), MarshaledExN04TrackerHit::marshal2(), MarshaledG4VHitsCollection::marshal2(), MarshaledExN04CalorimeterHit::marshal2(), MarshaledExN02TrackerHit::marshal2(), MarshaledExN04CalorimeterHit::marshal3(), MarshaledG4VHitsCollection::marshal3(), MarshaledExN02TrackerHit::marshal3(), MarshaledExN04CalorimeterHit::marshal4(), MarshaledExN02TrackerHit::marshal4(), MarshaledObj::marshalPrimitive(), G4AblaFission::nint(), G4Abla::nint(), CLHEP::HepJamesRandom::operator unsigned int(), CLHEP::RanecuEngine::operator unsigned int(), CLHEP::RanluxEngine::operator unsigned int(), UPolyhedraSide::PhiSegment(), phoerr(), pomdi(), G4KDMap::PopOutMiddle(), G4Analyser::printResultsNtuple(), py4ent(), pycell(), pydecy(), pyeig4(), pygamm(), pyindf(), pyjoin(), pykfdi(), pymult(), pyofsh(), pyplot(), pyprep(), pyrand(), pyresd(), pyscat(), pyshow(), pysigh(), pysphe(), pyspli(), pystrf(), pytabu(), pytest(), pythru(), pyx4jt(), pyxkfl(), CLHEP::RanshiEngine::RanshiEngine(), G4ITModelHandler::RegisterModel(), G4DCtable::Registor(), cheprep::DefaultHepRepAttribute::removeAttValue(), G4DNADamages::Reset(), CML2ExpVoxels::resetNEventsInVoxels(), CLHEP::RanecuEngine::restoreStatus(), G4GMocrenIO::retrieveData(), G4GMocrenIO::retrieveData2(), G4GMocrenIO::retrieveData3(), G4GMocrenIO::retrieveData4(), romg(), CML2ExpVoxels::saveResults(), UPolycone::SetOriginalParameters(), CLHEP::NonRandomEngine::setRandomSequence(), CLHEP::MTwistEngine::setSeed(), CLHEP::RanshiEngine::setSeeds(), G4DigiManager::SetVerboseLevel(), G4GMocrenIO::storeData2(), G4GMocrenIO::storeData3(), G4GMocrenIO::storeData4(), RunAction::SumFluence(), tpia_angular_getFromElement(), tpia_angularEnergy_getFromElement(), tpia_channel_getFromElement(), tpia_misc_sampleEqualProbableBin(), tpia_miscNameToZAm(), tpia_product_sampleMultiplicity(), tpia_target_heated_read(), CLHEP::RandLandau::transform(), CLHEP::RandGaussQ::transformQuick(), MarshaledG4String::unmarshal1(), MarshaledExN04MuonHit::unmarshal1(), MarshaledExN04TrackerHit::unmarshal1(), MarshaledG4VHitsCollection::unmarshal1(), MarshaledExN04CalorimeterHit::unmarshal1(), MarshaledExN02TrackerHit::unmarshal1(), MarshaledG4HitsCollection::unmarshal1(), MarshaledG4HCofThisEvent::unmarshal1(), MarshaledG4THitsCollection< T >::unmarshal1(), MarshaledExN04TrackerHit::unmarshal2(), MarshaledExN04MuonHit::unmarshal2(), MarshaledG4VHitsCollection::unmarshal2(), MarshaledExN04CalorimeterHit::unmarshal2(), MarshaledExN02TrackerHit::unmarshal2(), MarshaledExN02TrackerHit::unmarshal3(), MarshaledExN04CalorimeterHit::unmarshal3(), MarshaledG4VHitsCollection::unmarshal3(), MarshaledExN02TrackerHit::unmarshal4(), MarshaledExN04CalorimeterHit::unmarshal4(), MarshaledObj::unmarshalPrimitive(), SteppingAction::UserSteppingAction(), UVoxelizer::Voxelize(), xData_malloc(), XML_GetBuffer(), XML_GetFeatureList(), XML_GetInputContext(), XmlInitUnknownEncoding(), G4DigiManager::~G4DigiManager(), G4DNADamages::~G4DNADamages(), G4MolecularDecayTable::~G4MolecularDecayTable(), and G4TrackingInformation::~G4TrackingInformation().

typedef void ( XMLCALL XML_ElementDeclHandler)
XML_DefaultCurrent ( XML_Parser  parser)

Definition at line 1834 of file xmlparse.cc.

1835 {
1836  if (defaultHandler) {
1838  reportDefault(parser,
1840  openInternalEntities->internalEventPtr,
1841  openInternalEntities->internalEventEndPtr);
1842  else
1843  reportDefault(parser, encoding, eventPtr, eventEndPtr);
1844  }
1845 }
#define eventEndPtr
Definition: xmlparse.cc:603
#define internalEncoding
Definition: xmlparse.cc:590
#define openInternalEntities
Definition: xmlparse.cc:606
#define defaultHandler
Definition: xmlparse.cc:566
#define eventPtr
Definition: xmlparse.cc:602
XML_ErrorString ( enum XML_Error  code)

Definition at line 1848 of file xmlparse.cc.

Referenced by xData_parseEndOfXML().

1849 {
1850  static const XML_LChar* const message[] = {
1851  0,
1852  XML_L("out of memory"),
1853  XML_L("syntax error"),
1854  XML_L("no element found"),
1855  XML_L("not well-formed (invalid token)"),
1856  XML_L("unclosed token"),
1857  XML_L("partial character"),
1858  XML_L("mismatched tag"),
1859  XML_L("duplicate attribute"),
1860  XML_L("junk after document element"),
1861  XML_L("illegal parameter entity reference"),
1862  XML_L("undefined entity"),
1863  XML_L("recursive entity reference"),
1864  XML_L("asynchronous entity"),
1865  XML_L("reference to invalid character number"),
1866  XML_L("reference to binary entity"),
1867  XML_L("reference to external entity in attribute"),
1868  XML_L("XML or text declaration not at start of entity"),
1869  XML_L("unknown encoding"),
1870  XML_L("encoding specified in XML declaration is incorrect"),
1871  XML_L("unclosed CDATA section"),
1872  XML_L("error in processing external entity reference"),
1873  XML_L("document is not standalone"),
1874  XML_L("unexpected parser state - please send a bug report"),
1875  XML_L("entity declared in parameter entity"),
1876  XML_L("requested feature requires XML_DTD support in Expat"),
1877  XML_L("cannot change setting once parsing has begun"),
1878  XML_L("unbound prefix"),
1879  XML_L("must not undeclare prefix"),
1880  XML_L("incomplete markup in parameter entity"),
1881  XML_L("XML declaration not well-formed"),
1882  XML_L("text declaration not well-formed"),
1883  XML_L("illegal character(s) in public id"),
1884  XML_L("parser suspended"),
1885  XML_L("parser not suspended"),
1886  XML_L("parsing aborted"),
1887  XML_L("parsing finished"),
1888  XML_L("cannot suspend in external parameter entity"),
1889  XML_L("reserved prefix (xml) must not be undeclared or bound to another namespace name"),
1890  XML_L("reserved prefix (xmlns) must not be declared or undeclared"),
1891  XML_L("prefix must not be bound to one of the reserved namespace names")
1892  };
1893  if (code > 0 && unsigned(code) < sizeof(message)/sizeof(message[0]))
1894  return message[code];
1895  return NULL;
1896 }
char XML_LChar
#define XML_L(x)
Definition: xmlparse.cc:69
Definition: inftrees.h:24
XML_ExpatVersion ( void  )

Definition at line 1899 of file xmlparse.cc.

1899  {
1900 
1901  /* V1 is used to string-ize the version number. However, it would
1902  string-ize the actual version macro *names* unless we get them
1903  substituted before being passed to V1. CPP is defined to expand
1904  a macro, then rescan for more expansions. Thus, we use V2 to expand
1905  the version macros, then CPP will expand the resulting V1() macro
1906  with the correct numerals. */
1907  /* ### I'm assuming cpp is portable in this respect... */
1908 
1909 #define V1(a,b,c) XML_L(#a)XML_L(".")XML_L(#b)XML_L(".")XML_L(#c)
1910 #define V2(a,b,c) XML_L("expat_")V1(a,b,c)
1911 
1913 
1914 #undef V1
1915 #undef V2
1916 }
#define XML_MICRO_VERSION
#define XML_MAJOR_VERSION
#define V2(a, b, c)
#define XML_MINOR_VERSION
XML_ExpatVersionInfo ( void  )

Definition at line 1919 of file xmlparse.cc.

1920 {
1922 
1923  version.major = XML_MAJOR_VERSION;
1924  version.minor = XML_MINOR_VERSION;
1925  version.micro = XML_MICRO_VERSION;
1926 
1927  return version;
1928 }
const XML_Char * version
#define XML_MICRO_VERSION
#define XML_MAJOR_VERSION
#define XML_MINOR_VERSION
XML_ExternalEntityParserCreate ( XML_Parser  parser,
const XML_Char context,
const XML_Char encoding 
)

Definition at line 939 of file xmlparse.cc.

942 {
943  XML_Parser parser = oldParser;
944  DTD *newDtd = NULL;
945  DTD *oldDtd = _dtd;
946  XML_StartElementHandler oldStartElementHandler = startElementHandler;
947  XML_EndElementHandler oldEndElementHandler = endElementHandler;
948  XML_CharacterDataHandler oldCharacterDataHandler = characterDataHandler;
949  XML_ProcessingInstructionHandler oldProcessingInstructionHandler
951  XML_CommentHandler oldCommentHandler = commentHandler;
952  XML_StartCdataSectionHandler oldStartCdataSectionHandler
954  XML_EndCdataSectionHandler oldEndCdataSectionHandler
956  XML_DefaultHandler oldDefaultHandler = defaultHandler;
957  XML_UnparsedEntityDeclHandler oldUnparsedEntityDeclHandler
959  XML_NotationDeclHandler oldNotationDeclHandler = notationDeclHandler;
960  XML_StartNamespaceDeclHandler oldStartNamespaceDeclHandler
962  XML_EndNamespaceDeclHandler oldEndNamespaceDeclHandler
964  XML_NotStandaloneHandler oldNotStandaloneHandler = notStandaloneHandler;
965  XML_ExternalEntityRefHandler oldExternalEntityRefHandler
967  XML_SkippedEntityHandler oldSkippedEntityHandler = skippedEntityHandler;
968  XML_UnknownEncodingHandler oldUnknownEncodingHandler
970  XML_ElementDeclHandler oldElementDeclHandler = elementDeclHandler;
971  XML_AttlistDeclHandler oldAttlistDeclHandler = attlistDeclHandler;
972  XML_EntityDeclHandler oldEntityDeclHandler = entityDeclHandler;
973  XML_XmlDeclHandler oldXmlDeclHandler = xmlDeclHandler;
974  ELEMENT_TYPE * oldDeclElementType = declElementType;
975 
976  void *oldUserData = userData;
977  void *oldHandlerArg = handlerArg;
978  XML_Bool oldDefaultExpandInternalEntities = defaultExpandInternalEntities;
979  XML_Parser oldExternalEntityRefHandlerArg = externalEntityRefHandlerArg;
980 #ifdef XML_DTD
981  enum XML_ParamEntityParsing oldParamEntityParsing = paramEntityParsing;
982  int oldInEntityValue = prologState.inEntityValue;
983 #endif
984  XML_Bool oldns_triplets = ns_triplets;
985 
986 #ifdef XML_DTD
987  if (!context)
988  newDtd = oldDtd;
989 #endif /* XML_DTD */
990 
991  /* Note that the magical uses of the pre-processor to make field
992  access look more like C++ require that `parser' be overwritten
993  here. This makes this function more painful to follow than it
994  would be otherwise.
995  */
996  if (ns) {
997  XML_Char tmp[2];
998  *tmp = namespaceSeparator;
999  parser = parserCreate(encodingName, &parser->m_mem, tmp, newDtd);
1000  }
1001  else {
1002  parser = parserCreate(encodingName, &parser->m_mem, NULL, newDtd);
1003  }
1004 
1005  if (!parser)
1006  return NULL;
1007 
1008  startElementHandler = oldStartElementHandler;
1009  endElementHandler = oldEndElementHandler;
1010  characterDataHandler = oldCharacterDataHandler;
1011  processingInstructionHandler = oldProcessingInstructionHandler;
1012  commentHandler = oldCommentHandler;
1013  startCdataSectionHandler = oldStartCdataSectionHandler;
1014  endCdataSectionHandler = oldEndCdataSectionHandler;
1015  defaultHandler = oldDefaultHandler;
1016  unparsedEntityDeclHandler = oldUnparsedEntityDeclHandler;
1017  notationDeclHandler = oldNotationDeclHandler;
1018  startNamespaceDeclHandler = oldStartNamespaceDeclHandler;
1019  endNamespaceDeclHandler = oldEndNamespaceDeclHandler;
1020  notStandaloneHandler = oldNotStandaloneHandler;
1021  externalEntityRefHandler = oldExternalEntityRefHandler;
1022  skippedEntityHandler = oldSkippedEntityHandler;
1023  unknownEncodingHandler = oldUnknownEncodingHandler;
1024  elementDeclHandler = oldElementDeclHandler;
1025  attlistDeclHandler = oldAttlistDeclHandler;
1026  entityDeclHandler = oldEntityDeclHandler;
1027  xmlDeclHandler = oldXmlDeclHandler;
1028  declElementType = oldDeclElementType;
1029  userData = oldUserData;
1030  if (oldUserData == oldHandlerArg)
1031  handlerArg = userData;
1032  else
1033  handlerArg = parser;
1034  if (oldExternalEntityRefHandlerArg != oldParser)
1035  externalEntityRefHandlerArg = oldExternalEntityRefHandlerArg;
1036  defaultExpandInternalEntities = oldDefaultExpandInternalEntities;
1037  ns_triplets = oldns_triplets;
1038  parentParser = oldParser;
1039 #ifdef XML_DTD
1040  paramEntityParsing = oldParamEntityParsing;
1041  prologState.inEntityValue = oldInEntityValue;
1042  if (context) {
1043 #endif /* XML_DTD */
1044  if (!dtdCopy(_dtd, oldDtd, &parser->m_mem)
1045  || !setContext(parser, context)) {
1046  XML_ParserFree(parser);
1047  return NULL;
1048  }
1049  processor = externalEntityInitProcessor;
1050 #ifdef XML_DTD
1051  }
1052  else {
1053  /* The DTD instance referenced by _dtd is shared between the document's
1054  root parser and external PE parsers, therefore one does not need to
1055  call setContext. In addition, one also *must* not call setContext,
1056  because this would overwrite existing prefix->binding pointers in
1057  _dtd with ones that get destroyed with the external PE parser.
1058  This would leave those prefixes with dangling pointers.
1059  */
1060  isParamEntity = XML_TRUE;
1061  XmlPrologStateInitExternalEntity(&prologState);
1062  processor = externalParEntInitProcessor;
1063  }
1064 #endif /* XML_DTD */
1065  return parser;
1066 }
#define ns_triplets
Definition: xmlparse.cc:598
#define endElementHandler
Definition: xmlparse.cc:558
#define XML_TRUE
Definition: include/expat.h:29
#define handlerArg
Definition: xmlparse.cc:556
#define unparsedEntityDeclHandler
Definition: xmlparse.cc:569
#define xmlDeclHandler
Definition: xmlparse.cc:587
#define unknownEncodingHandler
Definition: xmlparse.cc:583
#define notationDeclHandler
Definition: xmlparse.cc:571
#define attlistDeclHandler
Definition: xmlparse.cc:585
#define startNamespaceDeclHandler
Definition: xmlparse.cc:572
#define defaultExpandInternalEntities
Definition: xmlparse.cc:608
Definition: xmlparse.cc:260
#define characterDataHandler
Definition: xmlparse.cc:559
#define namespaceSeparator
Definition: xmlparse.cc:647
#define userData
Definition: xmlparse.cc:555
#define parentParser
Definition: xmlparse.cc:648
#define declElementType
Definition: xmlparse.cc:628
#define skippedEntityHandler
Definition: xmlparse.cc:582
#define endNamespaceDeclHandler
Definition: xmlparse.cc:574
#define entityDeclHandler
Definition: xmlparse.cc:586
#define externalEntityRefHandlerArg
Definition: xmlparse.cc:578
#define elementDeclHandler
Definition: xmlparse.cc:584
#define defaultHandler
Definition: xmlparse.cc:566
const XML_Char * context
#define processor
Definition: xmlparse.cc:600
#define prologState
Definition: xmlparse.cc:599
#define processingInstructionHandler
Definition: xmlparse.cc:560
#define notStandaloneHandler
Definition: xmlparse.cc:575
unsigned char XML_Bool
Definition: include/expat.h:28
#define endCdataSectionHandler
Definition: xmlparse.cc:565
XML_ParamEntityParsing
void XMLCALL XML_ParserFree(XML_Parser parser)
Definition: xmlparse.cc:1082
#define startElementHandler
Definition: xmlparse.cc:557
#define ns
Definition: xmlparse.cc:597
#define commentHandler
Definition: xmlparse.cc:562
#define externalEntityRefHandler
Definition: xmlparse.cc:576
#define _dtd
Definition: xmlparse.cc:619
char XML_Char
#define startCdataSectionHandler
Definition: xmlparse.cc:563
const XML_Memory_Handling_Suite m_mem
Definition: xmlparse.cc:458
XML_FreeContentModel ( XML_Parser  parser,
XML_Content model 
)

Definition at line 1810 of file xmlparse.cc.

1811 {
1812  FREE(model);
1813 }
#define FREE(p)
Definition: xmlparse.cc:553
XML_GetBase ( XML_Parser  parser)

Definition at line 1196 of file xmlparse.cc.

1197 {
1198  return curBase;
1199 }
#define curBase
Definition: xmlparse.cc:620
XML_GetBuffer ( XML_Parser  parser,
int  len 
)

Definition at line 1601 of file xmlparse.cc.

1602 {
1603  switch (ps_parsing) {
1604  case XML_SUSPENDED:
1606  return NULL;
1607  case XML_FINISHED:
1609  return NULL;
1610  default: ;
1611  }
1612 
1613  if (len > bufferLim - bufferEnd) {
1614  /* FIXME avoid integer overflow */
1615  int neededSize = len + (int)(bufferEnd - bufferPtr);
1616 #ifdef XML_CONTEXT_BYTES
1617  int keep = (int)(bufferPtr - buffer);
1618 
1619  if (keep > XML_CONTEXT_BYTES)
1620  keep = XML_CONTEXT_BYTES;
1621  neededSize += keep;
1622 #endif /* defined XML_CONTEXT_BYTES */
1623  if (neededSize <= bufferLim - buffer) {
1624 #ifdef XML_CONTEXT_BYTES
1625  if (keep < bufferPtr - buffer) {
1626  int offset = (int)(bufferPtr - buffer) - keep;
1627  memmove(buffer, &buffer[offset], bufferEnd - bufferPtr + keep);
1628  bufferEnd -= offset;
1629  bufferPtr -= offset;
1630  }
1631 #else
1632  memmove(buffer, bufferPtr, bufferEnd - bufferPtr);
1634  bufferPtr = buffer;
1635 #endif /* not defined XML_CONTEXT_BYTES */
1636  }
1637  else {
1638  char *newBuf;
1639  int bufferSize = (int)(bufferLim - bufferPtr);
1640  if (bufferSize == 0)
1641  bufferSize = INIT_BUFFER_SIZE;
1642  do {
1643  bufferSize *= 2;
1644  } while (bufferSize < neededSize);
1645  newBuf = (char *)MALLOC(bufferSize);
1646  if (newBuf == 0) {
1648  return NULL;
1649  }
1650  bufferLim = newBuf + bufferSize;
1651 #ifdef XML_CONTEXT_BYTES
1652  if (bufferPtr) {
1653  int keep = (int)(bufferPtr - buffer);
1654  if (keep > XML_CONTEXT_BYTES)
1655  keep = XML_CONTEXT_BYTES;
1656  memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep);
1657  FREE(buffer);
1658  buffer = newBuf;
1659  bufferEnd = buffer + (bufferEnd - bufferPtr) + keep;
1660  bufferPtr = buffer + keep;
1661  }
1662  else {
1663  bufferEnd = newBuf + (bufferEnd - bufferPtr);
1664  bufferPtr = buffer = newBuf;
1665  }
1666 #else
1667  if (bufferPtr) {
1668  memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr);
1669  FREE(buffer);
1670  }
1671  bufferEnd = newBuf + (bufferEnd - bufferPtr);
1672  bufferPtr = buffer = newBuf;
1673 #endif /* not defined XML_CONTEXT_BYTES */
1674  }
1675  }
1676  return bufferEnd;
1677 }
#define XML_CONTEXT_BYTES
Definition: amigaconfig.h:24
#define MALLOC(s)
Definition: xmlparse.cc:551
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define errorCode
Definition: xmlparse.cc:601
#define buffer
Definition: xmlparse.cc:611
#define FREE(p)
Definition: xmlparse.cc:553
#define bufferLim
Definition: xmlparse.cc:616
#define bufferEnd
Definition: xmlparse.cc:613
#define bufferPtr
Definition: xmlparse.cc:612
#define ps_parsing
Definition: xmlparse.cc:649
#define INIT_BUFFER_SIZE
Definition: xmlparse.cc:138
const XML_Char int len
XML_GetCurrentByteCount ( XML_Parser  parser)

Definition at line 1769 of file xmlparse.cc.

1770 {
1771  if (eventEndPtr && eventPtr)
1772  return (int)(eventEndPtr - eventPtr);
1773  return 0;
1774 }
#define eventEndPtr
Definition: xmlparse.cc:603
#define eventPtr
Definition: xmlparse.cc:602
XML_GetErrorCode ( XML_Parser  parser)

Definition at line 1755 of file xmlparse.cc.

Referenced by xData_parseEndOfXML().

1756 {
1757  return errorCode;
1758 }
#define errorCode
Definition: xmlparse.cc:601
XML_GetFeatureList ( void  )

Definition at line 1931 of file xmlparse.cc.

1932 {
1933  static const XML_Feature features[] = {
1934  {XML_FEATURE_SIZEOF_XML_CHAR, XML_L("sizeof(XML_Char)"),
1935  sizeof(XML_Char)},
1936  {XML_FEATURE_SIZEOF_XML_LCHAR, XML_L("sizeof(XML_LChar)"),
1937  sizeof(XML_LChar)},
1938 #ifdef XML_UNICODE
1939  {XML_FEATURE_UNICODE, XML_L("XML_UNICODE"), 0},
1940 #endif
1941 #ifdef XML_UNICODE_WCHAR_T
1942  {XML_FEATURE_UNICODE_WCHAR_T, XML_L("XML_UNICODE_WCHAR_T"), 0},
1943 #endif
1944 #ifdef XML_DTD
1945  {XML_FEATURE_DTD, XML_L("XML_DTD"), 0},
1946 #endif
1947 #ifdef XML_CONTEXT_BYTES
1948  {XML_FEATURE_CONTEXT_BYTES, XML_L("XML_CONTEXT_BYTES"),
1950 #endif
1951 #ifdef XML_MIN_SIZE
1952  {XML_FEATURE_MIN_SIZE, XML_L("XML_MIN_SIZE"), 0},
1953 #endif
1954 #ifdef XML_NS
1955  {XML_FEATURE_NS, XML_L("XML_NS"), 0},
1956 #endif
1957 #ifdef XML_LARGE_SIZE
1958  {XML_FEATURE_LARGE_SIZE, XML_L("XML_LARGE_SIZE"), 0},
1959 #endif
1960  {XML_FEATURE_END, NULL, 0}
1961  };
1962 
1963  return features;
1964 }
char XML_LChar
#define XML_CONTEXT_BYTES
Definition: amigaconfig.h:24
#define XML_L(x)
Definition: xmlparse.cc:69
char XML_Char
XML_GetIdAttributeIndex ( XML_Parser  parser)

Definition at line 1208 of file xmlparse.cc.

1209 {
1210  return idAttIndex;
1211 }
#define idAttIndex
Definition: xmlparse.cc:639
XML_GetInputContext ( XML_Parser  parser,
int offset,
int size 
)

Definition at line 1777 of file xmlparse.cc.

1778 {
1779 #ifdef XML_CONTEXT_BYTES
1780  if (eventPtr && buffer) {
1781  *offset = (int)(eventPtr - buffer);
1782  *size = (int)(bufferEnd - buffer);
1783  return buffer;
1784  }
1785 #endif /* defined XML_CONTEXT_BYTES */
1786  return (char *) 0;
1787 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define buffer
Definition: xmlparse.cc:611
#define bufferEnd
Definition: xmlparse.cc:613
#define eventPtr
Definition: xmlparse.cc:602
XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus status 
)

Definition at line 1748 of file xmlparse.cc.

1749 {
1750  assert(status != NULL);
1751  *status = parser->m_parsingStatus;
1752 }
#define assert(x)
Definition: mymalloc.cc:1309
XML_ParsingStatus m_parsingStatus
Definition: xmlparse.cc:543
XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

Definition at line 1202 of file xmlparse.cc.

1203 {
1204  return nSpecifiedAtts;
1205 }
#define nSpecifiedAtts
Definition: xmlparse.cc:638
XML_MemFree ( XML_Parser  parser,
void ptr 
)

Definition at line 1828 of file xmlparse.cc.

1829 {
1830  FREE(ptr);
1831 }
#define FREE(p)
Definition: xmlparse.cc:553
XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

Definition at line 1816 of file xmlparse.cc.

1817 {
1818  return MALLOC(size);
1819 }
#define MALLOC(s)
Definition: xmlparse.cc:551
XML_MemRealloc ( XML_Parser  parser,
void ptr,
size_t  size 
)

Definition at line 1822 of file xmlparse.cc.

1823 {
1824  return REALLOC(ptr, size);
1825 }
#define REALLOC(p, s)
Definition: xmlparse.cc:552
XML_Parse ( XML_Parser  parser,
const char *  s,
int  len,
int  isFinal 
)

Definition at line 1430 of file xmlparse.cc.

Referenced by xData_parse(), and xData_parseEndOfXML().

1431 {
1432  switch (ps_parsing) {
1433  case XML_SUSPENDED:
1435  return XML_STATUS_ERROR;
1436  case XML_FINISHED:
1438  return XML_STATUS_ERROR;
1439  default:
1441  }
1442 
1443  if (len == 0) {
1444  ps_finalBuffer = (XML_Bool)isFinal;
1445  if (!isFinal)
1446  return XML_STATUS_OK;
1449 
1450  /* If data are left over from last buffer, and we now know that these
1451  data are the final chunk of input, then we have to check them again
1452  to detect errors based on that fact.
1453  */
1455 
1456  if (errorCode == XML_ERROR_NONE) {
1457  switch (ps_parsing) {
1458  case XML_SUSPENDED:
1461  return XML_STATUS_SUSPENDED;
1462  case XML_INITIALIZED:
1463  case XML_PARSING:
1465  /* fall through */
1466  default:
1467  return XML_STATUS_OK;
1468  }
1469  }
1471  processor = errorProcessor;
1472  return XML_STATUS_ERROR;
1473  }
1474 #ifndef XML_CONTEXT_BYTES
1475  else if (bufferPtr == bufferEnd) {
1476  const char *end;
1477  int nLeftOver;
1478  enum XML_Error result;
1480  positionPtr = s;
1481  ps_finalBuffer = (XML_Bool)isFinal;
1482 
1483  errorCode = processor(parser, s, parseEndPtr = s + len, &end);
1484 
1485  if (errorCode != XML_ERROR_NONE) {
1487  processor = errorProcessor;
1488  return XML_STATUS_ERROR;
1489  }
1490  else {
1491  switch (ps_parsing) {
1492  case XML_SUSPENDED:
1493  result = XML_STATUS_SUSPENDED;
1494  break;
1495  case XML_INITIALIZED:
1496  case XML_PARSING:
1497  result = XML_STATUS_OK;
1498  if (isFinal) {
1500  return result;
1501  }
1502  }
1503  }
1504 
1506  nLeftOver = s + len - end;
1507  if (nLeftOver) {
1508  if (buffer == NULL || nLeftOver > bufferLim - buffer) {
1509  /* FIXME avoid integer overflow */
1510  char *temp;
1511  temp = (buffer == NULL
1512  ? (char *)MALLOC(len * 2)
1513  : (char *)REALLOC(buffer, len * 2));
1514  if (temp == NULL) {
1516  return XML_STATUS_ERROR;
1517  }
1518  buffer = temp;
1519  if (!buffer) {
1521  eventPtr = eventEndPtr = NULL;
1522  processor = errorProcessor;
1523  return XML_STATUS_ERROR;
1524  }
1525  bufferLim = buffer + len * 2;
1526  }
1527  memcpy(buffer, end, nLeftOver);
1528  }
1529  bufferPtr = buffer;
1530  bufferEnd = buffer + nLeftOver;
1533  eventPtr = bufferPtr;
1535  return result;
1536  }
1537 #endif /* not defined XML_CONTEXT_BYTES */
1538  else {
1539  void *buff = XML_GetBuffer(parser, len);
1540  if (buff == NULL)
1541  return XML_STATUS_ERROR;
1542  else {
1543  memcpy(buff, s, len);
1544  return XML_ParseBuffer(parser, len, isFinal);
1545  }
1546  }
1547 }
#define parseEndByteIndex
Definition: xmlparse.cc:614
#define XML_STATUS_OK
Definition: include/expat.h:49
#define positionPtr
Definition: xmlparse.cc:604
#define eventEndPtr
Definition: xmlparse.cc:603
#define MALLOC(s)
Definition: xmlparse.cc:551
const XML_Char * s
#define REALLOC(p, s)
Definition: xmlparse.cc:552
#define errorCode
Definition: xmlparse.cc:601
#define buffer
Definition: xmlparse.cc:611
#define ps_finalBuffer
Definition: xmlparse.cc:650
#define XmlUpdatePosition(enc, ptr, end, pos)
Definition: xmltok.h:249
#define bufferLim
Definition: xmlparse.cc:616
#define XML_STATUS_SUSPENDED
XML_Error
Definition: include/expat.h:54
#define XML_STATUS_ERROR
Definition: include/expat.h:47
enum XML_Status XMLCALL XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
Definition: xmlparse.cc:1550
#define bufferEnd
Definition: xmlparse.cc:613
#define bufferPtr
Definition: xmlparse.cc:612
#define ps_parsing
Definition: xmlparse.cc:649
#define processor
Definition: xmlparse.cc:600
unsigned char XML_Bool
Definition: include/expat.h:28
#define parseEndPtr
Definition: xmlparse.cc:615
const XML_Char int len
#define eventPtr
Definition: xmlparse.cc:602
void *XMLCALL XML_GetBuffer(XML_Parser parser, int len)
Definition: xmlparse.cc:1601
XML_ParseBuffer ( XML_Parser  parser,
int  len,
int  isFinal 
)

Definition at line 1550 of file xmlparse.cc.

1551 {
1552  const char *start;
1553  enum XML_Status result = XML_STATUS_OK;
1554 
1555  switch (ps_parsing) {
1556  case XML_SUSPENDED:
1558  return XML_STATUS_ERROR;
1559  case XML_FINISHED:
1561  return XML_STATUS_ERROR;
1562  default:
1564  }
1565 
1566  start = bufferPtr;
1567  positionPtr = start;
1568  bufferEnd += len;
1571  ps_finalBuffer = (XML_Bool)isFinal;
1572 
1573  errorCode = processor(parser, start, parseEndPtr, &bufferPtr);
1574 
1575  if (errorCode != XML_ERROR_NONE) {
1577  processor = errorProcessor;
1578  return XML_STATUS_ERROR;
1579  }
1580  else {
1581  switch (ps_parsing) {
1582  case XML_SUSPENDED:
1583  result = XML_STATUS_SUSPENDED;
1584  break;
1585  case XML_INITIALIZED:
1586  case XML_PARSING:
1587  if (isFinal) {
1589  return result;
1590  }
1591  default: ; /* should not happen */
1592  }
1593  }
1594 
1597  return result;
1598 }
#define parseEndByteIndex
Definition: xmlparse.cc:614
#define XML_STATUS_OK
Definition: include/expat.h:49
#define positionPtr
Definition: xmlparse.cc:604
#define eventEndPtr
Definition: xmlparse.cc:603
#define errorCode
Definition: xmlparse.cc:601
#define ps_finalBuffer
Definition: xmlparse.cc:650
#define XmlUpdatePosition(enc, ptr, end, pos)
Definition: xmltok.h:249
#define XML_STATUS_SUSPENDED
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define bufferEnd
Definition: xmlparse.cc:613
#define bufferPtr
Definition: xmlparse.cc:612
#define ps_parsing
Definition: xmlparse.cc:649
#define processor
Definition: xmlparse.cc:600
unsigned char XML_Bool
Definition: include/expat.h:28
#define parseEndPtr
Definition: xmlparse.cc:615
const XML_Char int len
#define eventPtr
Definition: xmlparse.cc:602
XML_Status
Definition: include/expat.h:45
XML_ParserCreate ( const XML_Char encoding)

Definition at line 658 of file xmlparse.cc.

Referenced by xData_parseInitialize().

659 {
660  return XML_ParserCreate_MM(encodingName, NULL, NULL);
661 }
XML_Parser XMLCALL XML_ParserCreate_MM(const XML_Char *encodingName, const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep)
Definition: xmlparse.cc:681
XML_ParserCreate_MM ( const XML_Char encoding,
const XML_Memory_Handling_Suite memsuite,
const XML_Char namespaceSeparator 
)

Definition at line 681 of file xmlparse.cc.

684 {
685  XML_Parser parser = parserCreate(encodingName, memsuite, nameSep, NULL);
686  if (parser != NULL && ns) {
687  /* implicit context only set for root parser, since child
688  parsers (i.e. external entity parsers) will inherit it
689  */
690  if (!setContext(parser, implicitContext)) {
691  XML_ParserFree(parser);
692  return NULL;
693  }
694  }
695  return parser;
696 }
void XMLCALL XML_ParserFree(XML_Parser parser)
Definition: xmlparse.cc:1082
#define ns
Definition: xmlparse.cc:597
XML_ParserCreateNS ( const XML_Char encoding,
XML_Char  namespaceSeparator 
)

Definition at line 664 of file xmlparse.cc.

665 {
666  XML_Char tmp[2];
667  *tmp = nsSep;
668  return XML_ParserCreate_MM(encodingName, NULL, tmp);
669 }
XML_Parser XMLCALL XML_ParserCreate_MM(const XML_Char *encodingName, const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep)
Definition: xmlparse.cc:681
char XML_Char
XML_ParserFree ( XML_Parser  parser)

Definition at line 1082 of file xmlparse.cc.

Referenced by xData_parseEndOfXML().

1083 {
1084  TAG *tagList;
1085  OPEN_INTERNAL_ENTITY *entityList;
1086  if (parser == NULL)
1087  return;
1088  /* free tagStack and freeTagList */
1089  tagList = tagStack;
1090  for (;;) {
1091  TAG *p;
1092  if (tagList == NULL) {
1093  if (freeTagList == NULL)
1094  break;
1095  tagList = freeTagList;
1096  freeTagList = NULL;
1097  }
1098  p = tagList;
1099  tagList = tagList->parent;
1100  FREE(p->buf);
1101  destroyBindings(p->bindings, parser);
1102  FREE(p);
1103  }
1104  /* free openInternalEntities and freeInternalEntities */
1105  entityList = openInternalEntities;
1106  for (;;) {
1107  OPEN_INTERNAL_ENTITY *openEntity;
1108  if (entityList == NULL) {
1109  if (freeInternalEntities == NULL)
1110  break;
1111  entityList = freeInternalEntities;
1112  freeInternalEntities = NULL;
1113  }
1114  openEntity = entityList;
1115  entityList = entityList->next;
1116  FREE(openEntity);
1117  }
1118 
1119  destroyBindings(freeBindingList, parser);
1120  destroyBindings(inheritedBindings, parser);
1121  poolDestroy(&tempPool);
1122  poolDestroy(&temp2Pool);
1123 #ifdef XML_DTD
1124  /* external parameter entity parsers share the DTD structure
1125  parser->m_dtd with the root parser, so we must not destroy it
1126  */
1127  if (!isParamEntity && _dtd)
1128 #else
1129  if (_dtd)
1130 #endif /* XML_DTD */
1131  dtdDestroy(_dtd, (XML_Bool)!parentParser, &parser->m_mem);
1132  FREE((void *)atts);
1134  FREE(buffer);
1135  FREE(dataBuf);
1136  FREE(nsAtts);
1140  FREE(parser);
1141 }
#define dataBuf
Definition: xmlparse.cc:617
#define unknownEncodingRelease
Definition: xmlparse.cc:595
#define freeBindingList
Definition: xmlparse.cc:633
const char * p
Definition: xmltok.h:285
Definition: xmlparse.cc:179
#define unknownEncodingMem
Definition: xmlparse.cc:591
#define buffer
Definition: xmlparse.cc:611
#define FREE(p)
Definition: xmlparse.cc:553
#define openInternalEntities
Definition: xmlparse.cc:606
const XML_Char const XML_Char ** atts
#define parentParser
Definition: xmlparse.cc:648
#define inheritedBindings
Definition: xmlparse.cc:634
BINDING * bindings
Definition: xmlparse.cc:186
#define nsAtts
Definition: xmlparse.cc:640
#define tagStack
Definition: xmlparse.cc:635
#define tempPool
Definition: xmlparse.cc:643
#define unknownEncodingData
Definition: xmlparse.cc:592
#define temp2Pool
Definition: xmlparse.cc:644
struct open_internal_entity * next
Definition: xmlparse.cc:292
#define freeTagList
Definition: xmlparse.cc:632
#define groupConnector
Definition: xmlparse.cc:645
unsigned char XML_Bool
Definition: include/expat.h:28
struct tag * parent
Definition: xmlparse.cc:180
char * buf
Definition: xmlparse.cc:184
#define freeInternalEntities
Definition: xmlparse.cc:607
#define _dtd
Definition: xmlparse.cc:619
const XML_Memory_Handling_Suite m_mem
Definition: xmlparse.cc:458
XML_ParserReset ( XML_Parser  parser,
const XML_Char encoding 
)

Definition at line 884 of file xmlparse.cc.

885 {
886  TAG *tStk;
887  OPEN_INTERNAL_ENTITY *openEntityList;
888  if (parentParser)
889  return XML_FALSE;
890  /* move tagStack to freeTagList */
891  tStk = tagStack;
892  while (tStk) {
893  TAG *tag = tStk;
894  tStk = tStk->parent;
895  tag->parent = freeTagList;
896  moveToFreeBindingList(parser, tag->bindings);
897  tag->bindings = NULL;
898  freeTagList = tag;
899  }
900  /* move openInternalEntities to freeInternalEntities */
901  openEntityList = openInternalEntities;
902  while (openEntityList) {
903  OPEN_INTERNAL_ENTITY *openEntity = openEntityList;
904  openEntityList = openEntity->next;
905  openEntity->next = freeInternalEntities;
906  freeInternalEntities = openEntity;
907  }
908  moveToFreeBindingList(parser, inheritedBindings);
912  poolClear(&tempPool);
913  poolClear(&temp2Pool);
914  parserInit(parser, encodingName);
915  dtdReset(_dtd, &parser->m_mem);
916  return setContext(parser, implicitContext);
917 }
#define unknownEncodingRelease
Definition: xmlparse.cc:595
Definition: xmlparse.cc:179
#define unknownEncodingMem
Definition: xmlparse.cc:591
#define FREE(p)
Definition: xmlparse.cc:553
#define openInternalEntities
Definition: xmlparse.cc:606
#define parentParser
Definition: xmlparse.cc:648
#define inheritedBindings
Definition: xmlparse.cc:634
BINDING * bindings
Definition: xmlparse.cc:186
#define XML_FALSE
Definition: include/expat.h:30
#define tagStack
Definition: xmlparse.cc:635
#define tempPool
Definition: xmlparse.cc:643
#define unknownEncodingData
Definition: xmlparse.cc:592
#define temp2Pool
Definition: xmlparse.cc:644
struct open_internal_entity * next
Definition: xmlparse.cc:292
#define freeTagList
Definition: xmlparse.cc:632
struct tag * parent
Definition: xmlparse.cc:180
#define freeInternalEntities
Definition: xmlparse.cc:607
#define _dtd
Definition: xmlparse.cc:619
const XML_Memory_Handling_Suite m_mem
Definition: xmlparse.cc:458
XML_ResumeParser ( XML_Parser  parser)

Definition at line 1710 of file xmlparse.cc.

1711 {
1712  enum XML_Status result = XML_STATUS_OK;
1713 
1714  if (ps_parsing != XML_SUSPENDED) {
1716  return XML_STATUS_ERROR;
1717  }
1719 
1721 
1722  if (errorCode != XML_ERROR_NONE) {
1724  processor = errorProcessor;
1725  return XML_STATUS_ERROR;
1726  }
1727  else {
1728  switch (ps_parsing) {
1729  case XML_SUSPENDED:
1730  result = XML_STATUS_SUSPENDED;
1731  break;
1732  case XML_INITIALIZED:
1733  case XML_PARSING:
1734  if (ps_finalBuffer) {
1736  return result;
1737  }
1738  default: ;
1739  }
1740  }
1741 
1744  return result;
1745 }
#define XML_STATUS_OK
Definition: include/expat.h:49
#define positionPtr
Definition: xmlparse.cc:604
#define eventEndPtr
Definition: xmlparse.cc:603
#define errorCode
Definition: xmlparse.cc:601
#define ps_finalBuffer
Definition: xmlparse.cc:650
#define XmlUpdatePosition(enc, ptr, end, pos)
Definition: xmltok.h:249
#define XML_STATUS_SUSPENDED
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define bufferPtr
Definition: xmlparse.cc:612
#define ps_parsing
Definition: xmlparse.cc:649
#define processor
Definition: xmlparse.cc:600
#define parseEndPtr
Definition: xmlparse.cc:615
#define eventPtr
Definition: xmlparse.cc:602
XML_Status
Definition: include/expat.h:45
XML_SetAttlistDeclHandler ( XML_Parser  parser,
XML_AttlistDeclHandler  attdecl 
)

Definition at line 1395 of file xmlparse.cc.

1397 {
1398  attlistDeclHandler = attdecl;
1399 }
#define attlistDeclHandler
Definition: xmlparse.cc:585
XML_SetBase ( XML_Parser  parser,
const XML_Char base 
)

Definition at line 1182 of file xmlparse.cc.

1183 {
1184  if (p) {
1185  p = poolCopyString(&_dtd->pool, p);
1186  if (!p)
1187  return XML_STATUS_ERROR;
1188  curBase = p;
1189  }
1190  else
1191  curBase = NULL;
1192  return XML_STATUS_OK;
1193 }
#define XML_STATUS_OK
Definition: include/expat.h:49
#define curBase
Definition: xmlparse.cc:620
const char * p
Definition: xmltok.h:285
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define _dtd
Definition: xmlparse.cc:619
XML_SetCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start,
XML_EndCdataSectionHandler  end 
)

Definition at line 1256 of file xmlparse.cc.

1259 {
1260  startCdataSectionHandler = start;
1261  endCdataSectionHandler = end;
1262 }
#define endCdataSectionHandler
Definition: xmlparse.cc:565
#define startCdataSectionHandler
Definition: xmlparse.cc:563
XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

Definition at line 1235 of file xmlparse.cc.

Referenced by xData_parseInitialize().

1237 {
1238  characterDataHandler = handler;
1239 }
#define characterDataHandler
Definition: xmlparse.cc:559
XML_SetCommentHandler ( XML_Parser  parser,
XML_CommentHandler  handler 
)

Definition at line 1249 of file xmlparse.cc.

1251 {
1252  commentHandler = handler;
1253 }
#define commentHandler
Definition: xmlparse.cc:562
XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1277 of file xmlparse.cc.

1279 {
1280  defaultHandler = handler;
1282 }
#define defaultExpandInternalEntities
Definition: xmlparse.cc:608
#define XML_FALSE
Definition: include/expat.h:30
#define defaultHandler
Definition: xmlparse.cc:566
XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1285 of file xmlparse.cc.

1287 {
1288  defaultHandler = handler;
1290 }
#define XML_TRUE
Definition: include/expat.h:29
#define defaultExpandInternalEntities
Definition: xmlparse.cc:608
#define defaultHandler
Definition: xmlparse.cc:566
XML_SetDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1293 of file xmlparse.cc.

1296 {
1297  startDoctypeDeclHandler = start;
1298  endDoctypeDeclHandler = end;
1299 }
#define startDoctypeDeclHandler
Definition: xmlparse.cc:567
#define endDoctypeDeclHandler
Definition: xmlparse.cc:568
XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

Definition at line 1388 of file xmlparse.cc.

1390 {
1391  elementDeclHandler = eldecl;
1392 }
#define elementDeclHandler
Definition: xmlparse.cc:584
XML_SetElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start,
XML_EndElementHandler  end 
)

Definition at line 1214 of file xmlparse.cc.

Referenced by xData_parseInitialize().

1217 {
1218  startElementHandler = start;
1219  endElementHandler = end;
1220 }
#define endElementHandler
Definition: xmlparse.cc:558
#define startElementHandler
Definition: xmlparse.cc:557
XML_SetEncoding ( XML_Parser  parser,
const XML_Char encoding 
)

Definition at line 920 of file xmlparse.cc.

921 {
922  /* Block after XML_Parse()/XML_ParseBuffer() has been called.
923  XXX There's no way for the caller to determine which of the
924  XXX possible error cases caused the XML_STATUS_ERROR return.
925  */
927  return XML_STATUS_ERROR;
928  if (encodingName == NULL)
929  protocolEncodingName = NULL;
930  else {
931  protocolEncodingName = poolCopyString(&tempPool, encodingName);
933  return XML_STATUS_ERROR;
934  }
935  return XML_STATUS_OK;
936 }
#define XML_STATUS_OK
Definition: include/expat.h:49
#define protocolEncodingName
Definition: xmlparse.cc:596
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define tempPool
Definition: xmlparse.cc:643
#define ps_parsing
Definition: xmlparse.cc:649
XML_SetEndCdataSectionHandler ( XML_Parser  parser,
XML_EndCdataSectionHandler  end 
)

Definition at line 1271 of file xmlparse.cc.

1272  {
1273  endCdataSectionHandler = end;
1274 }
#define endCdataSectionHandler
Definition: xmlparse.cc:565
XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1308 of file xmlparse.cc.

1309  {
1310  endDoctypeDeclHandler = end;
1311 }
#define endDoctypeDeclHandler
Definition: xmlparse.cc:568
XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  handler 
)

Definition at line 1229 of file xmlparse.cc.

1230  {
1231  endElementHandler = end;
1232 }
#define endElementHandler
Definition: xmlparse.cc:558
XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1343 of file xmlparse.cc.

1344  {
1346 }
#define endNamespaceDeclHandler
Definition: xmlparse.cc:574
XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

Definition at line 1402 of file xmlparse.cc.

1404 {
1405  entityDeclHandler = handler;
1406 }
#define entityDeclHandler
Definition: xmlparse.cc:586
XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

Definition at line 1356 of file xmlparse.cc.

1358 {
1359  externalEntityRefHandler = handler;
1360 }
#define externalEntityRefHandler
Definition: xmlparse.cc:576
XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void arg 
)

Definition at line 1363 of file xmlparse.cc.

1364 {
1365  if (arg)
1367  else
1368  externalEntityRefHandlerArg = parser;
1369 }
struct XML_ParserStruct * XML_Parser
Definition: include/expat.h:25
#define externalEntityRefHandlerArg
Definition: xmlparse.cc:578
XML_SetNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1328 of file xmlparse.cc.

1331 {
1332  startNamespaceDeclHandler = start;
1334 }
#define startNamespaceDeclHandler
Definition: xmlparse.cc:572
#define endNamespaceDeclHandler
Definition: xmlparse.cc:574
XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

Definition at line 1321 of file xmlparse.cc.

1323 {
1324  notationDeclHandler = handler;
1325 }
#define notationDeclHandler
Definition: xmlparse.cc:571
XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

Definition at line 1349 of file xmlparse.cc.

1351 {
1352  notStandaloneHandler = handler;
1353 }
#define notStandaloneHandler
Definition: xmlparse.cc:575
XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  parsing 
)

Definition at line 1415 of file xmlparse.cc.

1417 {
1418  /* block after XML_Parse()/XML_ParseBuffer() has been called */
1420  return 0;
1421 #ifdef XML_DTD
1422  paramEntityParsing = peParsing;
1423  return 1;
1424 #else
1425  return peParsing == XML_PARAM_ENTITY_PARSING_NEVER;
1426 #endif
1427 }
#define ps_parsing
Definition: xmlparse.cc:649
XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

Definition at line 1242 of file xmlparse.cc.

1244 {
1245  processingInstructionHandler = handler;
1246 }
#define processingInstructionHandler
Definition: xmlparse.cc:560
XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

Definition at line 1164 of file xmlparse.cc.

1165 {
1166  /* block after XML_Parse()/XML_ParseBuffer() has been called */
1168  return;
1169  ns_triplets = do_nst ? XML_TRUE : XML_FALSE;
1170 }
#define ns_triplets
Definition: xmlparse.cc:598
#define XML_TRUE
Definition: include/expat.h:29
#define XML_FALSE
Definition: include/expat.h:30
#define ps_parsing
Definition: xmlparse.cc:649
XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

Definition at line 1372 of file xmlparse.cc.

1374 {
1375  skippedEntityHandler = handler;
1376 }
#define skippedEntityHandler
Definition: xmlparse.cc:582
XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

Definition at line 1265 of file xmlparse.cc.

1266  {
1267  startCdataSectionHandler = start;
1268 }
#define startCdataSectionHandler
Definition: xmlparse.cc:563
XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

Definition at line 1302 of file xmlparse.cc.

1303  {
1304  startDoctypeDeclHandler = start;
1305 }
#define startDoctypeDeclHandler
Definition: xmlparse.cc:567
XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  handler 
)

Definition at line 1223 of file xmlparse.cc.

1224  {
1225  startElementHandler = start;
1226 }
#define startElementHandler
Definition: xmlparse.cc:557
XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

Definition at line 1337 of file xmlparse.cc.

1338  {
1339  startNamespaceDeclHandler = start;
1340 }
#define startNamespaceDeclHandler
Definition: xmlparse.cc:572
XML_SetUnknownEncodingHandler ( XML_Parser  parser,
XML_UnknownEncodingHandler  handler,
void encodingHandlerData 
)

Definition at line 1379 of file xmlparse.cc.

1382 {
1383  unknownEncodingHandler = handler;
1385 }
#define unknownEncodingHandler
Definition: xmlparse.cc:583
#define unknownEncodingHandlerData
Definition: xmlparse.cc:593
const XML_Char const XML_Char * data
XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

Definition at line 1314 of file xmlparse.cc.

1316 {
1317  unparsedEntityDeclHandler = handler;
1318 }
#define unparsedEntityDeclHandler
Definition: xmlparse.cc:569
XML_SetUserData ( XML_Parser  parser,
void userData 
)

Definition at line 1173 of file xmlparse.cc.

Referenced by xData_parseInitialize().

1174 {
1175  if (handlerArg == userData)
1176  handlerArg = userData = p;
1177  else
1178  userData = p;
1179 }
#define handlerArg
Definition: xmlparse.cc:556
const char * p
Definition: xmltok.h:285
#define userData
Definition: xmlparse.cc:555
XML_SetXmlDeclHandler ( XML_Parser  parser,
XML_XmlDeclHandler  xmldecl 
)

Definition at line 1409 of file xmlparse.cc.

1410  {
1411  xmlDeclHandler = handler;
1412 }
#define xmlDeclHandler
Definition: xmlparse.cc:587
XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

Definition at line 1680 of file xmlparse.cc.

1681 {
1682  switch (ps_parsing) {
1683  case XML_SUSPENDED:
1684  if (resumable) {
1686  return XML_STATUS_ERROR;
1687  }
1689  break;
1690  case XML_FINISHED:
1692  return XML_STATUS_ERROR;
1693  default:
1694  if (resumable) {
1695 #ifdef XML_DTD
1696  if (isParamEntity) {
1698  return XML_STATUS_ERROR;
1699  }
1700 #endif
1702  }
1703  else
1705  }
1706  return XML_STATUS_OK;
1707 }
#define XML_STATUS_OK
Definition: include/expat.h:49
#define errorCode
Definition: xmlparse.cc:601
#define XML_STATUS_ERROR
Definition: include/expat.h:47
#define ps_parsing
Definition: xmlparse.cc:649
XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

Definition at line 1150 of file xmlparse.cc.

1151 {
1152 #ifdef XML_DTD
1153  /* block after XML_Parse()/XML_ParseBuffer() has been called */
1156  useForeignDTD = useDTD;
1157  return XML_ERROR_NONE;
1158 #else
1160 #endif
1161 }
#define ps_parsing
Definition: xmlparse.cc:649
XML_UseParserAsHandlerArg ( XML_Parser  parser)

Definition at line 1144 of file xmlparse.cc.

1145 {
1146  handlerArg = parser;
1147 }
#define handlerArg
Definition: xmlparse.cc:556
XMLPARSEAPI ( XML_Size  )
XMLPARSEAPI ( XML_Index  )