Main Page | Class List | Directories | File List | Class Members | File Members

xmlrole.c File Reference

#include <stddef.h>
#include "expat_external.h"
#include "internal.h"
#include "xmlrole.h"
#include "ascii.h"

Go to the source code of this file.

Defines

#define MIN_BYTES_PER_CHAR(enc)   ((enc)->minBytesPerChar)
#define setTopLevel(state)   ((state)->handler = internalSubset)

Typedefs

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

Functions

static int FASTCALL common (PROLOG_STATE *state, int tok)
void XmlPrologStateInit (PROLOG_STATE *state)

Variables

static const char KW_ANY []
static const char KW_ATTLIST []
static const char KW_CDATA []
static const char KW_DOCTYPE []
static const char KW_ELEMENT []
static const char KW_EMPTY []
static const char KW_ENTITIES []
static const char KW_ENTITY []
static const char KW_FIXED []
static const char KW_ID []
static const char KW_IDREF []
static const char KW_IDREFS []
static const char KW_IGNORE []
static const char KW_IMPLIED []
static const char KW_INCLUDE []
static const char KW_NDATA []
static const char KW_NMTOKEN []
static const char KW_NMTOKENS []
static const char KW_NOTATION []
static const char KW_PCDATA []
static const char KW_PUBLIC []
static const char KW_REQUIRED []
static const char KW_SYSTEM []
static PROLOG_HANDLER prolog0
static PROLOG_HANDLER prolog1
static PROLOG_HANDLER prolog2
static PROLOG_HANDLER doctype0
static PROLOG_HANDLER doctype1
static PROLOG_HANDLER doctype2
static PROLOG_HANDLER doctype3
static PROLOG_HANDLER doctype4
static PROLOG_HANDLER doctype5
static PROLOG_HANDLER internalSubset
static PROLOG_HANDLER entity0
static PROLOG_HANDLER entity1
static PROLOG_HANDLER entity2
static PROLOG_HANDLER entity3
static PROLOG_HANDLER entity4
static PROLOG_HANDLER entity5
static PROLOG_HANDLER entity6
static PROLOG_HANDLER entity7
static PROLOG_HANDLER entity8
static PROLOG_HANDLER entity9
static PROLOG_HANDLER entity10
static PROLOG_HANDLER notation0
static PROLOG_HANDLER notation1
static PROLOG_HANDLER notation2
static PROLOG_HANDLER notation3
static PROLOG_HANDLER notation4
static PROLOG_HANDLER attlist0
static PROLOG_HANDLER attlist1
static PROLOG_HANDLER attlist2
static PROLOG_HANDLER attlist3
static PROLOG_HANDLER attlist4
static PROLOG_HANDLER attlist5
static PROLOG_HANDLER attlist6
static PROLOG_HANDLER attlist7
static PROLOG_HANDLER attlist8
static PROLOG_HANDLER attlist9
static PROLOG_HANDLER element0
static PROLOG_HANDLER element1
static PROLOG_HANDLER element2
static PROLOG_HANDLER element3
static PROLOG_HANDLER element4
static PROLOG_HANDLER element5
static PROLOG_HANDLER element6
static PROLOG_HANDLER element7
static PROLOG_HANDLER declClose
static PROLOG_HANDLER error


Define Documentation

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

Definition at line 81 of file xmlrole.c.

Referenced by attlist8(), element2(), internalSubset(), prolog0(), and prolog1().

#define setTopLevel state   )     ((state)->handler = internalSubset)
 

Definition at line 90 of file xmlrole.c.

Referenced by attlist1(), declClose(), entity10(), entity5(), and notation4().


Typedef Documentation

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

Definition at line 93 of file xmlrole.c.


Function Documentation

static int FASTCALL common PROLOG_STATE state,
int  tok
[static]
 

Definition at line 1297 of file xmlrole.c.

References error, XML_ROLE_ERROR, and XML_TOK_PARAM_ENTITY_REF.

Referenced by attlist0(), attlist1(), attlist2(), attlist3(), attlist4(), attlist5(), attlist6(), attlist7(), attlist8(), attlist9(), declClose(), doctype0(), doctype1(), doctype2(), doctype3(), doctype4(), doctype5(), element0(), element1(), element2(), element3(), element4(), element5(), element6(), element7(), entity0(), entity1(), entity10(), entity2(), entity3(), entity4(), entity5(), entity6(), entity7(), entity8(), entity9(), internalSubset(), notation0(), notation1(), notation2(), notation3(), notation4(), prolog0(), prolog1(), and prolog2().

