annotate src/pure.c @ 205:92f8ad5d0d3f r20-4b1

Import from CVS: tag r20-4b1
author cvs
date Mon, 13 Aug 2007 10:02:46 +0200
parents e121b013d1f0
children 2c611d1463a6
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 /* This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 /* Synched up with: FSF 19.30. Split out of alloc.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #include <config.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #include "puresize.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 #include "lisp.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
24 /* Moved from puresize.h to here so alloc.c does not get recompiled */
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
25
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 171
diff changeset
26 /* Current build process on NT does not generate a puresize-adjust.h */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 171
diff changeset
27 /* file. --marcpa */
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
28 #ifdef WINDOWSNT
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
29 # define PURESIZE_ADJUSTMENT 1000000
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
30 #else
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 171
diff changeset
31 # include <puresize-adjust.h>
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
32 #endif
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
33 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
34
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
35 long int
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
36 get_PURESIZE(void)
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
37 {
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
38 return PURESIZE;
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
39 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 0
diff changeset
40
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 Lisp_Object pure[PURESIZE / sizeof (Lisp_Object)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* Force linker to put it into data space! */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #ifdef NO_UNION_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 = {0};
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 /* Need this many braces to convince GCC not to complain */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 = {{{0}}};
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #endif