1*779fc935Sceastha /* 2*779fc935Sceastha * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3*779fc935Sceastha * Use is subject to license terms. 4*779fc935Sceastha */ 5*779fc935Sceastha 67c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 77c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gate /* 107c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 117c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 127c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 137c478bd9Sstevel@tonic-gate */ 147c478bd9Sstevel@tonic-gate 15*779fc935Sceastha #ifndef _E_H 16*779fc935Sceastha #define _E_H 177c478bd9Sstevel@tonic-gate 18*779fc935Sceastha #pragma ident "%Z%%M% %I% %E% SMI" 19*779fc935Sceastha 20*779fc935Sceastha #ifdef __cplusplus 21*779fc935Sceastha extern "C" { 22*779fc935Sceastha #endif 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate #include <stdio.h> 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #define FATAL 1 277c478bd9Sstevel@tonic-gate #define ROM '1' 287c478bd9Sstevel@tonic-gate #ifndef NEQN 297c478bd9Sstevel@tonic-gate #define ITAL '2' 307c478bd9Sstevel@tonic-gate #define BLD '3' 31*779fc935Sceastha #else /* NEQN */ 327c478bd9Sstevel@tonic-gate #define ITAL '1' 337c478bd9Sstevel@tonic-gate #define BLD '1' 34*779fc935Sceastha #endif /* NEQN */ 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate #ifndef NEQN 377c478bd9Sstevel@tonic-gate #define VERT(n) ((((n)+1)/3)*3) 387c478bd9Sstevel@tonic-gate #define POINT 72 397c478bd9Sstevel@tonic-gate #define EM(m, ps) (int)((((float)(m)*(ps) * resolution) / POINT)) 40*779fc935Sceastha #else /* NEQN */ 417c478bd9Sstevel@tonic-gate #define VERT(n) (20 * (n)) 42*779fc935Sceastha #endif /* NEQN */ 437c478bd9Sstevel@tonic-gate #define EFFPS(p) ((p) >= 6 ? (p) : 6) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate extern int dbg; 467c478bd9Sstevel@tonic-gate extern int ct; 477c478bd9Sstevel@tonic-gate extern int lp[]; 487c478bd9Sstevel@tonic-gate extern int used[]; /* available registers */ 497c478bd9Sstevel@tonic-gate extern int ps; /* dflt init pt size */ 507c478bd9Sstevel@tonic-gate extern int resolution; /* resolution of ditroff */ 517c478bd9Sstevel@tonic-gate extern int deltaps; /* default change in ps */ 527c478bd9Sstevel@tonic-gate extern int gsize; /* global size */ 537c478bd9Sstevel@tonic-gate extern int gfont; /* global font */ 547c478bd9Sstevel@tonic-gate extern int ft; /* dflt font */ 557c478bd9Sstevel@tonic-gate extern FILE *curfile; /* current input file */ 567c478bd9Sstevel@tonic-gate extern int ifile; /* input file number */ 577c478bd9Sstevel@tonic-gate extern int linect; /* line number in current file */ 587c478bd9Sstevel@tonic-gate extern int eqline; /* line where eqn started */ 597c478bd9Sstevel@tonic-gate extern int svargc; 607c478bd9Sstevel@tonic-gate extern char **svargv; 617c478bd9Sstevel@tonic-gate extern int eht[]; 627c478bd9Sstevel@tonic-gate extern int ebase[]; 637c478bd9Sstevel@tonic-gate extern int lfont[]; 647c478bd9Sstevel@tonic-gate extern int rfont[]; 657c478bd9Sstevel@tonic-gate extern int yyval; 667c478bd9Sstevel@tonic-gate extern int *yypv; 677c478bd9Sstevel@tonic-gate extern int yylval; 687c478bd9Sstevel@tonic-gate extern int eqnreg, eqnht; 697c478bd9Sstevel@tonic-gate extern int lefteq, righteq; 707c478bd9Sstevel@tonic-gate extern int lastchar; /* last character read by lex */ 717c478bd9Sstevel@tonic-gate extern int markline; /* 1 if this EQ/EN contains mark or lineup */ 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate typedef struct s_tbl { 747c478bd9Sstevel@tonic-gate char *name; 757c478bd9Sstevel@tonic-gate char *defn; 767c478bd9Sstevel@tonic-gate struct s_tbl *next; 777c478bd9Sstevel@tonic-gate } tbl; 787c478bd9Sstevel@tonic-gate extern char *spaceval; /* use in place of normal \x (for pic) */ 79*779fc935Sceastha 80*779fc935Sceastha #ifdef __cplusplus 81*779fc935Sceastha } 82*779fc935Sceastha #endif 83*779fc935Sceastha 84*779fc935Sceastha #endif /* _E_H */ 85