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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
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
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
22
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
23 #define ORDINARY_LINK
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
24
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
25 /* XEmacs change */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
26 #define HPUX_USE_SHLIBS
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
27
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
28 /* XEmacs: */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
29 /* Don't tell the linker to link statically */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
30 #ifdef NOT_C_CODE
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
31 #define START_FILES
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
32 #define LINKER "$(CC)"
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
33 #endif /* THIS IS YMAKEFILE */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
34
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
35 /* get call to brk() when rerunning XEmacs */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
36 #define RUN_TIME_REMAP
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
37
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
38 #include "hpux11.h"
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
39
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
40 /* We must turn off -g since it forces -static. */
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
41 #ifdef __GNUC__
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
42 #undef C_DEBUG_SWITCH
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
43 #define C_DEBUG_SWITCH
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents:
diff changeset
44 #endif