1 /*
2 Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included
14  * in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22  * OTHER DEALINGS IN THE SOFTWARE.
23 */
24 
25 enum {
26   BT_NONXML,
27   BT_MALFORM,
28   BT_LT,
29   BT_AMP,
30   BT_RSQB,
31   BT_LEAD2,
32   BT_LEAD3,
33   BT_LEAD4,
34   BT_TRAIL,
35   BT_CR,
36   BT_LF,
37   BT_GT,
38   BT_QUOT,
39   BT_APOS,
40   BT_EQUALS,
41   BT_QUEST,
42   BT_EXCL,
43   BT_SOL,
44   BT_SEMI,
45   BT_NUM,
46   BT_LSQB,
47   BT_S,
48   BT_NMSTRT,
49   BT_COLON,
50   BT_HEX,
51   BT_DIGIT,
52   BT_NAME,
53   BT_MINUS,
54   BT_OTHER, /* known not to be a name or name start character */
55   BT_NONASCII, /* might be a name or name start character */
56   BT_PERCNT,
57   BT_LPAR,
58   BT_RPAR,
59   BT_AST,
60   BT_PLUS,
61   BT_COMMA,
62   BT_VERBAR
63 };
64 
65 #include <stddef.h>
66