annotate src/lastfile.c @ 4792:95b04754ea8c

Make #'equalp more compatible with CL; add a compiler macro, test & doc it. lisp/ChangeLog addition: 2009-11-08 Aidan Kehoe <kehoea@parhasard.net> * cl-extra.el (cl-string-vector-equalp) (cl-bit-vector-vector-equalp, cl-vector-array-equalp) (cl-hash-table-contents-equalp): New functions, to implement equalp treating arrays with identical contents as equivalent, as specified by Common Lisp. (equalp): Revise this function to implement array equivalence, and the hash-table equalp behaviour specified by CL. * cl-macs.el (equalp): Add a compiler macro for this function, used when one of the arguments is constant, and as such, its type is known at compile time. man/ChangeLog addition: 2009-11-08 Aidan Kehoe <kehoea@parhasard.net> * lispref/objects.texi (Equality Predicates): Document #'equalp here, as well as #'equal and #'eq. tests/ChangeLog addition: 2009-12-31 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: Test much of the functionality of equalp; add a pointer to Paul Dietz' ANSI test suite for this function, converted to Emacs Lisp. Not including the tests themselves in XEmacs because who owns the copyright on the files is unclear and the GCL people didn't respond to my queries.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 31 Dec 2009 15:09:41 +0000
parents 3078fd1074e8
children 308d34e9f07d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 /* Mark end of data space to dump as pure, for XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 Copyright (C) 1985 Free Software Foundation, Inc.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.30. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 /* How this works:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 Fdump_emacs dumps everything up to my_edata as text space (pure).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 The files of Emacs are written so as to have no initialized
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 data that can ever need to be altered except at the first startup.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 This is so that those words can be dumped as sharable text.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 It is not possible to exercise such control over library files.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 So it is necessary to refrain from making their data areas shared.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 Therefore, this file is loaded following all the files of Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 but before library files.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 As a result, the symbol my_edata indicates the point
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 in data space between data coming from Emacs and data
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 coming from libraries.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
41 #include <config.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
42
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 char my_edata[] = "End of Emacs initialized data";
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
45 /* Ensure there is enough slack in the .bss to pad with. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
46 #ifdef HEAP_IN_DATA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
47 #define BSS_PADDING 0x1000
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
48 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
49 #define BSS_PADDING 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
50 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
51
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
52 char my_ebss [BSS_PADDING];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 428
diff changeset
53