1 /* Definition of PURESIZE.
2 Copyright (C) 1986, 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
3 Copyright (C) 1995, 1996 Ben Wing.
5 This file is part of XEmacs.
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
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
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. */
22 /* Synched up with: Not in FSF. */
27 /* If RAW_PURESIZE is already defined then the user overrode it at
31 /* Basic amount of purespace to use, in the absence of extra
32 things configured in. */
35 /* This computation is Barbra Streisand, BS
37 # define BASE_PURESIZE 938000
39 # define BASE_PURESIZE 563000
43 #define BASE_PURESIZE 1400000
45 /* If any particular systems need to change the base puresize, they
46 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
47 negative as well as positive.
49 Do NOT define PURESIZE or any other values. This allows the
50 other values to shift while still keeping things in sync. */
52 #ifndef SYSTEM_PURESIZE_EXTRA
53 # define SYSTEM_PURESIZE_EXTRA 0
56 /* Extra amount of purespace needed for menubars. */
60 # define DIALOG_PURESIZE_EXTRA 43000
62 # define DIALOG_PURESIZE_EXTRA 1800
65 # define DIALOG_PURESIZE_EXTRA 0
70 # define MENUBAR_PURESIZE_EXTRA 43000
72 # define MENUBAR_PURESIZE_EXTRA 36000
75 # define MENUBAR_PURESIZE_EXTRA 0
78 #ifdef HAVE_SCROLLBARS
80 # define SCROLLBAR_PURESIZE_EXTRA 4000
82 # define SCROLLBAR_PURESIZE_EXTRA 1800
85 # define SCROLLBAR_PURESIZE_EXTRA 0
90 # define TOOLBAR_PURESIZE_EXTRA 4000
92 # define TOOLBAR_PURESIZE_EXTRA 8400
95 # define TOOLBAR_PURESIZE_EXTRA 0
98 /* Extra amount of purespace needed for X11, separate from menubars
101 #ifdef HAVE_X_WINDOWS
102 # if (LONGBITS == 64)
103 # define X11_PURESIZE_EXTRA 95000
105 # define X11_PURESIZE_EXTRA 68000
108 # define X11_PURESIZE_EXTRA 0
111 /* Extra amount of purespace needed for Mule. */
115 # define MULE_PURESIZE_CANNA 5000
117 # define MULE_PURESIZE_CANNA 0
120 # define MULE_PURESIZE_WNN 5000
122 # define MULE_PURESIZE_WNN 0
124 # if (LONGBITS == 64)
125 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
127 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
130 # define MULE_PURESIZE_EXTRA 0
133 /* Extra amount of purespace needed for Tooltalk. */
136 # if (LONGBITS == 64)
137 # define TOOLTALK_PURESIZE_EXTRA 100000
139 # define TOOLTALK_PURESIZE_EXTRA 8300
142 # define TOOLTALK_PURESIZE_EXTRA 0
145 /* Extra amount of purespace needed for Sunpro builds. */
148 #define SUNPRO_PURESIZE_EXTRA 95000
150 # define SUNPRO_PURESIZE_EXTRA 0
153 #define RAW_PURESIZE ((BASE_PURESIZE) + \
154 (DIALOG_PURESIZE_EXTRA) + \
155 (MENUBAR_PURESIZE_EXTRA) + \
156 (SCROLLBAR_PURESIZE_EXTRA) + \
157 (TOOLBAR_PURESIZE_EXTRA) + \
158 (X11_PURESIZE_EXTRA) + \
159 (SYSTEM_PURESIZE_EXTRA) + \
160 (MULE_PURESIZE_EXTRA) + \
161 (TOOLTALK_PURESIZE_EXTRA) + \
162 (SUNPRO_PURESIZE_EXTRA))
164 #endif /* !RAW_PURESIZE */
166 # include <puresize-adjust.h>
167 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
168 #define get_PURESIZE() PURESIZE
170 extern EMACS_INT pure[];
172 #endif /* PURESIZE_H */