add Outputable instance for OccIfaceEq
[ghc-hetmet.git] / utils / hp2ps / Defines.h
1 #ifndef DEFINES_H
2 #define DEFINES_H
3
4 /* 
5  * Things that can be altered.
6  */
7
8 #define THRESHOLD_PERCENT _thresh_ /* all values below 1% insignificant      */
9 #define DEFAULT_THRESHOLD      1.0
10 extern floatish _thresh_;
11
12 #define TWENTY            _twenty_ /* show top 20 bands, grouping excess     */
13 #define DEFAULT_TWENTY          20 /* this is default and maximum per page   */
14 extern int _twenty_;
15
16 #define LARGE_FONT              12  /* Helvetica 12pt                        */
17 #define NORMAL_FONT             10  /* Helvetica 10pt                        */
18
19 #define BORDER_HEIGHT        432.0  /* page border box 432pt (6 inches high) */
20 #define BORDER_WIDTH         648.0  /* page border box 648pt (9 inches wide) */
21 #define BORDER_SPACE           5.0  /* page border space                     */
22 #define BORDER_THICK           0.5  /* page border line thickness 0.5pt      */
23
24
25 #define TITLE_HEIGHT          20.0  /* title box is 20pt high                */
26 #define TITLE_TEXT_FONT LARGE_FONT  /* title in large font                   */
27 #define TITLE_TEXT_SPACE       6.0  /* space between title text and box      */
28
29
30 #define AXIS_THICK             0.5  /* axis thickness 0.5pt                  */
31 #define AXIS_TEXT_SPACE          6  /* space between axis legends and axis   */
32 #define AXIS_TEXT_FONT NORMAL_FONT  /* axis legends in normal font           */
33 #define AXIS_Y_TEXT_SPACE       35  /* space for y axis text                 */ 
34
35 #define KEY_BOX_WIDTH           14  /* key boxes are 14pt high               */
36
37 #define SMALL_JOB_STRING_WIDTH  35  /* small title for 35 characters or less */
38 #define BIG_JOB_STRING_WIDTH    80  /* big title for everything else         */ 
39
40 #define GRAPH_X0        (AXIS_Y_TEXT_SPACE + (2 * BORDER_SPACE)) 
41 #define GRAPH_Y0        (AXIS_TEXT_FONT + (2 * BORDER_SPACE)) 
42
43
44 /*
45  * Things that should be left well alone.
46  */
47
48
49
50 #define START_X  72     /* start  72pt (1 inch)   from left   (portrait)  */
51 #define START_Y 108     /* start 108pt (1.5 inch) from bottom (portrait)  */
52
53 #define NUMBER_LENGTH            32
54
55 #define N_CHUNK                  24 
56
57 #define VERSION                 "0.25"          /* as of 95/03/21        */
58
59 #define max(x,y) ((x) > (y) ? (x) : (y))        /* not everyone has this */
60
61 #endif /* DEFINES_H */