annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Definition of PURESIZE.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1986, 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #ifndef PURESIZE_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 #define PURESIZE_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
27 /* If RAW_PURESIZE is already defined then the user overrode it at
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 configure time. */
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
29 #ifndef RAW_PURESIZE
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
30
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 /* Basic amount of purespace to use, in the absence of extra
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 things configured in. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #if (LONGBITS == 64)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
35 # define BASE_PURESIZE 938000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #else
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
37 # define BASE_PURESIZE 563000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /* If any particular systems need to change the base puresize, they
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 negative as well as positive.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 Do NOT define PURESIZE or any other values. This allows the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 other values to shift while still keeping things in sync. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #ifndef SYSTEM_PURESIZE_EXTRA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 # define SYSTEM_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 /* Extra amount of purespace needed for menubars. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
53 #ifdef HAVE_DIALOGS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
54 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
55 # define DIALOG_PURESIZE_EXTRA 43000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
56 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
57 # define DIALOG_PURESIZE_EXTRA 1800
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
58 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
59 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
60 # define DIALOG_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
61 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
62
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 #ifdef HAVE_MENUBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 # define MENUBAR_PURESIZE_EXTRA 43000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 # else
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
67 # define MENUBAR_PURESIZE_EXTRA 36000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 # define MENUBAR_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
73 #ifdef HAVE_SCROLLBARS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
74 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
75 # define SCROLLBAR_PURESIZE_EXTRA 4000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
76 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
77 # define SCROLLBAR_PURESIZE_EXTRA 1800
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
78 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
79 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
80 # define SCROLLBAR_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
81 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
83 #ifdef HAVE_TOOLBARS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
84 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
85 # define TOOLBAR_PURESIZE_EXTRA 4000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
86 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
87 # define TOOLBAR_PURESIZE_EXTRA 8400
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
88 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
89 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
90 # define TOOLBAR_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
91 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
92
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
93 /* Extra amount of purespace needed for X11, separate from menubars
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
94 and scrollbars. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #ifdef HAVE_X_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 # define X11_PURESIZE_EXTRA 95000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 # else
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
100 # define X11_PURESIZE_EXTRA 68000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 #else
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
103 # define X11_PURESIZE_EXTRA 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
106 /* Extra amount of purespace needed for Mule. */
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
107
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
108 #ifdef MULE
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
109 #ifdef HAVE_CANNA
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
110 # define MULE_PURESIZE_CANNA 5000
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
111 #else
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
112 # define MULE_PURESIZE_CANNA 0
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
113 #endif
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
114 #ifdef HAVE_WNN
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
115 # define MULE_PURESIZE_WNN 5000
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
116 #else
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
117 # define MULE_PURESIZE_WNN 0
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
118 #endif
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
119 # if (LONGBITS == 64)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
120 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
121 # else
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
122 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
123 # endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
124 #else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
125 # define MULE_PURESIZE_EXTRA 0
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
126 #endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
127
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 /* Extra amount of purespace needed for Tooltalk. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 #ifdef TOOLTALK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 # define TOOLTALK_PURESIZE_EXTRA 100000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 # else
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
134 # define TOOLTALK_PURESIZE_EXTRA 8300
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 # define TOOLTALK_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 /* Extra amount of purespace needed for Energize builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # define ENERGIZE_PURESIZE_EXTRA 290000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 # define ENERGIZE_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 /* Extra amount of purespace needed for Sunpro builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 #ifdef SUNPRO
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
151 #define SUNPRO_PURESIZE_EXTRA 95000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 # define SUNPRO_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
156 #define RAW_PURESIZE ((BASE_PURESIZE) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
157 (DIALOG_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
158 (MENUBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
159 (SCROLLBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
160 (TOOLBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
161 (X11_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
162 (SYSTEM_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
163 (MULE_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
164 (TOOLTALK_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
165 (ENERGIZE_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
166 (SUNPRO_PURESIZE_EXTRA))
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
167
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
168 #endif /* !RAW_PURESIZE */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
169
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
170 #include "puresize_adjust.h"
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
171 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
172
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 #endif /* PURESIZE_H */