Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xmlrole.c File Reference
#include <expat_config.h>
#include <stddef.h>
#include "expat_external.h"
#include "internal.h"
#include "xmlrole.h"
#include "ascii.h"

Go to the source code of this file.

Macros

#define MIN_BYTES_PER_CHAR(enc)
 
#define setTopLevel(state)
 

Typedefs

typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 

Functions

void XmlPrologStateInit (PROLOG_STATE *state)
 
void XmlPrologStateInitExternalEntity (PROLOG_STATE *state)
 

Macro Definition Documentation

◆ MIN_BYTES_PER_CHAR

#define MIN_BYTES_PER_CHAR ( enc)
Value:
((enc)->minBytesPerChar)

Definition at line 111 of file xmlrole.c.

◆ setTopLevel

#define setTopLevel ( state)
Value:
((state)->handler \
= ((state)->documentEntity ? internalSubset : externalSubset1))

Definition at line 115 of file xmlrole.c.

115# define setTopLevel(state) \
116 ((state)->handler \
117 = ((state)->documentEntity ? internalSubset : externalSubset1))

Typedef Documentation

◆ PROLOG_HANDLER

typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)

Definition at line 122 of file xmlrole.c.

Function Documentation

◆ XmlPrologStateInit()

void XmlPrologStateInit ( PROLOG_STATE * state)

Definition at line 1237 of file xmlrole.c.

1237 {
1238 state->handler = prolog0;
1239#ifdef XML_DTD
1240 state->documentEntity = 1;
1241 state->includeLevel = 0;
1242 state->inEntityValue = 0;
1243#endif /* XML_DTD */
1244}

◆ XmlPrologStateInitExternalEntity()

void XmlPrologStateInitExternalEntity ( PROLOG_STATE * state)

Definition at line 1249 of file xmlrole.c.

1249 {
1250 state->handler = externalSubset0;
1251 state->documentEntity = 0;
1252 state->includeLevel = 0;
1253}

Referenced by XML_ExternalEntityParserCreate().