1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
* All Rights Reserved.
*/
# ident "%Z%%M% %I% %E% SMI" /* "@(#)ucbeqn:e.h 1.1" */
#include <stdio.h>
#define FATAL 1
#define ROM '1'
#ifndef NEQN
#define ITAL '2'
#define BLD '3'
#else NEQN
#define ITAL '1'
#define BLD '1'
#endif NEQN
#ifndef NEQN
#define VERT(n) ((((n)+1)/3)*3)
#define POINT 72
#define EM(m, ps) (int)((((float)(m)*(ps) * resolution) / POINT))
#else NEQN
#define VERT(n) (20 * (n))
#endif NEQN
#define EFFPS(p) ((p) >= 6 ? (p) : 6)
extern int dbg;
extern int ct;
extern int lp[];
extern int used[]; /* available registers */
extern int ps; /* dflt init pt size */
extern int resolution; /* resolution of ditroff */
extern int deltaps; /* default change in ps */
extern int gsize; /* global size */
extern int gfont; /* global font */
extern int ft; /* dflt font */
extern FILE *curfile; /* current input file */
extern int ifile; /* input file number */
extern int linect; /* line number in current file */
extern int eqline; /* line where eqn started */
extern int svargc;
extern char **svargv;
extern int eht[];
extern int ebase[];
extern int lfont[];
extern int rfont[];
extern int yyval;
extern int *yypv;
extern int yylval;
extern int eqnreg, eqnht;
extern int lefteq, righteq;
extern int lastchar; /* last character read by lex */
extern int markline; /* 1 if this EQ/EN contains mark or lineup */
typedef struct s_tbl {
char *name;
char *defn;
struct s_tbl *next;
} tbl;
extern char *spaceval; /* use in place of normal \x (for pic) */
|