1 #ifndef lint 2 static char sccsid[] = "@(#)nii.c 2.1 (CWI) 85/07/18"; 3 #endif lint 4 #include "tdef.h" 5 #ifdef NROFF 6 #include "tw.h" 7 #endif 8 #include "ext.h" 9 #include <sgtty.h> 10 11 struct s *frame, *stk, *ejl; 12 struct s *nxf; 13 14 int pipeflg; 15 int hflg; /* used in nroff only */ 16 int eqflg; /* used in nroff only */ 17 18 #ifndef NROFF 19 int xpts; 20 int ppts; 21 int pfont; 22 int mpts; 23 int mfont; 24 int cs; 25 int ccs; 26 int bd; 27 #endif 28 29 int stdi; 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; 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 */ 42 int nx; 43 int mflg; 44 tchar ch = 0; 45 int ibf; 46 int ttyod; 47 struct sgttyb ttys; 48 int iflg; 49 char *enda; 50 int rargc; 51 char **argp; 52 int trtab[NTRTAB]; 53 int lgf; 54 int copyf; 55 filep ip; 56 int nlflg; 57 int donef; 58 int nflush; 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; 72 filep offset; 73 int em; 74 int ds; 75 filep woff; 76 int app; 77 int ndone; 78 int lead; 79 int ralss; 80 filep nextb; 81 tchar nrbits; 82 int nform; 83 int oldmn; 84 int newmn; 85 int macerr; 86 filep apptr; 87 int diflg; 88 filep roff; 89 int wbfi; 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; 105 int over; 106 int nhyp; 107 tchar **hyp; 108 tchar *olinep; 109 int ttysave = -1; 110 int dotT; 111 char *unlkp; 112 int no_out; 113 struct widcache widcache[NWIDCACHE]; 114 struct d d[NDI]; 115 struct d *dip; 116