Mercurial > hg > xemacs-beta
annotate src/console-stream-impl.h @ 5753:dbd8305e13cb
Warn about non-string non-integer ARG to #'gensym, bytecomp.el.
lisp/ChangeLog addition:
2013-08-21 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el:
* bytecomp.el (gensym):
* bytecomp.el (byte-compile-gensym): New.
Warn that gensym called in a for-effect context is unlikely to be
useful.
Warn about non-string non-integer ARGs, this is incorrect.
Am not changing the function to error with same, most code that
makes the mistake is has no problems, which is why it has survived
so long.
* window-xemacs.el (save-window-excursion/mapping):
* window.el (save-window-excursion):
Call #'gensym with a string, not a symbol.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Wed, 21 Aug 2013 19:02:59 +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_ */ |
