comparison src/puresize.h @ 28:1917ad0d78d7 r19-15b97

Import from CVS: tag r19-15b97
author cvs
date Mon, 13 Aug 2007 08:51:55 +0200
parents 441bb1e64a06
children ec9a17fef872
comparison
equal deleted inserted replaced
27:0a3286277d9b 28:1917ad0d78d7
22 /* Synched up with: Not in FSF. */ 22 /* Synched up with: Not in FSF. */
23 23
24 #ifndef PURESIZE_H 24 #ifndef PURESIZE_H
25 #define PURESIZE_H 25 #define PURESIZE_H
26 26
27 /* If PURESIZE is already defined then the user overrode it at 27 /* If RAW_PURESIZE is already defined then the user overrode it at
28 configure time. */ 28 configure time. */
29 #ifndef PURESIZE 29 #ifndef RAW_PURESIZE
30 #if 0 30
31 /* Basic amount of purespace to use, in the absence of extra 31 /* Basic amount of purespace to use, in the absence of extra
32 things configured in. */ 32 things configured in. */
33 33
34 #if (LONGBITS == 64) 34 #if (LONGBITS == 64)
35 # define BASE_PURESIZE 944000 35 # define BASE_PURESIZE 944000
36 #else 36 #else
37 # define BASE_PURESIZE 584000 37 # define BASE_PURESIZE 527000
38 #endif 38 #endif
39 39
40 /* If any particular systems need to change the base puresize, they 40 /* If any particular systems need to change the base puresize, they
41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be 41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
42 negative as well as positive. 42 negative as well as positive.
48 # define SYSTEM_PURESIZE_EXTRA 0 48 # define SYSTEM_PURESIZE_EXTRA 0
49 #endif 49 #endif
50 50
51 /* Extra amount of purespace needed for menubars. */ 51 /* Extra amount of purespace needed for menubars. */
52 52
53 #ifdef HAVE_DIALOGS
54 # if (LONGBITS == 64)
55 # define DIALOG_PURESIZE_EXTRA 43000
56 # else
57 # define DIALOG_PURESIZE_EXTRA 1800
58 # endif
59 #else
60 # define DIALOG_PURESIZE_EXTRA 0
61 #endif
62
53 #ifdef HAVE_MENUBARS 63 #ifdef HAVE_MENUBARS
54 # if (LONGBITS == 64) 64 # if (LONGBITS == 64)
55 # define MENUBAR_PURESIZE_EXTRA 43000 65 # define MENUBAR_PURESIZE_EXTRA 43000
56 # else 66 # else
57 # define MENUBAR_PURESIZE_EXTRA 35000 67 # define MENUBAR_PURESIZE_EXTRA 36000
58 # endif 68 # endif
59 #else 69 #else
60 # define MENUBAR_PURESIZE_EXTRA 0 70 # define MENUBAR_PURESIZE_EXTRA 0
61 #endif 71 #endif
62 72
63 /* Scrollbar purespace needed is only about 2K so there's no sense 73 #ifdef HAVE_SCROLLBARS
64 worrying about it separately. */ 74 # if (LONGBITS == 64)
75 # define SCROLLBAR_PURESIZE_EXTRA 4000
76 # else
77 # define SCROLLBAR_PURESIZE_EXTRA 1800
78 # endif
79 #else
80 # define SCROLLBAR_PURESIZE_EXTRA 0
81 #endif
65 82
66 /* Extra amount of purespace needed for X11, separate from menubars. */ 83 #ifdef HAVE_TOOLBARS
84 # if (LONGBITS == 64)
85 # define TOOLBAR_PURESIZE_EXTRA 4000
86 # else
87 # define TOOLBAR_PURESIZE_EXTRA 8400
88 # endif
89 #else
90 # define TOOLBAR_PURESIZE_EXTRA 0
91 #endif
92
93 /* Extra amount of purespace needed for X11, separate from menubars
94 and scrollbars. */
67 95
68 #ifdef HAVE_X_WINDOWS 96 #ifdef HAVE_X_WINDOWS
69 # if (LONGBITS == 64) 97 # if (LONGBITS == 64)
70 # define X11_PURESIZE_EXTRA 95000 98 # define X11_PURESIZE_EXTRA 95000
71 # else 99 # else
72 # define X11_PURESIZE_EXTRA 63000 100 # define X11_PURESIZE_EXTRA 50000
73 # endif 101 # endif
74 #else 102 #else
75 # define X11_PURESIZE_EXTRA 10000 103 # define X11_PURESIZE_EXTRA 0
76 #endif 104 #endif
77 105
78 /* Extra amount of purespace needed for Mule. */ 106 /* Extra amount of purespace needed for Mule. */
79 107
80 #ifdef MULE 108 #ifdef MULE
91 119
92 #ifdef TOOLTALK 120 #ifdef TOOLTALK
93 # if (LONGBITS == 64) 121 # if (LONGBITS == 64)
94 # define TOOLTALK_PURESIZE_EXTRA 100000 122 # define TOOLTALK_PURESIZE_EXTRA 100000
95 # else 123 # else
96 # define TOOLTALK_PURESIZE_EXTRA 69000 124 # define TOOLTALK_PURESIZE_EXTRA 8300
97 # endif 125 # endif
98 #else 126 #else
99 # define TOOLTALK_PURESIZE_EXTRA 0 127 # define TOOLTALK_PURESIZE_EXTRA 0
100 #endif 128 #endif
101 129
113 # define SUNPRO_PURESIZE_EXTRA 135000 141 # define SUNPRO_PURESIZE_EXTRA 135000
114 #else 142 #else
115 # define SUNPRO_PURESIZE_EXTRA 0 143 # define SUNPRO_PURESIZE_EXTRA 0
116 #endif 144 #endif
117 145
118 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \ 146 #define RAW_PURESIZE ((BASE_PURESIZE) + \
119 (X11_PURESIZE_EXTRA) + \ 147 (DIALOG_PURESIZE_EXTRA) + \
120 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \ 148 (MENUBAR_PURESIZE_EXTRA) + \
121 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \ 149 (SCROLLBAR_PURESIZE_EXTRA) + \
122 (SUNPRO_PURESIZE_EXTRA)) 150 (TOOLBAR_PURESIZE_EXTRA) + \
151 (X11_PURESIZE_EXTRA) + \
152 (SYSTEM_PURESIZE_EXTRA) + \
153 (MULE_PURESIZE_EXTRA) + \
154 (TOOLTALK_PURESIZE_EXTRA) + \
155 (ENERGIZE_PURESIZE_EXTRA) + \
156 (SUNPRO_PURESIZE_EXTRA))
123 157
124 #endif 158 #endif /* !RAW_PURESIZE */
125 159
126 # include "PURESIZE.h" 160 #include "puresize_adjust.h"
127 161 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
128 #endif /* !PURESIZE */
129 162
130 #endif /* PURESIZE_H */ 163 #endif /* PURESIZE_H */