xref: /csrg-svn/old/roff/common_source/nii.c (revision 7075)
1*7075Srrh #ifndef lint
2*7075Srrh static char sccsid[] = "@(#)nii.c	4.1 06/07/82";
3*7075Srrh #endif lint
4*7075Srrh 
5*7075Srrh #include "tdef.h"
6*7075Srrh #ifdef NROFF
7*7075Srrh #include "tw.h"
8*7075Srrh #endif
9*7075Srrh #include "sdef.h"
10*7075Srrh #include "d.h"
11*7075Srrh #include "v.h"
12*7075Srrh #include <sgtty.h>
13*7075Srrh 
14*7075Srrh int *vlist = (int *)&v;
15*7075Srrh struct s *frame, *stk, *ejl;
16*7075Srrh struct s *nxf, *litlev;
17*7075Srrh 
18*7075Srrh #ifdef NROFF
19*7075Srrh int pipeflg;
20*7075Srrh int hflg;
21*7075Srrh int eqflg;
22*7075Srrh #endif
23*7075Srrh 
24*7075Srrh #ifndef NROFF
25*7075Srrh int xpts;
26*7075Srrh int verm;
27*7075Srrh int *pslp;
28*7075Srrh int psflg;
29*7075Srrh int ppts;
30*7075Srrh int pfont;
31*7075Srrh int paper;
32*7075Srrh int mpts;
33*7075Srrh int mfont;
34*7075Srrh int mcase;
35*7075Srrh int escm;
36*7075Srrh int cs;
37*7075Srrh int code;
38*7075Srrh int ccs;
39*7075Srrh int bd;
40*7075Srrh int back;
41*7075Srrh #endif
42*7075Srrh 
43*7075Srrh int level;
44*7075Srrh int stdi;
45*7075Srrh int waitf;
46*7075Srrh int nofeed;
47*7075Srrh int quiet;
48*7075Srrh int stop;
49*7075Srrh char ibuf[IBUFSZ];
50*7075Srrh char xbuf[IBUFSZ];
51*7075Srrh char *ibufp;
52*7075Srrh char *xbufp;
53*7075Srrh char *eibuf;
54*7075Srrh char *xeibuf;
55*7075Srrh int cbuf[NC];
56*7075Srrh int *cp;
57*7075Srrh int nx;
58*7075Srrh int mflg;
59*7075Srrh int ch = 0;
60*7075Srrh int cps;
61*7075Srrh int ibf;
62*7075Srrh int ttyod;
63*7075Srrh struct sgttyb ttys;
64*7075Srrh int iflg;
65*7075Srrh char *enda;
66*7075Srrh int rargc;
67*7075Srrh char **argp;
68*7075Srrh char trtab[256];
69*7075Srrh int lgf;
70*7075Srrh int copyf;
71*7075Srrh int ch0;
72*7075Srrh int cwidth;
73*7075Srrh filep ip;
74*7075Srrh int nlflg;
75*7075Srrh int *ap;
76*7075Srrh int donef;
77*7075Srrh int nflush;
78*7075Srrh int nchar;
79*7075Srrh int rchar;
80*7075Srrh int nfo;
81*7075Srrh int ifile;
82*7075Srrh int padc;
83*7075Srrh int raw;
84*7075Srrh int ifl[NSO];
85*7075Srrh int ifi;
86*7075Srrh int flss;
87*7075Srrh int nonumb;
88*7075Srrh int trap;
89*7075Srrh int tflg;
90*7075Srrh int ejf;
91*7075Srrh int lit;
92*7075Srrh int gflag;
93*7075Srrh int dilev;
94*7075Srrh int tlss;
95*7075Srrh filep offset;
96*7075Srrh int em;
97*7075Srrh int ds;
98*7075Srrh filep woff;
99*7075Srrh int app;
100*7075Srrh int ndone;
101*7075Srrh int lead;
102*7075Srrh int ralss;
103*7075Srrh filep nextb;
104*7075Srrh int *argtop;
105*7075Srrh int nrbits;
106*7075Srrh int nform;
107*7075Srrh int oldmn;
108*7075Srrh int newmn;
109*7075Srrh int macerr;
110*7075Srrh filep apptr;
111*7075Srrh int diflg;
112*7075Srrh filep roff;
113*7075Srrh int wbfi;
114*7075Srrh int inc[NN];
115*7075Srrh int fmt[NN];
116*7075Srrh int evi;
117*7075Srrh int vflag;
118*7075Srrh int noscale;
119*7075Srrh int po1;
120*7075Srrh int nlist[NTRAP];
121*7075Srrh int mlist[NTRAP];
122*7075Srrh int evlist[EVLSZ];
123*7075Srrh int ev;
124*7075Srrh int tty;
125*7075Srrh int sfont;
126*7075Srrh int sv;
127*7075Srrh int esc;
128*7075Srrh int widthp;
129*7075Srrh int xfont;
130*7075Srrh int setwdf;
131*7075Srrh int xbitf;
132*7075Srrh int over;
133*7075Srrh int nhyp;
134*7075Srrh int **hyp;
135*7075Srrh int *olinep;
136*7075Srrh int esct;
137*7075Srrh int ttysave = -1;
138*7075Srrh int dotT;
139*7075Srrh char *unlkp;
140*7075Srrh int no_out;
141