annotate src/puresize.h @ 4:b82b59fe008d r19-15b3

Import from CVS: tag r19-15b3
author cvs
date Mon, 13 Aug 2007 08:46:56 +0200
parents ac2d302a0011
children 0293115a14e9
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 /* If PURESIZE is already defined then the user overrode it at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 configure time. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #ifndef PURESIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
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
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 2
diff changeset
37 # define BASE_PURESIZE 584000
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 # define MENUBAR_PURESIZE_EXTRA 35000
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 /* Scrollbar purespace needed is only about 2K so there's no sense
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 worrying about it separately. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 /* Extra amount of purespace needed for X11, separate from menubars. */
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 # define X11_PURESIZE_EXTRA 63000
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 X11_PURESIZE_EXTRA 10000
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 /* Extra amount of purespace needed for Tooltalk. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #ifdef TOOLTALK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 # if (LONGBITS == 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 # define TOOLTALK_PURESIZE_EXTRA 100000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 # define TOOLTALK_PURESIZE_EXTRA 69000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 # define TOOLTALK_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* Extra amount of purespace needed for Energize builds. */
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 ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 # define ENERGIZE_PURESIZE_EXTRA 290000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 # define ENERGIZE_PURESIZE_EXTRA 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 /* Extra amount of purespace needed for Sunpro builds. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #ifdef SUNPRO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 # define SUNPRO_PURESIZE_EXTRA 40000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 # define SUNPRO_PURESIZE_EXTRA 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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (X11_PURESIZE_EXTRA) + \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (SYSTEM_PURESIZE_EXTRA) + \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (SUNPRO_PURESIZE_EXTRA))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #endif /* !PURESIZE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 #endif /* PURESIZE_H */