annotate src/puresize.h @ 72:b9518feda344 r20-0b31

Import from CVS: tag r20-0b31
author cvs
date Mon, 13 Aug 2007 09:03:46 +0200
parents 131b0175ea99
children 6a378aca36af
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
27 /* If 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. */
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
29 #ifndef 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)
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
35 # define BASE_PURESIZE 922000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #else
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
37 # define BASE_PURESIZE 562000
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #ifdef HAVE_MENUBARS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 # define MENUBAR_PURESIZE_EXTRA 43000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 # else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
57 # define MENUBAR_PURESIZE_EXTRA 35000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 # define MENUBAR_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
63 /* Scrollbar purespace needed is only about 2K so there's no sense
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
64 worrying about it separately. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
66 /* Extra amount of purespace needed for X11, separate from menubars. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #ifdef HAVE_X_WINDOWS
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 X11_PURESIZE_EXTRA 95000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 # else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
72 # define X11_PURESIZE_EXTRA 63000
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
75 # define X11_PURESIZE_EXTRA 0
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
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
78 /* Extra amount of purespace needed for Mule. */
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
79
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
80 #ifdef MULE
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
81 # if (LONGBITS == 64)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
82 # define MULE_PURESIZE_EXTRA 144000
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
83 # else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
84 # define MULE_PURESIZE_EXTRA 123000
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
85 # endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
86 #else
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
87 # define MULE_PURESIZE_EXTRA 0
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
88 #endif
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
89
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* Extra amount of purespace needed for Tooltalk. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #ifdef TOOLTALK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 # define TOOLTALK_PURESIZE_EXTRA 100000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 # else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
96 # define TOOLTALK_PURESIZE_EXTRA 69000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 # define TOOLTALK_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 /* Extra amount of purespace needed for Energize builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 # define ENERGIZE_PURESIZE_EXTRA 290000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 # define ENERGIZE_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 /* Extra amount of purespace needed for Sunpro builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #ifdef SUNPRO
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
113 # define SUNPRO_PURESIZE_EXTRA 40000
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 # define SUNPRO_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
118 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
119 (X11_PURESIZE_EXTRA) + \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
120 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
121 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
122 (SUNPRO_PURESIZE_EXTRA))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 54
diff changeset
124 #endif /* !PURESIZE */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 #endif /* PURESIZE_H */