1*ee3cb8f7Sbostic /*- 2*ee3cb8f7Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*ee3cb8f7Sbostic * All rights reserved. 4*ee3cb8f7Sbostic * 5*ee3cb8f7Sbostic * %sccs.include.proprietary.c% 6*ee3cb8f7Sbostic * 7*ee3cb8f7Sbostic * @(#)e.h 4.3 (Berkeley) 04/17/91 8*ee3cb8f7Sbostic */ 921e36442Sshannon 1021e36442Sshannon #include <stdio.h> 1121e36442Sshannon 1221e36442Sshannon #define FATAL 1 1321e36442Sshannon #define ROM '1' 14bff150c6Sshannon #ifndef NEQN 1521e36442Sshannon #define ITAL '2' 1621e36442Sshannon #define BLD '3' 17bff150c6Sshannon #else NEQN 18bff150c6Sshannon #define ITAL '1' 19bff150c6Sshannon #define BLD '1' 20bff150c6Sshannon #endif NEQN 2121e36442Sshannon 22bff150c6Sshannon #ifndef NEQN 2321e36442Sshannon #define VERT(n) ((((n)+1)/3)*3) 24bff150c6Sshannon #else NEQN 25bff150c6Sshannon #define VERT(n) (20 * (n)) 26bff150c6Sshannon #endif NEQN 2721e36442Sshannon #define EFFPS(p) ((p) >= 6 ? (p) : 6) 2821e36442Sshannon 2921e36442Sshannon extern int dbg; 3021e36442Sshannon extern int ct; 3121e36442Sshannon extern int lp[]; 3221e36442Sshannon extern int used[]; /* available registers */ 3321e36442Sshannon extern int ps; /* dflt init pt size */ 3421e36442Sshannon extern int deltaps; /* default change in ps */ 3521e36442Sshannon extern int gsize; /* global size */ 3621e36442Sshannon extern int gfont; /* global font */ 3721e36442Sshannon extern int ft; /* dflt font */ 3821e36442Sshannon extern FILE *curfile; /* current input file */ 3921e36442Sshannon extern int ifile; /* input file number */ 4021e36442Sshannon extern int linect; /* line number in current file */ 4121e36442Sshannon extern int eqline; /* line where eqn started */ 4221e36442Sshannon extern int svargc; 4321e36442Sshannon extern char **svargv; 4421e36442Sshannon extern int eht[]; 4521e36442Sshannon extern int ebase[]; 4621e36442Sshannon extern int lfont[]; 4721e36442Sshannon extern int rfont[]; 4821e36442Sshannon extern int yyval; 4921e36442Sshannon extern int *yypv; 5021e36442Sshannon extern int yylval; 5121e36442Sshannon extern int eqnreg, eqnht; 5221e36442Sshannon extern int lefteq, righteq; 5321e36442Sshannon extern int lastchar; /* last character read by lex */ 5421e36442Sshannon extern int markline; /* 1 if this EQ/EN contains mark or lineup */ 5521e36442Sshannon 5621e36442Sshannon typedef struct s_tbl { 5721e36442Sshannon char *name; 5821e36442Sshannon char *defn; 5921e36442Sshannon struct s_tbl *next; 6021e36442Sshannon } tbl; 61