mkdev: remove devutf/C*
[troff.git] / tr2ps / gen.h
blob907964944055f444ceaa24930972ce3bd3f147c8
1 /*
3 * A few definitions that shouldn't have to change. Used by most programs in
4 * this package.
6 */
8 #define NON_FATAL 0
9 #define FATAL 1
10 #define USER_FATAL 2
12 #define OFF 0
13 #define ON 1
15 #define FALSE 0
16 #define TRUE 1
18 #define BYTE 8
19 #define BMASK 0377
21 #define POINTS 72.3
23 #ifndef PI
24 #define PI 3.141592654
25 #endif
27 #define ONEBYTE 0
28 #define UTFENCODING 1
30 #define READING ONEBYTE
31 #define WRITING ONEBYTE
35 * DOROUND controls whether some translators include file ROUNDPAGE (path.h)
36 * after the prologue. Used to round page dimensions obtained from the clippath
37 * to know paper sizes. Enabled by setting DOROUND to TRUE (or 1).
41 #ifndef DOROUND
42 #define DOROUND TRUE
43 #endif
47 * Default resolution and the height and width of a page (in case we need to get
48 * to upper left corner) - only used in BoundingBox calculations!!
52 #define DEFAULT_RES 72
53 #define PAGEHEIGHT 11.0 * DEFAULT_RES
54 #define PAGEWIDTH 8.5 * DEFAULT_RES
58 * Simple macros.
62 #define ABS(A) ((A) >= 0 ? (A) : -(A))
63 #define MIN(A, B) ((A) < (B) ? (A) : (B))
64 #define MAX(A, B) ((A) > (B) ? (A) : (B))