Merge branch 'linux1'
[oweals/cde.git] / cde / programs / dthelp / parser / pass2 / util / dtddef.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: dtddef.h /main/3 1995/11/08 11:03:31 rswiston $ */
24 /* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
25 /* Dtddef.h contains definitions relevant to document-type
26 definitions */
27
28 typedef int M_ELEMENT ;
29 typedef int M_ARC ;
30 typedef int M_STATE ;
31 typedef int M_ANDGROUP ;
32
33 /* Possible element content types */
34 #define M_REGEXP 0
35 #define M_ANY 1
36 #define M_NONE 2
37 #define M_CDATA 3
38 #define M_RCDATA 4
39
40 typedef struct{
41   int enptr, start, content, inptr, exptr, parptr, parcount, srefptr ;
42   unsigned int smin : 1, emin : 1, useoradd : 1 ;
43   } M_ELTSTRUCT ;
44
45 typedef struct {
46   int paramname, type, kwlist, deftype ;
47   M_WCHAR *defval ;
48   } M_PARAMETER ;
49 /* Possible parameter default types */
50 #define M_NAMEDEF 0
51 #define M_CURRENT 1
52 #define M_REQUIRED 2
53 #define M_NULLDEF 3
54 #define M_CHANGEDCUR 4
55
56 /* Possible parameter types */
57 #define M_KEYWORD 0
58 #define M_ID 1
59 #define M_IDRF 2
60 #define M_IDRFS 3
61 #define M_NAMEPAR 4
62 #define M_NAMES 5
63 #define M_NMTOKEN 6
64 #define M_NMSTOKEN 7
65 #define M_NUMBER 8
66 #define M_NUMS 9
67 #define M_NUTOKEN 10
68 #define M_NUSTOKEN 11
69 #define M_CDATT 12
70 #define M_ENTATT 13
71
72 typedef struct {
73   int sref ;
74   int entity ;
75   int next ;
76   } M_SREF ;
77
78 typedef struct {
79   unsigned final : 1, datacontent : 1 ;
80   unsigned first : 14 ;
81   } M_STATESTRUCT ;
82
83 typedef struct {
84   M_STATE start ;
85   M_ANDGROUP next ;
86   } M_ANDSTRUCT ;
87
88 typedef struct {
89   M_ELEMENT element ;
90   int next ;
91   } M_EXCEPTION ;
92
93
94 typedef struct {
95   unsigned label : 15;
96   unsigned optional : 1;
97   int minim ;
98   M_ANDGROUP group ;
99   M_STATE to ;
100   M_ARC next ;
101   } M_ARCSTRUCT ;
102
103