1 #ifndef lint
2 /*
3 static char sccsid[] = "@(#)nii.c	2.1 (CWI) 85/07/18";
4 */
5 static char sccsid[] = "@(#)nii.c	2.2 (Berkeley) 11/03/90";
6 #endif lint
7 #include "tdef.h"
8 #ifdef NROFF
9 #include "tw.h"
10 #endif
11 #include "ext.h"
12 #include <sgtty.h>
13 
14 struct 	s *frame, *stk, *ejl;
15 struct	s *nxf;
16 
17 int	pipeflg;
18 int	hflg;	/* used in nroff only */
19 int	eqflg;	/* used in nroff only */
20 
21 #ifndef NROFF
22 int	xpts;
23 int	ppts;
24 int	pfont;
25 int	mpts;
26 int	mfont;
27 int	cs;
28 int	ccs;
29 int	bd;
30 #endif
31 
32 int	stdi;
33 int	nofeed;
34 int	quiet;
35 int	stop;
36 char	ibuf[IBUFSZ];
37 char	xbuf[IBUFSZ];
38 char	*ibufp;
39 char	*xbufp;
40 char	*eibuf;
41 char	*xeibuf;
42 tchar	pbbuf[NC];	/* pushback buffer for arguments, \n, etc. */
43 tchar	*pbp = pbbuf;	/* next free slot in pbbuf */
44 tchar	*lastpbp = pbbuf;	/* pbp in previous stack frame */
45 int	nx;
46 int	mflg;
47 tchar	ch = 0;
48 int	ibf;
49 int	ttyod;
50 struct	sgttyb ttys;
51 int	iflg;
52 int	rargc;
53 char	**argp;
54 int	trtab[NTRTAB];
55 int	lgf;
56 int	copyf;
57 filep	ip;
58 int	nlflg;
59 int	donef;
60 int	nflush;
61 int	nfo;
62 int	ifile;
63 int	padc;
64 int	raw;
65 int	ifl[NSO];
66 int	ifi;
67 int	flss;
68 int	nonumb;
69 int	trap;
70 int	tflg;
71 int	ejf;
72 int	gflag;
73 int	dilev;
74 filep	offset;
75 int	em;
76 int	ds;
77 filep	woff;
78 int	app;
79 int	ndone;
80 int	lead;
81 int	ralss;
82 filep	nextb;
83 tchar	nrbits;
84 int	nform;
85 int	oldmn;
86 int	newmn;
87 int	macerr;
88 filep	apptr;
89 int	diflg;
90 filep	roff;
91 int	wbfi;
92 int	evi;
93 int	vflag;
94 int	noscale;
95 int	po1;
96 int	nlist[NTRAP];
97 int	mlist[NTRAP];
98 int	evlist[EVLSZ];
99 int	ev;
100 int	tty;
101 int	sfont	= FT;	/* appears to be "standard" font; used by .ul */
102 int	sv;
103 int	esc;
104 int	widthp;
105 int	xfont;
106 int	setwdf;
107 int	over;
108 int	nhyp;
109 tchar	**hyp;
110 tchar	*olinep;
111 int	ttysave = -1;
112 int	dotT;
113 char	*unlkp;
114 int	no_out;
115 struct	widcache widcache[NWIDCACHE];
116 struct	d d[NDI];
117 struct	d *dip;
118