comparison src/console-stream.c @ 578:190b164ddcac

[xemacs-hg @ 2001-05-25 11:26:50 by ben] device-msw.c, eldap.c, emodules.c, hpplay.c, process-unix.c, sound.h, tooltalk.c, win32.c: Revert Martin's attempted compile-warnings fix. It does fix the warnings, but not the right way. We are trying to eliminate the raw use of `char' and `unsigned char' absolutely everywhere. There is never an occasion to reintroduce these. buffer.h: Instead, we fix these macros so they don't care about the type of their lvalues. We already do this for the non-C-string equivalents of these, and it's correct because it should be OK to pass in an SBufbyte *, for example. In any case, we do not need any type-correctness checking here -- errors will be caught for sure as soon as we remove the -Wno-sign-compare switch. mule-charset.c: Use invalid_argument, not generic signal_error (Qerror, ). alloc.c, chartab.c, console-gtk.c, console-msw.c, console-stream.c, console-stream.h, console-tty.c, console-tty.h, console-x.c, console.c, console.h, device-x.c, device.c, elhash.c, eval.c, faces.c, faces.h, fns.c, glyphs.c, glyphs.h, gui.c, gui.h, lisp.h, lread.c, nt.c, objects-gtk.c, objects-gtk.h, objects-msw.c, objects-tty.c, objects-x.c, objects.c, process-unix.c, rangetab.c, search.c, specifier.c, toolbar.c, window.c, window.h: Rename Error_behavior to Error_Behavior, to be consistent with general naming practices (Lisp_Object, Char_Binary, etc.).
author ben
date Fri, 25 May 2001 11:27:01 +0000
parents 183866b06e0b
children 943eaba38521
comparison
equal deleted inserted replaced
577:910449c92002 578:190b164ddcac
116 } 116 }
117 } 117 }
118 118
119 Lisp_Object 119 Lisp_Object
120 stream_semi_canonicalize_console_connection (Lisp_Object connection, 120 stream_semi_canonicalize_console_connection (Lisp_Object connection,
121 Error_behavior errb) 121 Error_Behavior errb)
122 { 122 {
123 return NILP (connection) ? Vstdio_str : connection; 123 return NILP (connection) ? Vstdio_str : connection;
124 } 124 }
125 125
126 Lisp_Object 126 Lisp_Object
127 stream_canonicalize_console_connection (Lisp_Object connection, 127 stream_canonicalize_console_connection (Lisp_Object connection,
128 Error_behavior errb) 128 Error_Behavior errb)
129 { 129 {
130 if (NILP (connection) || internal_equal (connection, Vstdio_str, 0)) 130 if (NILP (connection) || internal_equal (connection, Vstdio_str, 0))
131 return Vstdio_str; 131 return Vstdio_str;
132 132
133 if (!ERRB_EQ (errb, ERROR_ME)) 133 if (!ERRB_EQ (errb, ERROR_ME))
141 return Ffile_truename (connection, Qnil); 141 return Ffile_truename (connection, Qnil);
142 } 142 }
143 143
144 Lisp_Object 144 Lisp_Object
145 stream_semi_canonicalize_device_connection (Lisp_Object connection, 145 stream_semi_canonicalize_device_connection (Lisp_Object connection,
146 Error_behavior errb) 146 Error_Behavior errb)
147 { 147 {
148 return stream_semi_canonicalize_console_connection (connection, errb); 148 return stream_semi_canonicalize_console_connection (connection, errb);
149 } 149 }
150 150
151 Lisp_Object 151 Lisp_Object
152 stream_canonicalize_device_connection (Lisp_Object connection, 152 stream_canonicalize_device_connection (Lisp_Object connection,
153 Error_behavior errb) 153 Error_Behavior errb)
154 { 154 {
155 return stream_canonicalize_console_connection (connection, errb); 155 return stream_canonicalize_console_connection (connection, errb);
156 } 156 }
157 157
158 158