2086
|
1 /*
|
|
2 The contents of this file are subject to the Mozilla Public License
|
|
3 Version 1.1 (the "License"); you may not use this file except in
|
|
4 compliance with the License. You may obtain a copy of the License at
|
|
5 http://www.mozilla.org/MPL/
|
|
6
|
|
7 Software distributed under the License is distributed on an "AS IS"
|
|
8 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
9 License for the specific language governing rights and limitations
|
|
10 under the License.
|
|
11
|
|
12 The Original Code is expat.
|
|
13
|
|
14 The Initial Developer of the Original Code is James Clark.
|
|
15 Portions created by James Clark are Copyright (C) 1998, 1999
|
|
16 James Clark. All Rights Reserved.
|
|
17
|
|
18 Contributor(s):
|
|
19
|
|
20 Alternatively, the contents of this file may be used under the terms
|
|
21 of the GNU General Public License (the "GPL"), in which case the
|
|
22 provisions of the GPL are applicable instead of those above. If you
|
|
23 wish to allow use of your version of this file only under the terms of
|
|
24 the GPL and not to allow others to use your version of this file under
|
|
25 the MPL, indicate your decision by deleting the provisions above and
|
|
26 replace them with the notice and other provisions required by the
|
|
27 GPL. If you do not delete the provisions above, a recipient may use
|
|
28 your version of this file under either the MPL or the GPL.
|
|
29 */
|
|
30
|
|
31 enum {
|
|
32 BT_NONXML,
|
|
33 BT_MALFORM,
|
|
34 BT_LT,
|
|
35 BT_AMP,
|
|
36 BT_RSQB,
|
|
37 BT_LEAD2,
|
|
38 BT_LEAD3,
|
|
39 BT_LEAD4,
|
|
40 BT_TRAIL,
|
|
41 BT_CR,
|
|
42 BT_LF,
|
|
43 BT_GT,
|
|
44 BT_QUOT,
|
|
45 BT_APOS,
|
|
46 BT_EQUALS,
|
|
47 BT_QUEST,
|
|
48 BT_EXCL,
|
|
49 BT_SOL,
|
|
50 BT_SEMI,
|
|
51 BT_NUM,
|
|
52 BT_LSQB,
|
|
53 BT_S,
|
|
54 BT_NMSTRT,
|
|
55 BT_COLON,
|
|
56 BT_HEX,
|
|
57 BT_DIGIT,
|
|
58 BT_NAME,
|
|
59 BT_MINUS,
|
|
60 BT_OTHER, /* known not to be a name or name start character */
|
|
61 BT_NONASCII, /* might be a name or name start character */
|
|
62 BT_PERCNT,
|
|
63 BT_LPAR,
|
|
64 BT_RPAR,
|
|
65 BT_AST,
|
|
66 BT_PLUS,
|
|
67 BT_COMMA,
|
|
68 BT_VERBAR
|
|
69 };
|
|
70
|
|
71 #include <stddef.h>
|