Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 * A few definitions that shouldn't have to change. Used by most programs in
3
 * this package.
4
 */
5
 
6
#define PROGRAMVERSION	"3.3.2"
7
 
8
#define NON_FATAL	0
9
#define FATAL		1
10
#define USER_FATAL	2
11
 
12
#define OFF		0
13
#define ON		1
14
 
15
#define FALSE		0
16
#define TRUE		1
17
 
18
#define BYTE		8
19
#define BMASK		0377
20
 
21
#define POINTS		72.3
22
 
23
#ifndef PI
24
#define PI		3.141592654
25
#endif
26
 
27
#define ONEBYTE		0
28
#define UTFENCODING	1
29
 
30
#define READING		ONEBYTE
31
#define WRITING		ONEBYTE
32
 
33
/*
34
 *
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).
38
 *
39
 */
40
 
41
#define DOROUND	TRUE
42
 
43
/*
44
 *
45
 * Default resolution and the height and width of a page (in case we need to get
46
 * to upper left corner) - only used in BoundingBox calculations!!
47
 *
48
 */
49
 
50
#define DEFAULT_RES	72
51
#define PAGEHEIGHT	11.0 * DEFAULT_RES
52
#define PAGEWIDTH	8.5 * DEFAULT_RES
53
 
54
/*
55
 *
56
 * Simple macros.
57
 *
58
 */
59
 
60
#define ABS(A)		((A) >= 0 ? (A) : -(A))
61
#define MIN(A, B)	((A) < (B) ? (A) : (B))
62
#define MAX(A, B)	((A) > (B) ? (A) : (B))