1*48302Sbostic /*- 2*48302Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*48302Sbostic * All rights reserved. 4*48302Sbostic * 5*48302Sbostic * %sccs.include.proprietary.c% 6*48302Sbostic */ 7*48302Sbostic 87075Srrh #ifndef lint 9*48302Sbostic static char sccsid[] = "@(#)nii.c 4.2 (Berkeley) 04/18/91"; 10*48302Sbostic #endif /* not lint */ 117075Srrh 127075Srrh #include "tdef.h" 137075Srrh #ifdef NROFF 147075Srrh #include "tw.h" 157075Srrh #endif 167075Srrh #include "sdef.h" 177075Srrh #include "d.h" 187075Srrh #include "v.h" 197075Srrh #include <sgtty.h> 207075Srrh 217075Srrh int *vlist = (int *)&v; 227075Srrh struct s *frame, *stk, *ejl; 237075Srrh struct s *nxf, *litlev; 247075Srrh 257075Srrh #ifdef NROFF 267075Srrh int pipeflg; 277075Srrh int hflg; 287075Srrh int eqflg; 297075Srrh #endif 307075Srrh 317075Srrh #ifndef NROFF 327075Srrh int xpts; 337075Srrh int verm; 347075Srrh int *pslp; 357075Srrh int psflg; 367075Srrh int ppts; 377075Srrh int pfont; 387075Srrh int paper; 397075Srrh int mpts; 407075Srrh int mfont; 417075Srrh int mcase; 427075Srrh int escm; 437075Srrh int cs; 447075Srrh int code; 457075Srrh int ccs; 467075Srrh int bd; 477075Srrh int back; 487075Srrh #endif 497075Srrh 507075Srrh int level; 517075Srrh int stdi; 527075Srrh int waitf; 537075Srrh int nofeed; 547075Srrh int quiet; 557075Srrh int stop; 567075Srrh char ibuf[IBUFSZ]; 577075Srrh char xbuf[IBUFSZ]; 587075Srrh char *ibufp; 597075Srrh char *xbufp; 607075Srrh char *eibuf; 617075Srrh char *xeibuf; 627075Srrh int cbuf[NC]; 637075Srrh int *cp; 647075Srrh int nx; 657075Srrh int mflg; 667075Srrh int ch = 0; 677075Srrh int cps; 687075Srrh int ibf; 697075Srrh int ttyod; 707075Srrh struct sgttyb ttys; 717075Srrh int iflg; 727075Srrh char *enda; 737075Srrh int rargc; 747075Srrh char **argp; 757075Srrh char trtab[256]; 767075Srrh int lgf; 777075Srrh int copyf; 787075Srrh int ch0; 797075Srrh int cwidth; 807075Srrh filep ip; 817075Srrh int nlflg; 827075Srrh int *ap; 837075Srrh int donef; 847075Srrh int nflush; 857075Srrh int nchar; 867075Srrh int rchar; 877075Srrh int nfo; 887075Srrh int ifile; 897075Srrh int padc; 907075Srrh int raw; 917075Srrh int ifl[NSO]; 927075Srrh int ifi; 937075Srrh int flss; 947075Srrh int nonumb; 957075Srrh int trap; 967075Srrh int tflg; 977075Srrh int ejf; 987075Srrh int lit; 997075Srrh int gflag; 1007075Srrh int dilev; 1017075Srrh int tlss; 1027075Srrh filep offset; 1037075Srrh int em; 1047075Srrh int ds; 1057075Srrh filep woff; 1067075Srrh int app; 1077075Srrh int ndone; 1087075Srrh int lead; 1097075Srrh int ralss; 1107075Srrh filep nextb; 1117075Srrh int *argtop; 1127075Srrh int nrbits; 1137075Srrh int nform; 1147075Srrh int oldmn; 1157075Srrh int newmn; 1167075Srrh int macerr; 1177075Srrh filep apptr; 1187075Srrh int diflg; 1197075Srrh filep roff; 1207075Srrh int wbfi; 1217075Srrh int inc[NN]; 1227075Srrh int fmt[NN]; 1237075Srrh int evi; 1247075Srrh int vflag; 1257075Srrh int noscale; 1267075Srrh int po1; 1277075Srrh int nlist[NTRAP]; 1287075Srrh int mlist[NTRAP]; 1297075Srrh int evlist[EVLSZ]; 1307075Srrh int ev; 1317075Srrh int tty; 1327075Srrh int sfont; 1337075Srrh int sv; 1347075Srrh int esc; 1357075Srrh int widthp; 1367075Srrh int xfont; 1377075Srrh int setwdf; 1387075Srrh int xbitf; 1397075Srrh int over; 1407075Srrh int nhyp; 1417075Srrh int **hyp; 1427075Srrh int *olinep; 1437075Srrh int esct; 1447075Srrh int ttysave = -1; 1457075Srrh int dotT; 1467075Srrh char *unlkp; 1477075Srrh int no_out; 148