Mercurial > hg > xemacs-beta
annotate src/console-stream-impl.h @ 5489:159face738c3
Never pass a leading + to mpz_set_string, parse_integer ().
src/ChangeLog addition:
2011-05-01 Aidan Kehoe <kehoea@parhasard.net>
* lread.c (parse_integer):
GMP's mpz_set_string deals with a leading plus badly, make sure it
never sees one coming from this function.
tests/ChangeLog addition:
2011-05-01 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-reader-tests.el:
If the bignum feature is available, check that a leading plus sign
is treated correctly when reading bignum integers.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 01 May 2011 13:51:33 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
872 | 1 /* Define stream specific console, device, and frame object for XEmacs. |
2 Copyright (C) 1995 Board of Trustees, University of Illinois. | |
3 Copyright (C) 1995 Free Software Foundation, Inc. | |
1204 | 4 Copyright (C) 2002 Ben Wing. |
872 | 5 |
6 This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
8 XEmacs is free software: you can redistribute it and/or modify it |
872 | 9 under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
10 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
11 option) any later version. |
872 | 12 |
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
872 | 20 |
21 /* Synched up with: Not in FSF. */ | |
22 | |
23 /* Written by Ben Wing. */ | |
24 | |
25 #ifndef INCLUDED_console_stream_impl_h_ | |
26 #define INCLUDED_console_stream_impl_h_ | |
27 | |
28 #include "console-impl.h" | |
29 #include "console-stream.h" | |
30 | |
31 DECLARE_CONSOLE_TYPE (stream); | |
32 | |
33 struct stream_console | |
34 { | |
3092 | 35 #ifdef NEW_GC |
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5120
diff
changeset
|
36 NORMAL_LISP_OBJECT_HEADER header; |
3092 | 37 #endif /* NEW_GC */ |
872 | 38 FILE *in; |
39 FILE *out; | |
40 FILE *err; | |
41 int needs_newline; | |
1204 | 42 Lisp_Object instream; |
872 | 43 }; |
44 | |
3092 | 45 #ifdef NEW_GC |
46 typedef struct stream_console Lisp_Stream_Console; | |
47 | |
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
3092
diff
changeset
|
48 DECLARE_LISP_OBJECT (stream_console, Lisp_Stream_Console); |
3092 | 49 |
50 #define XSTREAM_CONSOLE(x) \ | |
51 XRECORD (x, stream_console, Lisp_Stream_Console) | |
52 #define wrap_stream_console(p) wrap_record (p, stream_console) | |
53 #define STREAM_CONSOLE_P(x) RECORDP (x, stream_console) | |
54 #endif /* NEW_GC */ | |
55 | |
872 | 56 #define CONSOLE_STREAM_DATA(con) CONSOLE_TYPE_DATA (con, stream) |
57 | |
58 #endif /* INCLUDED_console_stream_impl_h_ */ |