Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xmlrole.h
Go to the documentation of this file.
1 /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2  See the file COPYING for copying permission.
3 */
4 
5 #ifndef XmlRole_INCLUDED
6 #define XmlRole_INCLUDED 1
7 
8 #ifdef __VMS
9 /* 0 1 2 3 0 1 2 3
10  1234567890123456789012345678901 1234567890123456789012345678901 */
11 #define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
12 #endif
13 
14 #include "xmltok.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 enum {
79 #ifdef XML_DTD
80  XML_ROLE_TEXT_DECL,
81  XML_ROLE_IGNORE_SECT,
82  XML_ROLE_INNER_PARAM_ENTITY_REF,
83 #endif /* XML_DTD */
85 };
86 
87 typedef struct prolog_state {
88  int (PTRCALL *handler) (struct prolog_state *state,
89  int tok,
90  const char *ptr,
91  const char *end,
92  const ENCODING *enc);
93  unsigned level;
94  int role_none;
95 #ifdef XML_DTD
96  unsigned includeLevel;
97  int documentEntity;
98  int inEntityValue;
99 #endif /* XML_DTD */
100 } PROLOG_STATE;
101 
103 #ifdef XML_DTD
104 void XmlPrologStateInitExternalEntity(PROLOG_STATE *);
105 #endif /* XML_DTD */
106 
107 #define XmlTokenRole(state, tok, ptr, end, enc) \
108  (((state)->handler)(state, tok, ptr, end, enc))
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif /* not XmlRole_INCLUDED */
void XmlPrologStateInit(PROLOG_STATE *)
Definition: xmlrole.cc:1316
struct prolog_state PROLOG_STATE
#define PTRCALL
Definition: internal.h:52
unsigned level
Definition: xmlrole.h:93
int const char const char const ENCODING * enc
Definition: xmlrole.h:89
int const char const char * end
Definition: xmlrole.h:89
int role_none
Definition: xmlrole.h:94
int const char * ptr
Definition: xmlrole.h:89
int(PTRCALL *handler)(struct prolog_state *state