Mercurial > hg > xemacs-beta
comparison src/puresize.h @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | 05472e90ae02 |
children | b9518feda344 |
comparison
equal
deleted
inserted
replaced
69:804d1389bcd6 | 70:131b0175ea99 |
---|---|
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 RAW_PURESIZE is already defined then the user overrode it at | 27 /* If PURESIZE is already defined then the user overrode it at |
28 configure time. */ | 28 configure time. */ |
29 #ifndef RAW_PURESIZE | 29 #ifndef PURESIZE |
30 | 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 /* This computation is Barbra Streisand, BS | |
35 #if (LONGBITS == 64) | 34 #if (LONGBITS == 64) |
36 # define BASE_PURESIZE 944000 | 35 # define BASE_PURESIZE 912000 |
37 #else | 36 #else |
38 # define BASE_PURESIZE 527000 | 37 # define BASE_PURESIZE 552000 |
39 #endif | 38 #endif |
40 */ | |
41 | |
42 #define BASE_PURESIZE 1400000 | |
43 | 39 |
44 /* If any particular systems need to change the base puresize, they | 40 /* If any particular systems need to change the base puresize, they |
45 should define SYSTEM_PURESIZE_EXTRA. Note that this can be | 41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be |
46 negative as well as positive. | 42 negative as well as positive. |
47 | 43 |
52 # define SYSTEM_PURESIZE_EXTRA 0 | 48 # define SYSTEM_PURESIZE_EXTRA 0 |
53 #endif | 49 #endif |
54 | 50 |
55 /* Extra amount of purespace needed for menubars. */ | 51 /* Extra amount of purespace needed for menubars. */ |
56 | 52 |
57 #ifdef HAVE_DIALOGS | |
58 # if (LONGBITS == 64) | |
59 # define DIALOG_PURESIZE_EXTRA 43000 | |
60 # else | |
61 # define DIALOG_PURESIZE_EXTRA 1800 | |
62 # endif | |
63 #else | |
64 # define DIALOG_PURESIZE_EXTRA 0 | |
65 #endif | |
66 | |
67 #ifdef HAVE_MENUBARS | 53 #ifdef HAVE_MENUBARS |
68 # if (LONGBITS == 64) | 54 # if (LONGBITS == 64) |
69 # define MENUBAR_PURESIZE_EXTRA 43000 | 55 # define MENUBAR_PURESIZE_EXTRA 43000 |
70 # else | 56 # else |
71 # define MENUBAR_PURESIZE_EXTRA 36000 | 57 # define MENUBAR_PURESIZE_EXTRA 35000 |
72 # endif | 58 # endif |
73 #else | 59 #else |
74 # define MENUBAR_PURESIZE_EXTRA 0 | 60 # define MENUBAR_PURESIZE_EXTRA 0 |
75 #endif | 61 #endif |
76 | 62 |
77 #ifdef HAVE_SCROLLBARS | 63 /* Scrollbar purespace needed is only about 2K so there's no sense |
78 # if (LONGBITS == 64) | 64 worrying about it separately. */ |
79 # define SCROLLBAR_PURESIZE_EXTRA 4000 | |
80 # else | |
81 # define SCROLLBAR_PURESIZE_EXTRA 1800 | |
82 # endif | |
83 #else | |
84 # define SCROLLBAR_PURESIZE_EXTRA 0 | |
85 #endif | |
86 | 65 |
87 #ifdef HAVE_TOOLBARS | 66 /* Extra amount of purespace needed for X11, separate from menubars. */ |
88 # if (LONGBITS == 64) | |
89 # define TOOLBAR_PURESIZE_EXTRA 4000 | |
90 # else | |
91 # define TOOLBAR_PURESIZE_EXTRA 8400 | |
92 # endif | |
93 #else | |
94 # define TOOLBAR_PURESIZE_EXTRA 0 | |
95 #endif | |
96 | |
97 /* Extra amount of purespace needed for X11, separate from menubars | |
98 and scrollbars. */ | |
99 | 67 |
100 #ifdef HAVE_X_WINDOWS | 68 #ifdef HAVE_X_WINDOWS |
101 # if (LONGBITS == 64) | 69 # if (LONGBITS == 64) |
102 # define X11_PURESIZE_EXTRA 95000 | 70 # define X11_PURESIZE_EXTRA 95000 |
103 # else | 71 # else |
104 # define X11_PURESIZE_EXTRA 50000 | 72 # define X11_PURESIZE_EXTRA 63000 |
105 # endif | 73 # endif |
106 #else | 74 #else |
107 # define X11_PURESIZE_EXTRA 0 | 75 # define X11_PURESIZE_EXTRA 0 |
108 #endif | 76 #endif |
109 | 77 |
123 | 91 |
124 #ifdef TOOLTALK | 92 #ifdef TOOLTALK |
125 # if (LONGBITS == 64) | 93 # if (LONGBITS == 64) |
126 # define TOOLTALK_PURESIZE_EXTRA 100000 | 94 # define TOOLTALK_PURESIZE_EXTRA 100000 |
127 # else | 95 # else |
128 # define TOOLTALK_PURESIZE_EXTRA 8300 | 96 # define TOOLTALK_PURESIZE_EXTRA 69000 |
129 # endif | 97 # endif |
130 #else | 98 #else |
131 # define TOOLTALK_PURESIZE_EXTRA 0 | 99 # define TOOLTALK_PURESIZE_EXTRA 0 |
132 #endif | 100 #endif |
133 | 101 |
140 #endif | 108 #endif |
141 | 109 |
142 /* Extra amount of purespace needed for Sunpro builds. */ | 110 /* Extra amount of purespace needed for Sunpro builds. */ |
143 | 111 |
144 #ifdef SUNPRO | 112 #ifdef SUNPRO |
145 # define SUNPRO_PURESIZE_EXTRA 135000 | 113 # define SUNPRO_PURESIZE_EXTRA 40000 |
146 #else | 114 #else |
147 # define SUNPRO_PURESIZE_EXTRA 0 | 115 # define SUNPRO_PURESIZE_EXTRA 0 |
148 #endif | 116 #endif |
149 | 117 |
150 #define RAW_PURESIZE ((BASE_PURESIZE) + \ | 118 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \ |
151 (DIALOG_PURESIZE_EXTRA) + \ | 119 (X11_PURESIZE_EXTRA) + \ |
152 (MENUBAR_PURESIZE_EXTRA) + \ | 120 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \ |
153 (SCROLLBAR_PURESIZE_EXTRA) + \ | 121 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \ |
154 (TOOLBAR_PURESIZE_EXTRA) + \ | 122 (SUNPRO_PURESIZE_EXTRA)) |
155 (X11_PURESIZE_EXTRA) + \ | |
156 (SYSTEM_PURESIZE_EXTRA) + \ | |
157 (MULE_PURESIZE_EXTRA) + \ | |
158 (TOOLTALK_PURESIZE_EXTRA) + \ | |
159 (ENERGIZE_PURESIZE_EXTRA) + \ | |
160 (SUNPRO_PURESIZE_EXTRA)) | |
161 | 123 |
162 #endif /* !RAW_PURESIZE */ | 124 #endif /* !PURESIZE */ |
163 | |
164 #include <puresize_adjust.h> | |
165 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT)) | |
166 | 125 |
167 #endif /* PURESIZE_H */ | 126 #endif /* PURESIZE_H */ |