/* * CDE - Common Desktop Environment * * Copyright (c) 1993-2012, The Open Group. All rights reserved. * * These libraries and programs are free software; you can * redistribute them and/or modify them under the terms of the GNU * Lesser General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. * * These libraries and programs are distributed in the hope that * they will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public * License along with these librararies and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ /* $XConsortium: sgmldecl.h /main/3 1996/06/19 17:17:34 drk $ */ /* sgmldecl.h: SGML declaration parsing. */ #define QATTCNT 0 #define QATTSPLEN 1 #define QBSEQLEN 2 #define QDTAGLEN 3 #define QDTEMPLEN 4 #define QENTLVL 5 #define QGRPCNT 6 #define QGRPGTCNT 7 #define QGRPLVL 8 #define QLITLEN 9 #define QNAMELEN 10 #define QNORMSEP 11 #define QPILEN 12 #define QTAGLEN 13 #define QTAGLVL 14 #define NQUANTITY (QTAGLVL+1) #define TOTALCAP 0 #define ENTCAP 1 #define ENTCHCAP 2 #define ELEMCAP 3 #define GRPCAP 4 #define EXGRPCAP 5 #define EXNMCAP 6 #define ATTCAP 7 #define ATTCHCAP 8 #define AVGRPCAP 9 #define NOTCAP 10 #define NOTCHCAP 11 #define IDCAP 12 #define IDREFCAP 13 #define MAPCAP 14 #define LKSETCAP 15 #define LKNMCAP 16 extern char *captab[]; struct sgmldecl { long capacity[NCAPACITY]; long subdoc; UNCH formal; UNCH omittag; UNCH shorttag; UNCH shortref; UNCH namecase[2]; /* case translation of general/entity names */ int quantity[NQUANTITY]; }; extern struct sgmldecl sd; #define OMITTAG (sd.omittag) #define SUBDOC (sd.subdoc) #define SHORTTAG (sd.shorttag) #define FORMAL (sd.formal) #define ATTCNT (sd.quantity[QATTCNT]) #define ATTSPLEN (sd.quantity[QATTSPLEN]) #define BSEQLEN (sd.quantity[QBSEQLEN]) #define ENTLVL (sd.quantity[QENTLVL]) #define GRPGTCNT (sd.quantity[QGRPGTCNT]) #define GRPCNT (sd.quantity[QGRPCNT]) #define GRPLVL (sd.quantity[QGRPLVL]) #define LITLEN (sd.quantity[QLITLEN]) #define NAMELEN (sd.quantity[QNAMELEN]) #define NORMSEP (sd.quantity[QNORMSEP]) #define PILEN (sd.quantity[QPILEN]) #define TAGLEN (sd.quantity[QTAGLEN]) #define TAGLVL (sd.quantity[QTAGLVL]) #define NAMECASE (sd.namecase[0]) #define ENTCASE (sd.namecase[1]) #define YES 1 #define NO 0 #define UNUSED -1 #define UNKNOWN -2 #define UNDESC -3 #define UNKNOWN_SET -4 extern int asciicharset[];