01298 {
01299 #ifdef XML_DTD
01300   if (!state->documentEntity && tok == XML_TOK_PARAM_ENTITY_REF)
01301     return XML_ROLE_INNER_PARAM_ENTITY_REF;
01302 #endif
01303   state->handler = error;
01304   return XML_ROLE_ERROR;
01305 }

void XmlPrologStateInit PROLOG_STATE state  ) 
 

Definition at line 1308 of file xmlrole.c.

References prolog0.

Referenced by parserInit().

01309 {
01310   state->handler = prolog0;
01311 #ifdef XML_DTD
01312   state->documentEntity = 1;
01313   state->includeLevel = 0;
01314   state->inEntityValue = 0;
01315 #endif /* XML_DTD */
01316 }


Variable Documentation

PROLOG_HANDLER attlist0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by internalSubset().

PROLOG_HANDLER attlist1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist0(), attlist8(), and attlist9().

PROLOG_HANDLER attlist2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist1().

PROLOG_HANDLER attlist3 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist2(), and attlist4().

PROLOG_HANDLER attlist4 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist3().

PROLOG_HANDLER attlist5 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist2().

PROLOG_HANDLER attlist6 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist5(), and attlist7().

PROLOG_HANDLER attlist7 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist6().

PROLOG_HANDLER attlist8 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist2(), attlist4(), and attlist7().

PROLOG_HANDLER attlist9 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by attlist8().

