2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: sgmldecl.h /main/3 1996/06/19 17:17:34 drk $ */
24 /* sgmldecl.h: SGML declaration parsing. */
42 #define NQUANTITY (QTAGLVL+1)
62 extern char *captab[];
65 long capacity[NCAPACITY];
71 UNCH namecase[2]; /* case translation of general/entity names */
72 int quantity[NQUANTITY];
75 extern struct sgmldecl sd;
77 #define OMITTAG (sd.omittag)
78 #define SUBDOC (sd.subdoc)
79 #define SHORTTAG (sd.shorttag)
80 #define FORMAL (sd.formal)
82 #define ATTCNT (sd.quantity[QATTCNT])
83 #define ATTSPLEN (sd.quantity[QATTSPLEN])
84 #define BSEQLEN (sd.quantity[QBSEQLEN])
85 #define ENTLVL (sd.quantity[QENTLVL])
86 #define GRPGTCNT (sd.quantity[QGRPGTCNT])
87 #define GRPCNT (sd.quantity[QGRPCNT])
88 #define GRPLVL (sd.quantity[QGRPLVL])
89 #define LITLEN (sd.quantity[QLITLEN])
90 #define NAMELEN (sd.quantity[QNAMELEN])
91 #define NORMSEP (sd.quantity[QNORMSEP])
92 #define PILEN (sd.quantity[QPILEN])
93 #define TAGLEN (sd.quantity[QTAGLEN])
94 #define TAGLVL (sd.quantity[QTAGLVL])
96 #define NAMECASE (sd.namecase[0])
97 #define ENTCASE (sd.namecase[1])
105 #define UNKNOWN_SET -4
107 extern int asciicharset[];