Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <expat_config.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "ascii.h"
#include "expat.h"
#include "siphash.h"
#include "internal.h"
#include "xmltok.h"
#include "xmlrole.h"
Go to the source code of this file.
Classes | |
struct | NAMED |
struct | HASH_TABLE |
struct | HASH_TABLE_ITER |
struct | binding |
struct | prefix |
struct | TAG_NAME |
struct | tag |
struct | ENTITY |
struct | CONTENT_SCAFFOLD |
struct | block |
struct | STRING_POOL |
struct | attribute_id |
struct | DEFAULT_ATTRIBUTE |
struct | NS_ATT |
struct | ELEMENT_TYPE |
struct | DTD |
struct | open_internal_entity |
struct | accounting |
struct | entity_stats |
struct | XML_ParserStruct |
Macros | |
#define | XML_BUILDING_EXPAT 1 |
#define | _GNU_SOURCE 1 /* syscall prototype */ |
#define | XML_ENCODE_MAX XML_UTF8_ENCODE_MAX |
#define | XmlConvert XmlUtf8Convert |
#define | XmlGetInternalEncoding XmlGetUtf8InternalEncoding |
#define | XmlGetInternalEncodingNS XmlGetUtf8InternalEncodingNS |
#define | XmlEncode XmlUtf8Encode |
#define | MUST_CONVERT(enc, s) |
#define | XML_T(x) |
#define | XML_L(x) |
#define | ROUND_UP(n, sz) |
#define | EXPAT_SAFE_PTR_DIFF(p, q) |
#define | SECOND_HASH(hash, mask, power) |
#define | PROBE_STEP(hash, mask, power) |
#define | INIT_TAG_BUF_SIZE 32 /* must be a multiple of sizeof(XML_Char) */ |
#define | INIT_DATA_BUF_SIZE 1024 |
#define | INIT_ATTS_SIZE 16 |
#define | INIT_ATTS_VERSION 0xFFFFFFFF |
#define | INIT_BLOCK_SIZE 1024 |
#define | INIT_BUFFER_SIZE 1024 |
#define | EXPAND_SPARE 24 |
#define | INIT_SCAFFOLD_ELEMENTS 32 |
#define | poolStart(pool) |
#define | poolEnd(pool) |
#define | poolLength(pool) |
#define | poolChop(pool) |
#define | poolLastChar(pool) |
#define | poolDiscard(pool) |
#define | poolFinish(pool) |
#define | poolAppendChar(pool, c) |
#define | MALLOC(parser, s) |
#define | REALLOC(parser, p, s) |
#define | FREE(parser, p) |
#define | V1(a, b, c) |
#define | V2(a, b, c) |
#define | CONTEXT_SEP XML_T(ASCII_FF) |
#define | INIT_POWER 6 |
Typedefs | |
typedef char | ICHAR |
typedef const XML_Char * | KEY |
typedef struct binding | BINDING |
typedef struct prefix | PREFIX |
typedef struct tag | TAG |
typedef struct block | BLOCK |
typedef struct attribute_id | ATTRIBUTE_ID |
typedef struct open_internal_entity | OPEN_INTERNAL_ENTITY |
typedef unsigned long long | XmlBigCount |
typedef struct accounting | ACCOUNTING |
typedef struct entity_stats | ENTITY_STATS |
Enumerations | |
enum | XML_Account { XML_ACCOUNT_DIRECT , XML_ACCOUNT_ENTITY_EXPANSION , XML_ACCOUNT_NONE } |
#define _GNU_SOURCE 1 /* syscall prototype */ |
Definition at line 65 of file xmlparse.c.
Definition at line 6516 of file xmlparse.c.
#define EXPAND_SPARE 24 |
Definition at line 245 of file xmlparse.c.
#define EXPAT_SAFE_PTR_DIFF | ( | p, | |
q ) |
Definition at line 196 of file xmlparse.c.
Referenced by XML_GetBuffer().
#define FREE | ( | parser, | |
p ) |
Definition at line 713 of file xmlparse.c.
Referenced by XML_FreeContentModel(), XML_GetBuffer(), XML_MemFree(), XML_ParserFree(), XML_ParserReset(), and XML_SetEncoding().
#define INIT_ATTS_SIZE 16 |
Definition at line 240 of file xmlparse.c.
#define INIT_ATTS_VERSION 0xFFFFFFFF |
Definition at line 241 of file xmlparse.c.
#define INIT_BLOCK_SIZE 1024 |
Definition at line 242 of file xmlparse.c.
#define INIT_BUFFER_SIZE 1024 |
Definition at line 243 of file xmlparse.c.
Referenced by XML_GetBuffer().
#define INIT_DATA_BUF_SIZE 1024 |
Definition at line 239 of file xmlparse.c.
#define INIT_POWER 6 |
Definition at line 6987 of file xmlparse.c.
#define INIT_SCAFFOLD_ELEMENTS 32 |
Definition at line 318 of file xmlparse.c.
#define INIT_TAG_BUF_SIZE 32 /* must be a multiple of sizeof(XML_Char) */ |
Definition at line 238 of file xmlparse.c.
#define MALLOC | ( | parser, | |
s ) |
Definition at line 711 of file xmlparse.c.
Referenced by XML_GetBuffer(), and XML_MemMalloc().
#define MUST_CONVERT | ( | enc, | |
s ) |
Definition at line 161 of file xmlparse.c.
#define poolAppendChar | ( | pool, | |
c ) |
Definition at line 599 of file xmlparse.c.
#define poolChop | ( | pool | ) |
Definition at line 595 of file xmlparse.c.
#define poolDiscard | ( | pool | ) |
Definition at line 597 of file xmlparse.c.
#define poolEnd | ( | pool | ) |
Definition at line 593 of file xmlparse.c.
#define poolFinish | ( | pool | ) |
Definition at line 598 of file xmlparse.c.
#define poolLastChar | ( | pool | ) |
Definition at line 596 of file xmlparse.c.
#define poolLength | ( | pool | ) |
Definition at line 594 of file xmlparse.c.
#define poolStart | ( | pool | ) |
Definition at line 592 of file xmlparse.c.
#define PROBE_STEP | ( | hash, | |
mask, | |||
power ) |
Definition at line 230 of file xmlparse.c.
#define REALLOC | ( | parser, | |
p, | |||
s ) |
Definition at line 712 of file xmlparse.c.
Referenced by XML_MemRealloc(), and XML_Parse().
#define ROUND_UP | ( | n, | |
sz ) |
Definition at line 193 of file xmlparse.c.
#define SECOND_HASH | ( | hash, | |
mask, | |||
power ) |
Definition at line 228 of file xmlparse.c.
#define V1 | ( | a, | |
b, | |||
c ) |
Referenced by G4Abla::DeexcitationAblaxx(), and G4TwistedTrd::GetSurfaceArea().
#define V2 | ( | a, | |
b, | |||
c ) |
Referenced by G4Abla::DeexcitationAblaxx(), G4TwistedTrd::GetSurfaceArea(), and XML_ExpatVersion().
#define XML_BUILDING_EXPAT 1 |
Definition at line 60 of file xmlparse.c.
#define XML_ENCODE_MAX XML_UTF8_ENCODE_MAX |
Definition at line 156 of file xmlparse.c.
#define XML_L | ( | x | ) |
Definition at line 188 of file xmlparse.c.
Referenced by XML_ErrorString(), and XML_GetFeatureList().
#define XML_T | ( | x | ) |
Definition at line 187 of file xmlparse.c.
#define XmlConvert XmlUtf8Convert |
Definition at line 157 of file xmlparse.c.
#define XmlEncode XmlUtf8Encode |
Definition at line 160 of file xmlparse.c.
#define XmlGetInternalEncoding XmlGetUtf8InternalEncoding |
Definition at line 158 of file xmlparse.c.
#define XmlGetInternalEncodingNS XmlGetUtf8InternalEncodingNS |
Definition at line 159 of file xmlparse.c.
typedef struct accounting ACCOUNTING |
typedef struct attribute_id ATTRIBUTE_ID |
typedef struct entity_stats ENTITY_STATS |
typedef char ICHAR |
Definition at line 162 of file xmlparse.c.
Definition at line 202 of file xmlparse.c.
typedef struct open_internal_entity OPEN_INTERNAL_ENTITY |
typedef unsigned long long XmlBigCount |
Definition at line 411 of file xmlparse.c.
enum XML_Account |
Enumerator | |
---|---|
XML_ACCOUNT_DIRECT | |
XML_ACCOUNT_ENTITY_EXPANSION | |
XML_ACCOUNT_NONE |
Definition at line 403 of file xmlparse.c.
enum XML_Error PTRCALL Processor | ( | XML_Parser | parser, |
const char * | start, | ||
const char * | end, | ||
const char ** | endPtr ) |
unsigned long long testingAccountingGetCountBytesDirect | ( | XML_Parser | parser | ) |
Definition at line 7770 of file xmlparse.c.
unsigned long long testingAccountingGetCountBytesIndirect | ( | XML_Parser | parser | ) |
Definition at line 7777 of file xmlparse.c.
const char * unsignedCharToPrintable | ( | unsigned char | c | ) |
Definition at line 7847 of file xmlparse.c.
void XMLCALL XML_DefaultCurrent | ( | XML_Parser | parser | ) |
Definition at line 2335 of file xmlparse.c.
Definition at line 2350 of file xmlparse.c.
Definition at line 2455 of file xmlparse.c.
XML_Expat_Version XMLCALL XML_ExpatVersionInfo | ( | void | ) |
Definition at line 2474 of file xmlparse.c.
XML_Parser XMLCALL XML_ExternalEntityParserCreate | ( | XML_Parser | oldParser, |
const XML_Char * | context, | ||
const XML_Char * | encodingName ) |
Definition at line 1250 of file xmlparse.c.
void XMLCALL XML_FreeContentModel | ( | XML_Parser | parser, |
XML_Content * | model ) |
Definition at line 2309 of file xmlparse.c.
const XML_Char *XMLCALL XML_GetBase | ( | XML_Parser | parser | ) |
Definition at line 1554 of file xmlparse.c.
void *XMLCALL XML_GetBuffer | ( | XML_Parser | parser, |
int | len ) |
Definition at line 2038 of file xmlparse.c.
Referenced by XML_Parse().
int XMLCALL XML_GetCurrentByteCount | ( | XML_Parser | parser | ) |
Definition at line 2256 of file xmlparse.c.
XML_Index XMLCALL XML_GetCurrentByteIndex | ( | XML_Parser | parser | ) |
Definition at line 2246 of file xmlparse.c.
XML_Size XMLCALL XML_GetCurrentColumnNumber | ( | XML_Parser | parser | ) |
Definition at line 2297 of file xmlparse.c.
XML_Size XMLCALL XML_GetCurrentLineNumber | ( | XML_Parser | parser | ) |
Definition at line 2285 of file xmlparse.c.
enum XML_Error XMLCALL XML_GetErrorCode | ( | XML_Parser | parser | ) |
Definition at line 2239 of file xmlparse.c.
const XML_Feature *XMLCALL XML_GetFeatureList | ( | void | ) |
Definition at line 2485 of file xmlparse.c.
int XMLCALL XML_GetIdAttributeIndex | ( | XML_Parser | parser | ) |
Definition at line 1568 of file xmlparse.c.
const char *XMLCALL XML_GetInputContext | ( | XML_Parser | parser, |
int * | offset, | ||
int * | size ) |
Definition at line 2265 of file xmlparse.c.
void XMLCALL XML_GetParsingStatus | ( | XML_Parser | parser, |
XML_ParsingStatus * | status ) |
Definition at line 2231 of file xmlparse.c.
int XMLCALL XML_GetSpecifiedAttributeCount | ( | XML_Parser | parser | ) |
Definition at line 1561 of file xmlparse.c.
void XMLCALL XML_MemFree | ( | XML_Parser | parser, |
void * | ptr ) |
Definition at line 2329 of file xmlparse.c.
void *XMLCALL XML_MemMalloc | ( | XML_Parser | parser, |
size_t | size ) |
Definition at line 2315 of file xmlparse.c.
void *XMLCALL XML_MemRealloc | ( | XML_Parser | parser, |
void * | ptr, | ||
size_t | size ) |
Definition at line 2322 of file xmlparse.c.
enum XML_Status XMLCALL XML_Parse | ( | XML_Parser | parser, |
const char * | s, | ||
int | len, | ||
int | isFinal ) |
Definition at line 1819 of file xmlparse.c.
enum XML_Status XMLCALL XML_ParseBuffer | ( | XML_Parser | parser, |
int | len, | ||
int | isFinal ) |
Definition at line 1973 of file xmlparse.c.
Referenced by XML_Parse().
XML_Parser XMLCALL XML_ParserCreate | ( | const XML_Char * | encodingName | ) |
Definition at line 716 of file xmlparse.c.
XML_Parser XMLCALL XML_ParserCreate_MM | ( | const XML_Char * | encodingName, |
const XML_Memory_Handling_Suite * | memsuite, | ||
const XML_Char * | nameSep ) |
Definition at line 965 of file xmlparse.c.
Referenced by XML_ParserCreate(), and XML_ParserCreateNS().
XML_Parser XMLCALL XML_ParserCreateNS | ( | const XML_Char * | encodingName, |
XML_Char | nsSep ) |
Definition at line 721 of file xmlparse.c.
void XMLCALL XML_ParserFree | ( | XML_Parser | parser | ) |
Definition at line 1430 of file xmlparse.c.
Referenced by XML_ExternalEntityParserCreate().
XML_Bool XMLCALL XML_ParserReset | ( | XML_Parser | parser, |
const XML_Char * | encodingName ) |
Definition at line 1182 of file xmlparse.c.
enum XML_Status XMLCALL XML_ResumeParser | ( | XML_Parser | parser | ) |
Definition at line 2191 of file xmlparse.c.
void XMLCALL XML_SetAttlistDeclHandler | ( | XML_Parser | parser, |
XML_AttlistDeclHandler | attdecl ) |
Definition at line 1770 of file xmlparse.c.
enum XML_Status XMLCALL XML_SetBase | ( | XML_Parser | parser, |
const XML_Char * | p ) |
Definition at line 1540 of file xmlparse.c.
XML_Bool XMLCALL XML_SetBillionLaughsAttackProtectionActivationThreshold | ( | XML_Parser | parser, |
unsigned long long | activationThresholdBytes ) |
Definition at line 2545 of file xmlparse.c.
XML_Bool XMLCALL XML_SetBillionLaughsAttackProtectionMaximumAmplification | ( | XML_Parser | parser, |
float | maximumAmplificationFactor ) |
Definition at line 2533 of file xmlparse.c.
void XMLCALL XML_SetCdataSectionHandler | ( | XML_Parser | parser, |
XML_StartCdataSectionHandler | start, | ||
XML_EndCdataSectionHandler | end ) |
Definition at line 1625 of file xmlparse.c.
void XMLCALL XML_SetCharacterDataHandler | ( | XML_Parser | parser, |
XML_CharacterDataHandler | handler ) |
Definition at line 1605 of file xmlparse.c.
void XMLCALL XML_SetCommentHandler | ( | XML_Parser | parser, |
XML_CommentHandler | handler ) |
Definition at line 1619 of file xmlparse.c.
void XMLCALL XML_SetDefaultHandler | ( | XML_Parser | parser, |
XML_DefaultHandler | handler ) |
Definition at line 1649 of file xmlparse.c.
void XMLCALL XML_SetDefaultHandlerExpand | ( | XML_Parser | parser, |
XML_DefaultHandler | handler ) |
Definition at line 1657 of file xmlparse.c.
void XMLCALL XML_SetDoctypeDeclHandler | ( | XML_Parser | parser, |
XML_StartDoctypeDeclHandler | start, | ||
XML_EndDoctypeDeclHandler | end ) |
Definition at line 1665 of file xmlparse.c.
void XMLCALL XML_SetElementDeclHandler | ( | XML_Parser | parser, |
XML_ElementDeclHandler | eldecl ) |
Definition at line 1764 of file xmlparse.c.
void XMLCALL XML_SetElementHandler | ( | XML_Parser | parser, |
XML_StartElementHandler | start, | ||
XML_EndElementHandler | end ) |
Definition at line 1584 of file xmlparse.c.
enum XML_Status XMLCALL XML_SetEncoding | ( | XML_Parser | parser, |
const XML_Char * | encodingName ) |
Definition at line 1223 of file xmlparse.c.
void XMLCALL XML_SetEndCdataSectionHandler | ( | XML_Parser | parser, |
XML_EndCdataSectionHandler | end ) |
Definition at line 1642 of file xmlparse.c.
void XMLCALL XML_SetEndDoctypeDeclHandler | ( | XML_Parser | parser, |
XML_EndDoctypeDeclHandler | end ) |
Definition at line 1681 of file xmlparse.c.
void XMLCALL XML_SetEndElementHandler | ( | XML_Parser | parser, |
XML_EndElementHandler | end ) |
Definition at line 1599 of file xmlparse.c.
void XMLCALL XML_SetEndNamespaceDeclHandler | ( | XML_Parser | parser, |
XML_EndNamespaceDeclHandler | end ) |
Definition at line 1717 of file xmlparse.c.
void XMLCALL XML_SetEntityDeclHandler | ( | XML_Parser | parser, |
XML_EntityDeclHandler | handler ) |
Definition at line 1776 of file xmlparse.c.
void XMLCALL XML_SetExternalEntityRefHandler | ( | XML_Parser | parser, |
XML_ExternalEntityRefHandler | handler ) |
Definition at line 1731 of file xmlparse.c.
void XMLCALL XML_SetExternalEntityRefHandlerArg | ( | XML_Parser | parser, |
void * | arg ) |
Definition at line 1738 of file xmlparse.c.
int XMLCALL XML_SetHashSalt | ( | XML_Parser | parser, |
unsigned long | hash_salt ) |
Definition at line 1805 of file xmlparse.c.
Referenced by XML_SetHashSalt().
void XMLCALL XML_SetNamespaceDeclHandler | ( | XML_Parser | parser, |
XML_StartNamespaceDeclHandler | start, | ||
XML_EndNamespaceDeclHandler | end ) |
Definition at line 1700 of file xmlparse.c.
void XMLCALL XML_SetNotationDeclHandler | ( | XML_Parser | parser, |
XML_NotationDeclHandler | handler ) |
Definition at line 1694 of file xmlparse.c.
void XMLCALL XML_SetNotStandaloneHandler | ( | XML_Parser | parser, |
XML_NotStandaloneHandler | handler ) |
Definition at line 1724 of file xmlparse.c.
int XMLCALL XML_SetParamEntityParsing | ( | XML_Parser | parser, |
enum XML_ParamEntityParsing | peParsing ) |
Definition at line 1788 of file xmlparse.c.
void XMLCALL XML_SetProcessingInstructionHandler | ( | XML_Parser | parser, |
XML_ProcessingInstructionHandler | handler ) |
Definition at line 1612 of file xmlparse.c.
void XMLCALL XML_SetReturnNSTriplet | ( | XML_Parser | parser, |
int | do_nst ) |
Definition at line 1519 of file xmlparse.c.
void XMLCALL XML_SetSkippedEntityHandler | ( | XML_Parser | parser, |
XML_SkippedEntityHandler | handler ) |
Definition at line 1748 of file xmlparse.c.
void XMLCALL XML_SetStartCdataSectionHandler | ( | XML_Parser | parser, |
XML_StartCdataSectionHandler | start ) |
Definition at line 1635 of file xmlparse.c.
void XMLCALL XML_SetStartDoctypeDeclHandler | ( | XML_Parser | parser, |
XML_StartDoctypeDeclHandler | start ) |
Definition at line 1674 of file xmlparse.c.
void XMLCALL XML_SetStartElementHandler | ( | XML_Parser | parser, |
XML_StartElementHandler | start ) |
Definition at line 1593 of file xmlparse.c.
void XMLCALL XML_SetStartNamespaceDeclHandler | ( | XML_Parser | parser, |
XML_StartNamespaceDeclHandler | start ) |
Definition at line 1710 of file xmlparse.c.
void XMLCALL XML_SetUnknownEncodingHandler | ( | XML_Parser | parser, |
XML_UnknownEncodingHandler | handler, | ||
void * | data ) |
Definition at line 1755 of file xmlparse.c.
void XMLCALL XML_SetUnparsedEntityDeclHandler | ( | XML_Parser | parser, |
XML_UnparsedEntityDeclHandler | handler ) |
Definition at line 1687 of file xmlparse.c.
void XMLCALL XML_SetUserData | ( | XML_Parser | parser, |
void * | p ) |
Definition at line 1530 of file xmlparse.c.
void XMLCALL XML_SetXmlDeclHandler | ( | XML_Parser | parser, |
XML_XmlDeclHandler | handler ) |
Definition at line 1782 of file xmlparse.c.
enum XML_Status XMLCALL XML_StopParser | ( | XML_Parser | parser, |
XML_Bool | resumable ) |
Definition at line 2161 of file xmlparse.c.
enum XML_Error XMLCALL XML_UseForeignDTD | ( | XML_Parser | parser, |
XML_Bool | useDTD ) |
Definition at line 1502 of file xmlparse.c.
void XMLCALL XML_UseParserAsHandlerArg | ( | XML_Parser | parser | ) |
Definition at line 1496 of file xmlparse.c.