comparison src/puresize.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 /* Definition of PURESIZE.
2 Copyright (C) 1986, 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
3 Copyright (C) 1995, 1996 Ben Wing.
4
5 This file is part of XEmacs.
6
7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
10 later version.
11
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 /* Synched up with: Not in FSF. */
23
24 #ifndef PURESIZE_H
25 #define PURESIZE_H
26
27 /* If PURESIZE is already defined then the user overrode it at
28 configure time. */
29 #ifndef PURESIZE
30
31 /* Basic amount of purespace to use, in the absence of extra
32 things configured in. */
33
34 #if (LONGBITS == 64)
35 # define BASE_PURESIZE 905000
36 #else
37 # define BASE_PURESIZE 540000
38 #endif
39
40 /* If any particular systems need to change the base puresize, they
41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
42 negative as well as positive.
43
44 Do NOT define PURESIZE or any other values. This allows the
45 other values to shift while still keeping things in sync. */
46
47 #ifndef SYSTEM_PURESIZE_EXTRA
48 # define SYSTEM_PURESIZE_EXTRA 0
49 #endif
50
51 /* Extra amount of purespace needed for menubars. */
52
53 #ifdef HAVE_MENUBARS
54 # if (LONGBITS == 64)
55 # define MENUBAR_PURESIZE_EXTRA 43000
56 # else
57 # define MENUBAR_PURESIZE_EXTRA 35000
58 # endif
59 #else
60 # define MENUBAR_PURESIZE_EXTRA 0
61 #endif
62
63 /* Scrollbar purespace needed is only about 2K so there's no sense
64 worrying about it separately. */
65
66 /* Extra amount of purespace needed for X11, separate from menubars. */
67
68 #ifdef HAVE_X_WINDOWS
69 # if (LONGBITS == 64)
70 # define X11_PURESIZE_EXTRA 95000
71 # else
72 # define X11_PURESIZE_EXTRA 63000
73 # endif
74 #else
75 # define X11_PURESIZE_EXTRA 10000
76 #endif
77
78 /* Extra amount of purespace needed for Tooltalk. */
79
80 #ifdef TOOLTALK
81 # if (LONGBITS == 64)
82 # define TOOLTALK_PURESIZE_EXTRA 100000
83 # else
84 # define TOOLTALK_PURESIZE_EXTRA 69000
85 # endif
86 #else
87 # define TOOLTALK_PURESIZE_EXTRA 0
88 #endif
89
90 /* Extra amount of purespace needed for Energize builds. */
91
92 #ifdef ENERGIZE
93 # define ENERGIZE_PURESIZE_EXTRA 290000
94 #else
95 # define ENERGIZE_PURESIZE_EXTRA 0
96 #endif
97
98 /* Extra amount of purespace needed for Sunpro builds. */
99
100 #ifdef SUNPRO
101 # define SUNPRO_PURESIZE_EXTRA 40000
102 #else
103 # define SUNPRO_PURESIZE_EXTRA 0
104 #endif
105
106 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \
107 (X11_PURESIZE_EXTRA) + \
108 (SYSTEM_PURESIZE_EXTRA) + \
109 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
110 (SUNPRO_PURESIZE_EXTRA))
111
112 #endif /* !PURESIZE */
113
114 #endif /* PURESIZE_H */