annotate 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
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
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. */
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
29 #ifndef RAW_PURESIZE
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)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 2
diff changeset
35 # define BASE_PURESIZE 944000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #else
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
37 # define BASE_PURESIZE 527000
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
53 #ifdef HAVE_DIALOGS
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
54 # if (LONGBITS == 64)
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
55 # define DIALOG_PURESIZE_EXTRA 43000
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
56 # else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
57 # define DIALOG_PURESIZE_EXTRA 1800
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
58 # endif
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
59 #else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
60 # define DIALOG_PURESIZE_EXTRA 0
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
61 #endif
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
73 #ifdef HAVE_SCROLLBARS
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
74 # if (LONGBITS == 64)
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
75 # define SCROLLBAR_PURESIZE_EXTRA 4000
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
76 # else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
77 # define SCROLLBAR_PURESIZE_EXTRA 1800
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
78 # endif
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
79 #else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
80 # define SCROLLBAR_PURESIZE_EXTRA 0
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
81 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
83 #ifdef HAVE_TOOLBARS
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
84 # if (LONGBITS == 64)
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
85 # define TOOLBAR_PURESIZE_EXTRA 4000
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
86 # else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
87 # define TOOLBAR_PURESIZE_EXTRA 8400
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
88 # endif
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
89 #else
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
90 # define TOOLBAR_PURESIZE_EXTRA 0
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
91 #endif
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
92
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
93 /* Extra amount of purespace needed for X11, separate from menubars
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
100 # define X11_PURESIZE_EXTRA 50000
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
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
109 # if (LONGBITS == 64)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
110 # define MULE_PURESIZE_EXTRA 144000
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
111 # else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
112 # define MULE_PURESIZE_EXTRA 123000
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
113 # endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
114 #else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
115 # define MULE_PURESIZE_EXTRA 0
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
116 #endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
117
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 /* Extra amount of purespace needed for Tooltalk. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 #ifdef TOOLTALK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 # define TOOLTALK_PURESIZE_EXTRA 100000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 # else
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
124 # define TOOLTALK_PURESIZE_EXTRA 8300
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 # define TOOLTALK_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 /* Extra amount of purespace needed for Energize builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 # define ENERGIZE_PURESIZE_EXTRA 290000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # define ENERGIZE_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 /* Extra amount of purespace needed for Sunpro builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 #ifdef SUNPRO
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
141 # define SUNPRO_PURESIZE_EXTRA 135000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # define SUNPRO_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
146 #define RAW_PURESIZE ((BASE_PURESIZE) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
147 (DIALOG_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
148 (MENUBAR_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
149 (SCROLLBAR_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
150 (TOOLBAR_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
151 (X11_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
152 (SYSTEM_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
153 (MULE_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
154 (TOOLTALK_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
155 (ENERGIZE_PURESIZE_EXTRA) + \
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
156 (SUNPRO_PURESIZE_EXTRA))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
158 #endif /* !RAW_PURESIZE */
26
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 20
diff changeset
159
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
160 #include "puresize_adjust.h"
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
161 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 #endif /* PURESIZE_H */