1*7c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2*7c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 3*7c478bd9Sstevel@tonic-gate 4*7c478bd9Sstevel@tonic-gate 5*7c478bd9Sstevel@tonic-gate /* 6*7c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 7*7c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 8*7c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 9*7c478bd9Sstevel@tonic-gate */ 10*7c478bd9Sstevel@tonic-gate 11*7c478bd9Sstevel@tonic-gate /* 12*7c478bd9Sstevel@tonic-gate * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13*7c478bd9Sstevel@tonic-gate * All Rights Reserved. 14*7c478bd9Sstevel@tonic-gate */ 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gate #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gate #include "e.h" 19*7c478bd9Sstevel@tonic-gate 20*7c478bd9Sstevel@tonic-gate int dbg; /* debugging print if non-zero */ 21*7c478bd9Sstevel@tonic-gate int lp[80]; /* stack for things like piles and matrices */ 22*7c478bd9Sstevel@tonic-gate int ct; /* pointer to lp */ 23*7c478bd9Sstevel@tonic-gate int used[100]; /* available registers */ 24*7c478bd9Sstevel@tonic-gate int ps; /* default init point size */ 25*7c478bd9Sstevel@tonic-gate int resolution = 720; /* resolution of ditroff */ 26*7c478bd9Sstevel@tonic-gate int deltaps = 3; /* default change in ps */ 27*7c478bd9Sstevel@tonic-gate int gsize = 10; /* default initial point size */ 28*7c478bd9Sstevel@tonic-gate int gfont = ITAL; /* italic */ 29*7c478bd9Sstevel@tonic-gate int ft; /* default font */ 30*7c478bd9Sstevel@tonic-gate FILE *curfile; /* current input file */ 31*7c478bd9Sstevel@tonic-gate int ifile; 32*7c478bd9Sstevel@tonic-gate int linect; /* line number in file */ 33*7c478bd9Sstevel@tonic-gate int eqline; /* line where eqn started */ 34*7c478bd9Sstevel@tonic-gate int svargc; 35*7c478bd9Sstevel@tonic-gate char **svargv; 36*7c478bd9Sstevel@tonic-gate int eht[100]; 37*7c478bd9Sstevel@tonic-gate int ebase[100]; 38*7c478bd9Sstevel@tonic-gate int lfont[100]; 39*7c478bd9Sstevel@tonic-gate int rfont[100]; 40*7c478bd9Sstevel@tonic-gate int eqnreg; /* register where final string appears */ 41*7c478bd9Sstevel@tonic-gate int eqnht; /* inal height of equation */ 42*7c478bd9Sstevel@tonic-gate int lefteq = '\0'; /* left in-line delimiter */ 43*7c478bd9Sstevel@tonic-gate int righteq = '\0'; /* right in-line delimiter */ 44*7c478bd9Sstevel@tonic-gate int lastchar; /* last character read by lex */ 45*7c478bd9Sstevel@tonic-gate int markline = 0; /* 1 if this EQ/EN contains mark or lineup */ 46