diff options
| author | Richard M. Stallman | 1994-09-20 03:18:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-20 03:18:33 +0000 |
| commit | e4f74c7e882531505a0da7c24a19a9a3ade20bda (patch) | |
| tree | ae6ccfa19319769897e46c40d114332803d68e59 /src | |
| parent | 88f7cc60955bc6a5fe3b6d4b7e90fb1f12241ae3 (diff) | |
| download | emacs-e4f74c7e882531505a0da7c24a19a9a3ade20bda.tar.gz emacs-e4f74c7e882531505a0da7c24a19a9a3ade20bda.zip | |
(PURESIZE_RATIO, BASE_PURESIZE): Defined.
(PURESIZE): Define it based on those.
Diffstat (limited to 'src')
| -rw-r--r-- | src/puresize.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/puresize.h b/src/puresize.h index 3aa6e75c2dc..388d954ad73 100644 --- a/src/puresize.h +++ b/src/puresize.h | |||
| @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | 17 | along with GNU Emacs; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | 19 | ||
| 20 | /* # bytes of pure Lisp code to leave space for. | 20 | /* Define PURESIZE, the number of bytes of pure Lisp code to leave space for. |
| 21 | 21 | ||
| 22 | At one point, this was defined in config.h, meaning that changing | 22 | At one point, this was defined in config.h, meaning that changing |
| 23 | PURESIZE would make Make recompile all of Emacs. But only a few | 23 | PURESIZE would make Make recompile all of Emacs. But only a few |
| @@ -27,12 +27,28 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 27 | whether we are running X windows, which tells us how much pure | 27 | whether we are running X windows, which tells us how much pure |
| 28 | storage to allocate. */ | 28 | storage to allocate. */ |
| 29 | 29 | ||
| 30 | #ifndef PURESIZE | 30 | /* First define a measure of the amount of data we have. */ |
| 31 | |||
| 32 | #ifndef BASE_PURESIZE | ||
| 31 | #ifdef MULTI_FRAME | 33 | #ifdef MULTI_FRAME |
| 32 | #define PURESIZE 255000 | 34 | #define BASE_PURESIZE 255000 |
| 33 | #else | 35 | #else |
| 34 | #define PURESIZE 208000 | 36 | #define BASE_PURESIZE 208000 |
| 37 | #endif | ||
| 35 | #endif | 38 | #endif |
| 39 | |||
| 40 | /* Increase BASE_PURESIZE by a ratio depending on the machine's word size. */ | ||
| 41 | #ifndef PURESIZE_RATIO | ||
| 42 | #if VALBITS + GCTYPEBITS + 1 > 32 | ||
| 43 | #define PURESIZE_RATIO 8/5 /* Don't surround with `()'. */ | ||
| 44 | #else | ||
| 45 | #define PURESIZE_RATIO 1 | ||
| 46 | #endif | ||
| 47 | #endif | ||
| 48 | |||
| 49 | /* This is the actual size in bytes to allocate. */ | ||
| 50 | #ifndef PURESIZE | ||
| 51 | #define PURESIZE (BASE_PURESIZE * PURESIZE_RATIO) | ||
| 36 | #endif | 52 | #endif |
| 37 | 53 | ||
| 38 | #ifdef VIRT_ADDR_VARIES | 54 | #ifdef VIRT_ADDR_VARIES |