PROLOG_HANDLER declClose [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element1(), element3(), element5(), element7(), entity2(), entity6(), entity7(), notation3(), and notation4().

PROLOG_HANDLER doctype0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by prolog0(), and prolog1().

PROLOG_HANDLER doctype1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype0().

PROLOG_HANDLER doctype2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype1().

PROLOG_HANDLER doctype3 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype1(), and doctype2().

PROLOG_HANDLER doctype4 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype3().

PROLOG_HANDLER doctype5 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by internalSubset().

PROLOG_HANDLER element0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by internalSubset().

PROLOG_HANDLER element1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element0().

PROLOG_HANDLER element2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element1().

PROLOG_HANDLER element3 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element2().

PROLOG_HANDLER element4 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element3(), and element5().

PROLOG_HANDLER element5 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element4().

PROLOG_HANDLER element6 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element2(), and element7().

PROLOG_HANDLER element7 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by element2(), and element6().

PROLOG_HANDLER entity0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by internalSubset().

PROLOG_HANDLER entity1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity0().

PROLOG_HANDLER entity10 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity9().

PROLOG_HANDLER entity2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity0().

PROLOG_HANDLER entity3 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity2().

PROLOG_HANDLER entity4 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity2(), and entity3().

PROLOG_HANDLER entity5 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity4().

PROLOG_HANDLER entity6 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity5().

PROLOG_HANDLER entity7 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity1().

PROLOG_HANDLER entity8 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity7().

PROLOG_HANDLER entity9 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by entity7(), and entity8().

PROLOG_HANDLER error [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by common(), prolog0(), prolog1(), and prolog2().

PROLOG_HANDLER internalSubset [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype1(), and doctype4().

const char KW_ANY[] [static]
 

Initial value:

 {
    ASCII_A, ASCII_N, ASCII_Y, '\0' }

Definition at line 29 of file xmlrole.c.

Referenced by element1().

const char KW_ATTLIST[] [static]
 

Initial value:

 {
    ASCII_A, ASCII_T, ASCII_T, ASCII_L, ASCII_I, ASCII_S, ASCII_T, '\0' }

Definition at line 31 of file xmlrole.c.

Referenced by internalSubset().

const char KW_CDATA[] [static]
 

Initial value:

 {
    ASCII_C, ASCII_D, ASCII_A, ASCII_T, ASCII_A, '\0' }

Definition at line 33 of file xmlrole.c.

Referenced by attlist2().

const char KW_DOCTYPE[] [static]
 

Initial value:

Definition at line 35 of file xmlrole.c.

Referenced by prolog0(), and prolog1().

const char KW_ELEMENT[] [static]
 

Initial value:

 {
    ASCII_E, ASCII_L, ASCII_E, ASCII_M, ASCII_E, ASCII_N, ASCII_T, '\0' }

Definition at line 37 of file xmlrole.c.

Referenced by internalSubset().

const char KW_EMPTY[] [static]
 

Initial value:

Definition at line 39 of file xmlrole.c.

Referenced by element1().

const char KW_ENTITIES[] [static]
 

Initial value:

 {
    ASCII_E, ASCII_N, ASCII_T, ASCII_I, ASCII_T, ASCII_I, ASCII_E, ASCII_S,
    '\0' }

Definition at line 41 of file xmlrole.c.

Referenced by attlist2().

const char KW_ENTITY[] [static]
 

Initial value:

 {
    ASCII_E, ASCII_N, ASCII_T, ASCII_I, ASCII_T, ASCII_Y, '\0' }

Definition at line 44 of file xmlrole.c.

Referenced by attlist2(), and internalSubset().

const char KW_FIXED[] [static]
 

Initial value:

Definition at line 46 of file xmlrole.c.

Referenced by attlist8().

const char KW_ID[] [static]
 

Initial value:

 {
    ASCII_I, ASCII_D, '\0' }

Definition at line 48 of file xmlrole.c.

Referenced by attlist2().

const char KW_IDREF[] [static]
 

Initial value:

Definition at line 50 of file xmlrole.c.

Referenced by attlist2().

const char KW_IDREFS[] [static]
 

Initial value:

Definition at line 52 of file xmlrole.c.

Referenced by attlist2().

const char KW_IGNORE[] [static]
 

Initial value:

Definition at line 54 of file xmlrole.c.

const char KW_IMPLIED[] [static]
 

Initial value:

Definition at line 56 of file xmlrole.c.

Referenced by attlist8().

const char KW_INCLUDE[] [static]
 

Initial value:

Definition at line 58 of file xmlrole.c.

const char KW_NDATA[] [static]
 

Initial value:

 {
    ASCII_N, ASCII_D, ASCII_A, ASCII_T, ASCII_A, '\0' }

Definition at line 60 of file xmlrole.c.

Referenced by entity5().

const char KW_NMTOKEN[] [static]
 

Initial value:

Definition at line 62 of file xmlrole.c.

Referenced by attlist2().

const char KW_NMTOKENS[] [static]
 

Initial value:

Definition at line 64 of file xmlrole.c.

Referenced by attlist2().

const char KW_NOTATION[] [static]
 

Initial value:

    { ASCII_N, ASCII_O, ASCII_T, ASCII_A, ASCII_T, ASCII_I, ASCII_O, ASCII_N,
      '\0' }

Definition at line 67 of file xmlrole.c.

Referenced by attlist2(), and internalSubset().

const char KW_PCDATA[] [static]
 

Initial value:

 {
    ASCII_P, ASCII_C, ASCII_D, ASCII_A, ASCII_T, ASCII_A, '\0' }

Definition at line 70 of file xmlrole.c.

Referenced by element2().

const char KW_PUBLIC[] [static]
 

Initial value:

Definition at line 72 of file xmlrole.c.

Referenced by doctype1(), entity2(), entity7(), and notation1().

const char KW_REQUIRED[] [static]
 

Initial value:

 {
    ASCII_R, ASCII_E, ASCII_Q, ASCII_U, ASCII_I, ASCII_R, ASCII_E, ASCII_D,
    '\0' }

Definition at line 74 of file xmlrole.c.

Referenced by attlist8().

const char KW_SYSTEM[] [static]
 

Initial value:

Definition at line 77 of file xmlrole.c.

Referenced by doctype1(), entity2(), entity7(), and notation1().

PROLOG_HANDLER notation0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by internalSubset().

PROLOG_HANDLER notation1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by notation0().

PROLOG_HANDLER notation2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by notation1().

PROLOG_HANDLER notation3 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by notation1().

PROLOG_HANDLER notation4 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by notation2().

PROLOG_HANDLER prolog0 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by XmlPrologStateInit().

PROLOG_HANDLER prolog1 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by prolog0().

PROLOG_HANDLER prolog2 [static]
 

Definition at line 100 of file xmlrole.c.

Referenced by doctype1(), doctype4(), and doctype5().


© sourcejam.com 2005-2008