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