Mercurial > hg > xemacs-beta
annotate src/s/hpux11-shr.h @ 5253:b6a398dbb403
Fewer algorithmic complexity surprises, nicer errors, mapcarX(), maplist()
src/ChangeLog addition:
2010-09-01 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (list_merge, list_array_merge_into_list)
(list_array_merge_into_array):
Avoid algorithmic complexity surprises when checking for
circularity in these functions.
(Freduce): Fix some formatting, in passing.
(mapcarX): Drop the SOME_OR_EVERY argument to this function;
instead, take CALLER, a symbol reflecting the Lisp-visible
function that called mapcarX(). Use CALLER with
mapping_interaction_error() when sequences are modified
illegally. Don't cons with #'some, #'every, not even a little.
(Fmapconcat, FmapcarX, Fmapvector, Fmapcan, Fmapc, Fmap)
(Fmap_into, Fsome, Fevery): Call mapcarX() with its new
arguments.
(Fmapcan): Don't unnecessarily complicate the nconc call.
(maplist): Take CALLER, a symbol reflecting the Lisp-visible
function that called maplist(), rather than having separate
arguments to indicate mapl vs. mapcon.
Avoid algorithmic complexity surprises when checking for
circularity. In #'mapcon, check a given stretch of
result for well-formedness once, which was not previously the
case, despite what the comments said.
(Fmaplist, Fmapl, Fmapcon):
Call maplist() with its new arguments.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 01 Sep 2010 12:51:32 +0100 |
parents | ba07c880114a |
children | 2aa9cd456ae7 |
rev | line source |
---|---|
5008
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
1 /* For building XEmacs under HPUX 11.0 with dynamic libraries. |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
3 |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
4 This file is part of XEmacs. |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
5 |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
6 XEmacs is free software; you can redistribute it and/or modify |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
7 it under the terms of the GNU General Public License as published by |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
8 the Free Software Foundation; either version 2, or (at your option) |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
9 any later version. |
269 | 10 |
5008
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
11 XEmacs is distributed in the hope that it will be useful, |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
14 GNU General Public License for more details. |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
15 |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
17 along with XEmacs; see the file COPYING. If not, write to |
5231
ba07c880114a
Fix up FSF's Franklin Street address in many files.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
5008
diff
changeset
|
18 the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
5008
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
19 Boston, MA 02110-1301, USA. */ |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
20 |
cad59a0a3b19
Add license information from Marcus Thiessel.
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
21 /* Synched up with: FSF 19.31. */ |
269 | 22 |
23 #define ORDINARY_LINK | |
24 | |
25 /* XEmacs change */ | |
26 #define HPUX_USE_SHLIBS | |
27 | |
28 /* XEmacs: */ | |
29 /* Don't tell the linker to link statically */ | |
30 #ifdef NOT_C_CODE | |
31 #define START_FILES | |
32 #define LINKER "$(CC)" | |
33 #endif /* THIS IS YMAKEFILE */ | |
34 | |
35 /* get call to brk() when rerunning XEmacs */ | |
36 #define RUN_TIME_REMAP | |
37 | |
38 #include "hpux11.h" | |
39 | |
40 /* We must turn off -g since it forces -static. */ | |
41 #ifdef __GNUC__ | |
42 #undef C_DEBUG_SWITCH | |
43 #define C_DEBUG_SWITCH | |
44 #endif |