annotate src/puresize.h @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 3d6bfa290dbd
children c5d627a313b1
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
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 108
diff changeset
34
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 108
diff changeset
35 /* This computation is Barbra Streisand, BS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #if (LONGBITS == 64)
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
37 # define BASE_PURESIZE 938000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #else
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
39 # define BASE_PURESIZE 563000
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 171
diff changeset
40 #endif
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 108
diff changeset
41 */
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 108
diff changeset
42
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 108
diff changeset
43 #define BASE_PURESIZE 1400000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* If any particular systems need to change the base puresize, they
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 negative as well as positive.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 Do NOT define PURESIZE or any other values. This allows the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 other values to shift while still keeping things in sync. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #ifndef SYSTEM_PURESIZE_EXTRA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 # define SYSTEM_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* Extra amount of purespace needed for menubars. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
58 #ifdef HAVE_DIALOGS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
59 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
60 # define DIALOG_PURESIZE_EXTRA 43000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
61 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
62 # define DIALOG_PURESIZE_EXTRA 1800
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
63 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
64 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
65 # define DIALOG_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
66 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
67
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #ifdef HAVE_MENUBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 # define MENUBAR_PURESIZE_EXTRA 43000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 # else
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
72 # define MENUBAR_PURESIZE_EXTRA 36000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 # define MENUBAR_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
78 #ifdef HAVE_SCROLLBARS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
79 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
80 # define SCROLLBAR_PURESIZE_EXTRA 4000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
81 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
82 # define SCROLLBAR_PURESIZE_EXTRA 1800
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
83 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
84 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
85 # define SCROLLBAR_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
86 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
88 #ifdef HAVE_TOOLBARS
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
89 # if (LONGBITS == 64)
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
90 # define TOOLBAR_PURESIZE_EXTRA 4000
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
91 # else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
92 # define TOOLBAR_PURESIZE_EXTRA 8400
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
93 # endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
94 #else
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
95 # define TOOLBAR_PURESIZE_EXTRA 0
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
96 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
97
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
98 /* Extra amount of purespace needed for X11, separate from menubars
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
99 and scrollbars. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 #ifdef HAVE_X_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 # define X11_PURESIZE_EXTRA 95000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 # else
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
105 # define X11_PURESIZE_EXTRA 68000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 #else
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
108 # define X11_PURESIZE_EXTRA 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
111 /* Extra amount of purespace needed for Mule. */
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
112
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
113 #ifdef MULE
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
114 #ifdef HAVE_CANNA
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
115 # define MULE_PURESIZE_CANNA 5000
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
116 #else
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
117 # define MULE_PURESIZE_CANNA 0
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
118 #endif
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
119 #ifdef HAVE_WNN
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
120 # define MULE_PURESIZE_WNN 5000
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
121 #else
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
122 # define MULE_PURESIZE_WNN 0
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
123 #endif
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
124 # if (LONGBITS == 64)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
125 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
126 # else
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
127 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
128 # endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
129 #else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
130 # define MULE_PURESIZE_EXTRA 0
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
131 #endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
132
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 /* Extra amount of purespace needed for Tooltalk. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 #ifdef TOOLTALK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 # define TOOLTALK_PURESIZE_EXTRA 100000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 # else
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
139 # define TOOLTALK_PURESIZE_EXTRA 8300
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # define TOOLTALK_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 /* Extra amount of purespace needed for Sunpro builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 #ifdef SUNPRO
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
148 #define SUNPRO_PURESIZE_EXTRA 95000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 # define SUNPRO_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
153 #define RAW_PURESIZE ((BASE_PURESIZE) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
154 (DIALOG_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
155 (MENUBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
156 (SCROLLBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
157 (TOOLBAR_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
158 (X11_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
159 (SYSTEM_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
160 (MULE_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
161 (TOOLTALK_PURESIZE_EXTRA) + \
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
162 (SUNPRO_PURESIZE_EXTRA))
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 171
diff changeset
163
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 102
diff changeset
164 #endif /* !RAW_PURESIZE */
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
165
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 118
diff changeset
166 extern long int get_PURESIZE(void);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 #endif /* PURESIZE_H */