xref: /illumos-gate/usr/src/cmd/troff/ext.h (revision 967a528a71e26f367825684fcb28916a3109feb8)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /*
31  * University Copyright- Copyright (c) 1982, 1986, 1988
32  * The Regents of the University of California
33  * All Rights Reserved
34  *
35  * University Acknowledgment- Portions of this document are derived from
36  * software developed by the University of California, Berkeley, and its
37  * contributors.
38  */
39 
40 extern	char	**argp;
41 extern	char	*chname;
42 extern	char	*eibuf;
43 extern	char	*enda;
44 extern	char	*fitab[];
45 extern	char	*fontab[];
46 extern	char	*kerntab[];
47 extern	char	*ibufp;
48 extern	char	*obufp;
49 extern	char	*unlkp;
50 extern	char	*xbufp;
51 extern	char	*xeibuf;
52 extern	char	cfname[NSO+1][NS];
53 extern	char	devname[];
54 extern	char	fontfile[];
55 extern	char	ibuf[IBUFSZ];
56 extern	char	mfiles[NMF][NS];
57 extern	char	nextf[];
58 extern	char	obuf[],	*obufp;
59 extern	char	termtab[],	fontfile[];
60 extern	char	tmp_name[];
61 extern	char	xbuf[IBUFSZ];
62 extern	filep	apptr;
63 extern	filep	ip;
64 extern	filep	nextb;
65 extern	filep	offset;
66 extern	filep	roff;
67 extern	filep	woff;
68 extern	short	*chtab;
69 extern	int	*pnp;
70 extern	short	*pstab;
71 extern	int	app;
72 extern	int	ascii;
73 extern	int	bd;
74 extern	int	bdtab[];
75 extern	int	ccs;
76 extern	int	copyf;
77 extern	int	cs;
78 extern	int	dfact;
79 extern	int	dfactd;
80 extern	int	diflg;
81 extern	int	dilev;
82 extern	int	donef;
83 extern	int	dotT;
84 extern	int	dpn;
85 extern	int	ds;
86 extern	int	ejf;
87 extern	int	em;
88 extern	int	eqflg;
89 extern	int	error;
90 extern	int	esc;
91 extern	int	eschar;
92 extern	int	ev;
93 extern	int	evi;
94 extern	int	evlist[EVLSZ];
95 extern	int	fc;
96 extern	int	flss;
97 extern	int	fontlab[];
98 extern	int	gflag;
99 extern	int	hflg;
100 extern	int	ibf;
101 extern	int	ifi;
102 extern	int	ifile;
103 extern	int	ifl[NSO];
104 extern	int	iflg;
105 extern	int	init;
106 extern	int	lead;
107 extern	int	lg;
108 extern	int	lgf;
109 extern	int	macerr;
110 extern	int	mflg;
111 extern	int	mfont;
112 extern	int	mlist[NTRAP];
113 extern	int	mpts;
114 extern	int	ndone;
115 extern	int	newmn;
116 extern	int	nflush;
117 extern	int	nfo;
118 extern	int	nfonts;
119 extern	int	nform;
120 extern	int	nhyp;
121 extern	int	nlflg;
122 extern	int	nlist[NTRAP];
123 extern	int	nmfi;
124 extern	int	no_out;
125 extern	int	nofeed;
126 extern	int	nonumb;
127 extern	int	noscale;
128 extern	int	npn;
129 extern	int	npnflg;
130 extern	int	nx;
131 extern	int	oldbits;
132 extern	int	oldmn;
133 extern	int	over;
134 extern	int	padc;
135 extern	int	pfont;
136 extern	int	pfrom;
137 extern	int	pipeflg;
138 extern	int	pl;
139 extern	int	pnlist[];
140 extern	int	po1;
141 extern	int	po;
142 extern	int	ppts;
143 extern	int	print;
144 extern	int	ptid;
145 extern	int	pto;
146 extern	int	quiet;
147 extern	int	ralss;
148 extern	int	rargc;
149 extern	int	raw;
150 extern	int	res;
151 extern	int	setwdf;
152 extern	int	sfont;
153 extern	int	smnt;
154 extern	int	stdi;
155 extern	int	stop;
156 extern	int	sv;
157 extern	int	tabch,	ldrch;
158 extern	int	tflg;
159 extern	int	totout;
160 extern	int	trap;
161 extern	int	trtab[];
162 extern	int	tty;
163 extern	int	ttyod;
164 extern	int	ulfont;
165 extern	int	vflag;
166 extern	int	wbfi;
167 extern	int	widthp;
168 extern	int	xfont;
169 extern	int	xpts;
170 extern	int	no_out;
171 extern	struct	s	*ejl;
172 extern	struct	s	*frame,	*stk,	*nxf;
173 extern	tchar	**hyp;
174 extern	tchar	*olinep;
175 extern	tchar	pbbuf[NC];
176 extern	tchar	*pbp;
177 extern	tchar	*lastpbp;
178 extern	tchar	ch;
179 extern	tchar	nrbits;
180 extern	tchar	oline[];
181 extern	struct widcache {	/* width cache, indexed by character */
182 	short	fontpts;
183 	short	width;
184 } widcache[NWIDCACHE];
185 extern	char gchtab[];
186 extern	struct	d	d[NDI];
187 extern	struct	d	*dip;
188 
189 #ifdef	EUC
190 #ifdef	NROFF
191 #include <stddef.h>
192 extern	int	multi_locale;
193 extern  int	csi_width[];
194 extern	char	mbbuf1[];
195 extern	char	*mbbuf1p;
196 extern	wchar_t	twc;
197 extern	int	(*wdbdg)(wchar_t, wchar_t, int);
198 extern	wchar_t	*(*wddlm)(wchar_t, wchar_t, int);
199 #endif	/* NROFF */
200 #endif	/* EUC */
201