2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
18 #pragma ident "%Z%%M% %I% %E% SMI"
37 #define VERT(n) ((((n)+1)/3)*3)
39 #define EM(m, ps) (int)((((float)(m)*(ps) * resolution) / POINT))
41 #define VERT(n) (20 * (n))
43 #define EFFPS(p) ((p) >= 6 ? (p) : 6)
48 extern int used
[]; /* available registers */
49 extern int ps
; /* dflt init pt size */
50 extern int resolution
; /* resolution of ditroff */
51 extern int deltaps
; /* default change in ps */
52 extern int gsize
; /* global size */
53 extern int gfont
; /* global font */
54 extern int ft
; /* dflt font */
55 extern FILE *curfile
; /* current input file */
56 extern int ifile
; /* input file number */
57 extern int linect
; /* line number in current file */
58 extern int eqline
; /* line where eqn started */
68 extern int eqnreg
, eqnht
;
69 extern int lefteq
, righteq
;
70 extern int lastchar
; /* last character read by lex */
71 extern int markline
; /* 1 if this EQ/EN contains mark or lineup */
73 typedef struct s_tbl
{
78 extern char *spaceval
; /* use in place of normal \x (for pic) */