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