TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
xmlrole.h
Go to the documentation of this file.
1/*
2The contents of this file are subject to the Mozilla Public License
3Version 1.0 (the "License"); you may not use this file except in
4compliance with the License. You may obtain a copy of the License at
5http://www.mozilla.org/MPL/
6
7Software distributed under the License is distributed on an "AS IS"
8basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
9License for the specific language governing rights and limitations
10under the License.
11
12The Original Code is expat.
13
14The Initial Developer of the Original Code is James Clark.
15Portions created by James Clark are Copyright (C) 1998
16James Clark. All Rights Reserved.
17
18Contributor(s):
19$Id$
20*/
21
22#ifndef XmlRole_INCLUDED
23#define XmlRole_INCLUDED 1
24
25#include "xmltok.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31enum {
82};
83
84typedef struct prolog_state {
85 int (*handler)(struct prolog_state *state,
86 int tok,
87 const char *ptr,
88 const char *end,
89 const ENCODING *enc);
90 unsigned level;
92
94
95#define XmlTokenRole(state, tok, ptr, end, enc) \
96 (((state)->handler)(state, tok, ptr, end, enc))
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* not XmlRole_INCLUDED */
unsigned level
Definition xmlrole.h:90
int(* handler)(struct prolog_state *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
Definition xmlrole.h:85
@ XML_ROLE_GROUP_CHOICE
Definition xmlrole.h:75
@ XML_ROLE_NOTATION_PUBLIC_ID
Definition xmlrole.h:49
@ XML_ROLE_ERROR
Definition xmlrole.h:32
@ XML_ROLE_GROUP_CLOSE_REP
Definition xmlrole.h:72
@ XML_ROLE_CONTENT_PCDATA
Definition xmlrole.h:69
@ XML_ROLE_CONTENT_ELEMENT_REP
Definition xmlrole.h:78
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITY
Definition xmlrole.h:55
@ XML_ROLE_NOTATION_NO_SYSTEM_ID
Definition xmlrole.h:48
@ XML_ROLE_PARAM_ENTITY_REF
Definition xmlrole.h:81
@ XML_ROLE_ATTRIBUTE_TYPE_ENTITIES
Definition xmlrole.h:56
@ XML_ROLE_GROUP_CLOSE
Definition xmlrole.h:71
@ XML_ROLE_DOCTYPE_CLOSE
Definition xmlrole.h:39
@ XML_ROLE_ENTITY_NOTATION_NAME
Definition xmlrole.h:45
@ XML_ROLE_GROUP_SEQUENCE
Definition xmlrole.h:76
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKENS
Definition xmlrole.h:58
@ XML_ROLE_ATTLIST_ELEMENT_NAME
Definition xmlrole.h:61
@ XML_ROLE_GROUP_CLOSE_OPT
Definition xmlrole.h:73
@ XML_ROLE_IMPLIED_ATTRIBUTE_VALUE
Definition xmlrole.h:62
@ XML_ROLE_ATTRIBUTE_TYPE_CDATA
Definition xmlrole.h:51
@ XML_ROLE_ATTRIBUTE_ENUM_VALUE
Definition xmlrole.h:59
@ XML_ROLE_ENTITY_SYSTEM_ID
Definition xmlrole.h:43
@ XML_ROLE_CONTENT_ELEMENT
Definition xmlrole.h:77
@ XML_ROLE_ATTRIBUTE_NOTATION_VALUE
Definition xmlrole.h:60
@ XML_ROLE_DOCTYPE_SYSTEM_ID
Definition xmlrole.h:37
@ XML_ROLE_NOTATION_SYSTEM_ID
Definition xmlrole.h:47
@ XML_ROLE_ATTRIBUTE_NAME
Definition xmlrole.h:50
@ XML_ROLE_CONTENT_ANY
Definition xmlrole.h:67
@ XML_ROLE_ATTRIBUTE_TYPE_NMTOKEN
Definition xmlrole.h:57
@ XML_ROLE_ATTRIBUTE_TYPE_ID
Definition xmlrole.h:52
@ XML_ROLE_NONE
Definition xmlrole.h:33
@ XML_ROLE_ENTITY_PUBLIC_ID
Definition xmlrole.h:44
@ XML_ROLE_INSTANCE_START
Definition xmlrole.h:35
@ XML_ROLE_DOCTYPE_NAME
Definition xmlrole.h:36
@ XML_ROLE_NOTATION_NAME
Definition xmlrole.h:46
@ XML_ROLE_CONTENT_ELEMENT_PLUS
Definition xmlrole.h:80
@ XML_ROLE_GENERAL_ENTITY_NAME
Definition xmlrole.h:40
@ XML_ROLE_PARAM_ENTITY_NAME
Definition xmlrole.h:41
@ XML_ROLE_DEFAULT_ATTRIBUTE_VALUE
Definition xmlrole.h:64
@ XML_ROLE_XML_DECL
Definition xmlrole.h:34
@ XML_ROLE_GROUP_CLOSE_PLUS
Definition xmlrole.h:74
@ XML_ROLE_REQUIRED_ATTRIBUTE_VALUE
Definition xmlrole.h:63
@ XML_ROLE_GROUP_OPEN
Definition xmlrole.h:70
@ XML_ROLE_CONTENT_EMPTY
Definition xmlrole.h:68
@ XML_ROLE_FIXED_ATTRIBUTE_VALUE
Definition xmlrole.h:65
@ XML_ROLE_CONTENT_ELEMENT_OPT
Definition xmlrole.h:79
@ XML_ROLE_ATTRIBUTE_TYPE_IDREFS
Definition xmlrole.h:54
@ XML_ROLE_DOCTYPE_PUBLIC_ID
Definition xmlrole.h:38
@ XML_ROLE_ATTRIBUTE_TYPE_IDREF
Definition xmlrole.h:53
@ XML_ROLE_ELEMENT_NAME
Definition xmlrole.h:66
@ XML_ROLE_ENTITY_VALUE
Definition xmlrole.h:42
void XMLTOKAPI XmlPrologStateInit(PROLOG_STATE *)
struct prolog_state PROLOG_STATE
#define XMLTOKAPI
Definition xmltok.h:30
struct encoding ENCODING
Definition xmltok.h:124