1 /* 2 * 3 * A few definitions that shouldn't have to change. Used by most programs in 4 * this package. 5 * 6 */ 7 8 #define PROGRAMVERSION "3.3.2" 9 10 #define NON_FATAL 0 11 #define FATAL 1 12 #define USER_FATAL 2 13 14 #define OFF 0 15 #define ON 1 16 17 #define FALSE 0 18 #define TRUE 1 19 20 #define BYTE 8 21 #define BMASK 0377 22 23 #define POINTS 72.3 24 25 #ifndef PI 26 #define PI 3.141592654 27 #endif 28 29 #define ONEBYTE 0 30 #define UTFENCODING 1 31 32 #define READING ONEBYTE 33 #define WRITING ONEBYTE 34 35 /* 36 * 37 * DOROUND controls whether some translators include file ROUNDPAGE (path.h) 38 * after the prologue. Used to round page dimensions obtained from the clippath 39 * to know paper sizes. Enabled by setting DOROUND to TRUE (or 1). 40 * 41 */ 42 43 #define DOROUND TRUE 44 45 /* 46 * 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!! 49 * 50 */ 51 52 #define DEFAULT_RES 72 53 #define PAGEHEIGHT 11.0 * DEFAULT_RES 54 #define PAGEWIDTH 8.5 * DEFAULT_RES 55 56 /* 57 * 58 * Simple macros. 59 * 60 */ 61 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)) 65 66