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