comparison src/puresize.h @ 104:cf808b4c4290 r20-1b4

Import from CVS: tag r20-1b4
author cvs
date Mon, 13 Aug 2007 09:16:51 +0200
parents a145efe76779
children 360340f9fd5f
comparison
equal deleted inserted replaced
103:30eda07fe280 104:cf808b4c4290
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 30
31 #if 0
32 /* Basic amount of purespace to use, in the absence of extra 31 /* Basic amount of purespace to use, in the absence of extra
33 things configured in. */ 32 things configured in. */
34 33
35 #if (LONGBITS == 64) 34 #if (LONGBITS == 64)
36 # define BASE_PURESIZE 938000 35 # define BASE_PURESIZE 938000
49 # define SYSTEM_PURESIZE_EXTRA 0 48 # define SYSTEM_PURESIZE_EXTRA 0
50 #endif 49 #endif
51 50
52 /* Extra amount of purespace needed for menubars. */ 51 /* Extra amount of purespace needed for menubars. */
53 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
54 #ifdef HAVE_MENUBARS 63 #ifdef HAVE_MENUBARS
55 # if (LONGBITS == 64) 64 # if (LONGBITS == 64)
56 # define MENUBAR_PURESIZE_EXTRA 43000 65 # define MENUBAR_PURESIZE_EXTRA 43000
57 # else 66 # else
58 # define MENUBAR_PURESIZE_EXTRA 35000 67 # define MENUBAR_PURESIZE_EXTRA 36000
59 # endif 68 # endif
60 #else 69 #else
61 # define MENUBAR_PURESIZE_EXTRA 0 70 # define MENUBAR_PURESIZE_EXTRA 0
62 #endif 71 #endif
63 72
64 /* Scrollbar purespace needed is only about 2K so there's no sense 73 #ifdef HAVE_SCROLLBARS
65 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
66 82
67 /* 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. */
68 95
69 #ifdef HAVE_X_WINDOWS 96 #ifdef HAVE_X_WINDOWS
70 # if (LONGBITS == 64) 97 # if (LONGBITS == 64)
71 # define X11_PURESIZE_EXTRA 95000 98 # define X11_PURESIZE_EXTRA 95000
72 # else 99 # else
102 129
103 #ifdef TOOLTALK 130 #ifdef TOOLTALK
104 # if (LONGBITS == 64) 131 # if (LONGBITS == 64)
105 # define TOOLTALK_PURESIZE_EXTRA 100000 132 # define TOOLTALK_PURESIZE_EXTRA 100000
106 # else 133 # else
107 # define TOOLTALK_PURESIZE_EXTRA 69000 134 # define TOOLTALK_PURESIZE_EXTRA 8300
108 # endif 135 # endif
109 #else 136 #else
110 # define TOOLTALK_PURESIZE_EXTRA 0 137 # define TOOLTALK_PURESIZE_EXTRA 0
111 #endif 138 #endif
112 139
124 #define SUNPRO_PURESIZE_EXTRA 95000 151 #define SUNPRO_PURESIZE_EXTRA 95000
125 #else 152 #else
126 # define SUNPRO_PURESIZE_EXTRA 0 153 # define SUNPRO_PURESIZE_EXTRA 0
127 #endif 154 #endif
128 155
129 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \ 156 #define RAW_PURESIZE ((BASE_PURESIZE) + \
130 (X11_PURESIZE_EXTRA) + \ 157 (DIALOG_PURESIZE_EXTRA) + \
131 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \ 158 (MENUBAR_PURESIZE_EXTRA) + \
132 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \ 159 (SCROLLBAR_PURESIZE_EXTRA) + \
133 (SUNPRO_PURESIZE_EXTRA)) 160 (TOOLBAR_PURESIZE_EXTRA) + \
134 #endif 161 (X11_PURESIZE_EXTRA) + \
162 (SYSTEM_PURESIZE_EXTRA) + \
163 (MULE_PURESIZE_EXTRA) + \
164 (TOOLTALK_PURESIZE_EXTRA) + \
165 (ENERGIZE_PURESIZE_EXTRA) + \
166 (SUNPRO_PURESIZE_EXTRA))
167
168 #endif /* !RAW_PURESIZE */
169
170 #include "puresize_adjust.h"
171 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
135 172
136 /* Computed by XEmacs */
137 # include <PURESIZE.h>
138
139 #endif /* !PURESIZE */
140 173
141 #endif /* PURESIZE_H */ 174 #endif /* PURESIZE_H */