xref: /onnv-gate/usr/src/cmd/troff/ext.h (revision 217:758a5315b0d7)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
50Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
60Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
70Sstevel@tonic-gate  * with the License.
80Sstevel@tonic-gate  *
90Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
100Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
110Sstevel@tonic-gate  * See the License for the specific language governing permissions
120Sstevel@tonic-gate  * and limitations under the License.
130Sstevel@tonic-gate  *
140Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
150Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
160Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
170Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
180Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
190Sstevel@tonic-gate  *
200Sstevel@tonic-gate  * CDDL HEADER END
210Sstevel@tonic-gate  */
220Sstevel@tonic-gate /*
230Sstevel@tonic-gate  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate  * Use is subject to license terms.
250Sstevel@tonic-gate  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
280Sstevel@tonic-gate /*	  All Rights Reserved  	*/
290Sstevel@tonic-gate 
300Sstevel@tonic-gate /*
310Sstevel@tonic-gate  * University Copyright- Copyright (c) 1982, 1986, 1988
320Sstevel@tonic-gate  * The Regents of the University of California
330Sstevel@tonic-gate  * All Rights Reserved
340Sstevel@tonic-gate  *
350Sstevel@tonic-gate  * University Acknowledgment- Portions of this document are derived from
360Sstevel@tonic-gate  * software developed by the University of California, Berkeley, and its
370Sstevel@tonic-gate  * contributors.
380Sstevel@tonic-gate  */
390Sstevel@tonic-gate 
40*217Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
41*217Smuffin 
420Sstevel@tonic-gate extern	char	**argp;
430Sstevel@tonic-gate extern	char	*chname;
440Sstevel@tonic-gate extern	char	*eibuf;
450Sstevel@tonic-gate extern	char	*enda;
460Sstevel@tonic-gate extern	char	*fitab[];
470Sstevel@tonic-gate extern	char	*fontab[];
480Sstevel@tonic-gate extern	char	*kerntab[];
490Sstevel@tonic-gate extern	char	*ibufp;
500Sstevel@tonic-gate extern	char	*obufp;
510Sstevel@tonic-gate extern	char	*unlkp;
520Sstevel@tonic-gate extern	char	*xbufp;
530Sstevel@tonic-gate extern	char	*xeibuf;
540Sstevel@tonic-gate extern	char	cfname[NSO+1][NS];
550Sstevel@tonic-gate extern	char	devname[];
560Sstevel@tonic-gate extern	char	fontfile[];
570Sstevel@tonic-gate extern	char	ibuf[IBUFSZ];
580Sstevel@tonic-gate extern	char	mfiles[NMF][NS];
590Sstevel@tonic-gate extern	char	nextf[];
600Sstevel@tonic-gate extern	char	obuf[],	*obufp;
610Sstevel@tonic-gate extern	char	termtab[],	fontfile[];
620Sstevel@tonic-gate extern	char	tmp_name[];
630Sstevel@tonic-gate extern	char	xbuf[IBUFSZ];
640Sstevel@tonic-gate extern	filep	apptr;
650Sstevel@tonic-gate extern	filep	ip;
660Sstevel@tonic-gate extern	filep	nextb;
670Sstevel@tonic-gate extern	filep	offset;
680Sstevel@tonic-gate extern	filep	roff;
690Sstevel@tonic-gate extern	filep	woff;
700Sstevel@tonic-gate extern	short	*chtab;
710Sstevel@tonic-gate extern	int	*pnp;
720Sstevel@tonic-gate extern	short	*pstab;
730Sstevel@tonic-gate extern	int	app;
740Sstevel@tonic-gate extern	int	ascii;
750Sstevel@tonic-gate extern	int	bd;
760Sstevel@tonic-gate extern	int	bdtab[];
770Sstevel@tonic-gate extern	int	ccs;
780Sstevel@tonic-gate extern	int	copyf;
790Sstevel@tonic-gate extern	int	cs;
800Sstevel@tonic-gate extern	int	dfact;
810Sstevel@tonic-gate extern	int	dfactd;
820Sstevel@tonic-gate extern	int	diflg;
830Sstevel@tonic-gate extern	int	dilev;
840Sstevel@tonic-gate extern	int	donef;
850Sstevel@tonic-gate extern	int	dotT;
860Sstevel@tonic-gate extern	int	dpn;
870Sstevel@tonic-gate extern	int	ds;
880Sstevel@tonic-gate extern	int	ejf;
890Sstevel@tonic-gate extern	int	em;
900Sstevel@tonic-gate extern	int	eqflg;
910Sstevel@tonic-gate extern	int	error;
920Sstevel@tonic-gate extern	int	esc;
930Sstevel@tonic-gate extern	int	eschar;
940Sstevel@tonic-gate extern	int	ev;
950Sstevel@tonic-gate extern	int	evi;
960Sstevel@tonic-gate extern	int	evlist[EVLSZ];
970Sstevel@tonic-gate extern	int	fc;
980Sstevel@tonic-gate extern	int	flss;
990Sstevel@tonic-gate extern	int	fontlab[];
1000Sstevel@tonic-gate extern	int	gflag;
1010Sstevel@tonic-gate extern	int	hflg;
1020Sstevel@tonic-gate extern	int	ibf;
1030Sstevel@tonic-gate extern	int	ifi;
1040Sstevel@tonic-gate extern	int	ifile;
1050Sstevel@tonic-gate extern	int	ifl[NSO];
1060Sstevel@tonic-gate extern	int	iflg;
1070Sstevel@tonic-gate extern	int	init;
1080Sstevel@tonic-gate extern	int	lead;
1090Sstevel@tonic-gate extern	int	lg;
1100Sstevel@tonic-gate extern	int	lgf;
1110Sstevel@tonic-gate extern	int	macerr;
1120Sstevel@tonic-gate extern	int	mflg;
1130Sstevel@tonic-gate extern	int	mfont;
1140Sstevel@tonic-gate extern	int	mlist[NTRAP];
1150Sstevel@tonic-gate extern	int	mpts;
1160Sstevel@tonic-gate extern	int	ndone;
1170Sstevel@tonic-gate extern	int	newmn;
1180Sstevel@tonic-gate extern	int	nflush;
1190Sstevel@tonic-gate extern	int	nfo;
1200Sstevel@tonic-gate extern	int	nfonts;
1210Sstevel@tonic-gate extern	int	nform;
1220Sstevel@tonic-gate extern	int	nhyp;
1230Sstevel@tonic-gate extern	int	nlflg;
1240Sstevel@tonic-gate extern	int	nlist[NTRAP];
1250Sstevel@tonic-gate extern	int	nmfi;
1260Sstevel@tonic-gate extern	int	no_out;
1270Sstevel@tonic-gate extern	int	nofeed;
1280Sstevel@tonic-gate extern	int	nonumb;
1290Sstevel@tonic-gate extern	int	noscale;
1300Sstevel@tonic-gate extern	int	npn;
1310Sstevel@tonic-gate extern	int	npnflg;
1320Sstevel@tonic-gate extern	int	nx;
1330Sstevel@tonic-gate extern	int	oldbits;
1340Sstevel@tonic-gate extern	int	oldmn;
1350Sstevel@tonic-gate extern	int	over;
1360Sstevel@tonic-gate extern	int	padc;
1370Sstevel@tonic-gate extern	int	pfont;
1380Sstevel@tonic-gate extern	int	pfrom;
1390Sstevel@tonic-gate extern	int	pipeflg;
1400Sstevel@tonic-gate extern	int	pl;
1410Sstevel@tonic-gate extern	int	pnlist[];
1420Sstevel@tonic-gate extern	int	po1;
1430Sstevel@tonic-gate extern	int	po;
1440Sstevel@tonic-gate extern	int	ppts;
1450Sstevel@tonic-gate extern	int	print;
1460Sstevel@tonic-gate extern	int	ptid;
1470Sstevel@tonic-gate extern	int	pto;
1480Sstevel@tonic-gate extern	int	quiet;
1490Sstevel@tonic-gate extern	int	ralss;
1500Sstevel@tonic-gate extern	int	rargc;
1510Sstevel@tonic-gate extern	int	raw;
1520Sstevel@tonic-gate extern	int	res;
1530Sstevel@tonic-gate extern	int	setwdf;
1540Sstevel@tonic-gate extern	int	sfont;
1550Sstevel@tonic-gate extern	int	smnt;
1560Sstevel@tonic-gate extern	int	stdi;
1570Sstevel@tonic-gate extern	int	stop;
1580Sstevel@tonic-gate extern	int	sv;
1590Sstevel@tonic-gate extern	int	tabch,	ldrch;
1600Sstevel@tonic-gate extern	int	tflg;
1610Sstevel@tonic-gate extern	int	totout;
1620Sstevel@tonic-gate extern	int	trap;
1630Sstevel@tonic-gate extern	int	trtab[];
1640Sstevel@tonic-gate extern	int	tty;
1650Sstevel@tonic-gate extern	int	ttyod;
1660Sstevel@tonic-gate extern	int	ulfont;
1670Sstevel@tonic-gate extern	int	vflag;
1680Sstevel@tonic-gate extern	int	wbfi;
1690Sstevel@tonic-gate extern	int	widthp;
1700Sstevel@tonic-gate extern	int	xfont;
1710Sstevel@tonic-gate extern	int	xpts;
172*217Smuffin extern	int	no_out;
1730Sstevel@tonic-gate extern	struct	s	*ejl;
1740Sstevel@tonic-gate extern	struct	s	*frame,	*stk,	*nxf;
1750Sstevel@tonic-gate extern	tchar	**hyp;
1760Sstevel@tonic-gate extern	tchar	*olinep;
1770Sstevel@tonic-gate extern	tchar	pbbuf[NC];
1780Sstevel@tonic-gate extern	tchar	*pbp;
1790Sstevel@tonic-gate extern	tchar	*lastpbp;
1800Sstevel@tonic-gate extern	tchar	ch;
1810Sstevel@tonic-gate extern	tchar	nrbits;
1820Sstevel@tonic-gate extern	tchar	oline[];
1830Sstevel@tonic-gate extern	struct widcache {	/* width cache, indexed by character */
1840Sstevel@tonic-gate 	short	fontpts;
1850Sstevel@tonic-gate 	short	width;
1860Sstevel@tonic-gate } widcache[NWIDCACHE];
1870Sstevel@tonic-gate extern	char gchtab[];
1880Sstevel@tonic-gate extern	struct	d	d[NDI];
1890Sstevel@tonic-gate extern	struct	d	*dip;
1900Sstevel@tonic-gate 
1910Sstevel@tonic-gate #ifdef	EUC
1920Sstevel@tonic-gate #ifdef	NROFF
1930Sstevel@tonic-gate #include <stddef.h>
1940Sstevel@tonic-gate extern	int	multi_locale;
1950Sstevel@tonic-gate extern  int	csi_width[];
1960Sstevel@tonic-gate extern	char	mbbuf1[];
1970Sstevel@tonic-gate extern	char	*mbbuf1p;
1980Sstevel@tonic-gate extern	wchar_t	twc;
1990Sstevel@tonic-gate extern	int	(*wdbdg)(wchar_t, wchar_t, int);
2000Sstevel@tonic-gate extern	wchar_t	*(*wddlm)(wchar_t, wchar_t, int);
2010Sstevel@tonic-gate #endif	/* NROFF */
2020Sstevel@tonic-gate #endif	/* EUC */
203