Mercurial > hg > xemacs-beta
annotate src/s/irix5-0.h @ 4686:cdabd56ce1b5
Fix various small issues with the multiple-value implementation.
lisp/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el (byte-optimize-form-code-walker):
Be careful about discarding multiple values when optimising
#'prog1 calls.
(byte-optimize-or):
Preserve any trailing nil, as this is a supported way to
explicitly discard multiple values.
(byte-optimize-cond-1):
Discard multiple values with a singleton followed by no more
clauses.
* bytecomp.el (progn):
(prog1):
(prog2):
Be careful about discarding multiple values in the byte-hunk
handler of these three forms.
* bytecomp.el (byte-compile-prog1, byte-compile-prog2):
Don't call #'values explicitly, use `(or ,(pop form) nil) instead,
since that compiles to bytecode, not a funcall.
* bytecomp.el (byte-compile-values):
With one non-const argument, byte-compile to `(or ,(second form)
nil), not an explicit #'values call.
* bytecomp.el (byte-compile-insert-header):
Be nicer in the error message to emacs versions that don't
understand our bytecode.
src/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (For, Fand):
Don't declare val as REGISTER in these functions, for some reason
it breaks the non-DEBUG union build. These functions are only
called from interpreted code, the performance implication doesn't
matter. Thank you Robert Delius Royar!
* eval.c (Fmultiple_value_list_internal):
Error on too many arguments.
tests/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el (Assert-rounding):
Remove an overly-verbose failure message here.
Correct a couple of tests which were buggy in themselves. Add
three new tests, checking the behaviour of #'or and #'and when
passed zero arguments, and a Known-Bug-Expect-Failure call
involving letf and values. (The bug predates the C-level
multiple-value implementation.)
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 06 Sep 2009 19:36:02 +0100 |
parents | abe6d1db359e |
children |
rev | line source |
---|---|
428 | 1 /* Synched up with: FSF 19.31. */ |
2 | |
3 #include "usg5-4.h" | |
4 | |
5 #define IRIX5 | |
6 | |
7 #ifdef LIBS_SYSTEM | |
8 #undef LIBS_SYSTEM | |
9 #endif | |
10 | |
11 #ifdef LIB_STANDARD | |
12 #undef LIB_STANDARD | |
13 #endif | |
14 | |
15 #ifdef SYSTEM_TYPE | |
16 #undef SYSTEM_TYPE | |
17 #endif | |
18 #define SYSTEM_TYPE "irix" | |
19 | |
20 #ifdef SETUP_SLAVE_PTY | |
21 #undef SETUP_SLAVE_PTY | |
22 #endif | |
23 | |
24 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined | |
25 on this system, so inhibit use of matherr. */ | |
26 #define NO_MATHERR | |
27 | |
28 /* Ulimit(UL_GMEMLIM) is busted... */ | |
29 #define ULIMIT_BREAK_VALUE 0x14000000 | |
30 | |
31 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ | |
32 #define PREFER_VSUSP | |
33 | |
34 /* define MAIL_USE_FLOCK if the mailer uses flock | |
35 to interlock access to /usr/spool/mail/$USER. | |
36 The alternative is that a lock file named | |
37 /usr/spool/mail/$USER.lock. */ | |
38 | |
39 #define MAIL_USE_FLOCK | |
40 | |
41 /* use K&R C */ | |
42 /* XEmacs change -- use ANSI, not K&R */ | |
43 #ifndef __GNUC__ | |
44 #define C_SWITCH_SYSTEM "-xansi" | |
45 #endif | |
46 | |
47 /* jackr@engr.sgi.com says that you can't mix different kinds of | |
48 signal-handling functions under IRIX 5.3. I'm going to assume | |
49 that that was the reason this got broken. Now that the | |
50 signal routines are fixed up, maybe this will work. --ben */ | |
51 /* Nope, it doesn't. I've tried lots of things; it must be | |
52 genuinely broken. */ | |
53 /* XEmacs addition: People on IRIX 5.2 and IRIX 5.3 systems have | |
54 reported that they can't break out of (while t) using C-g or C-G. | |
55 This does not occur on other systems, so let's assume that SIGIO | |
56 is broken on these systems. */ | |
57 #define BROKEN_SIGIO |