comparison src/console-stream.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents a8d8f419b459
children 91671c428d8b
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
56 const struct sized_memory_description stream_console_data_description = { 56 const struct sized_memory_description stream_console_data_description = {
57 sizeof (struct stream_console), stream_console_data_description_1 57 sizeof (struct stream_console), stream_console_data_description_1
58 }; 58 };
59 59
60 static void 60 static void
61 stream_init_console (struct console *con, Lisp_Object params) 61 stream_init_console (struct console *con, Lisp_Object UNUSED (params))
62 { 62 {
63 Lisp_Object tty = CONSOLE_CONNECTION (con); 63 Lisp_Object tty = CONSOLE_CONNECTION (con);
64 struct stream_console *stream_con; 64 struct stream_console *stream_con;
65 65
66 if (CONSOLE_STREAM_DATA (con) == NULL) 66 if (CONSOLE_STREAM_DATA (con) == NULL)
88 signal_error (Qio_error, "Unable to open tty", tty); 88 signal_error (Qio_error, "Unable to open tty", tty);
89 } 89 }
90 } 90 }
91 91
92 static void 92 static void
93 stream_init_device (struct device *d, Lisp_Object params) 93 stream_init_device (struct device *d, Lisp_Object UNUSED (params))
94 { 94 {
95 struct console *con = XCONSOLE (DEVICE_CONSOLE (d)); 95 struct console *con = XCONSOLE (DEVICE_CONSOLE (d));
96 96
97 DEVICE_INFD (d) = fileno (CONSOLE_STREAM_DATA (con)->in); 97 DEVICE_INFD (d) = fileno (CONSOLE_STREAM_DATA (con)->in);
98 DEVICE_OUTFD (d) = fileno (CONSOLE_STREAM_DATA (con)->out); 98 DEVICE_OUTFD (d) = fileno (CONSOLE_STREAM_DATA (con)->out);
99 init_baud_rate (d); 99 init_baud_rate (d);
100 init_one_device (d); 100 init_one_device (d);
101 } 101 }
102 102
103 static int 103 static int
104 stream_initially_selected_for_input (struct console *con) 104 stream_initially_selected_for_input (struct console *UNUSED (con))
105 { 105 {
106 return noninteractive && initialized; 106 return noninteractive && initialized;
107 } 107 }
108 108
109 extern int stdout_needs_newline; 109 extern int stdout_needs_newline;
128 } 128 }
129 } 129 }
130 130
131 Lisp_Object 131 Lisp_Object
132 stream_semi_canonicalize_console_connection (Lisp_Object connection, 132 stream_semi_canonicalize_console_connection (Lisp_Object connection,
133 Error_Behavior errb) 133 Error_Behavior UNUSED (errb))
134 { 134 {
135 return NILP (connection) ? Vstdio_str : connection; 135 return NILP (connection) ? Vstdio_str : connection;
136 } 136 }
137 137
138 Lisp_Object 138 Lisp_Object
167 return stream_canonicalize_console_connection (connection, errb); 167 return stream_canonicalize_console_connection (connection, errb);
168 } 168 }
169 169
170 170
171 static void 171 static void
172 stream_init_frame_1 (struct frame *f, Lisp_Object props, 172 stream_init_frame_1 (struct frame *f, Lisp_Object UNUSED (props),
173 int frame_name_is_defaulted) 173 int frame_name_is_defaulted)
174 { 174 {
175 #if 0 175 #if 0
176 struct device *d = XDEVICE (FRAME_DEVICE (f)); 176 struct device *d = XDEVICE (FRAME_DEVICE (f));
177 if (!NILP (DEVICE_FRAME_LIST (d))) 177 if (!NILP (DEVICE_FRAME_LIST (d)))
184 f->visible = 0; /* so redisplay doesn't try to do anything */ 184 f->visible = 0; /* so redisplay doesn't try to do anything */
185 } 185 }
186 186
187 187
188 static int 188 static int
189 stream_text_width (struct frame *f, struct face_cachel *cachel, 189 stream_text_width (struct frame *UNUSED (f),
190 const Ichar *str, Charcount len) 190 struct face_cachel *UNUSED (cachel),
191 const Ichar *UNUSED (str), Charcount len)
191 { 192 {
192 return len; 193 return len;
193 } 194 }
194 195
195 static int 196 static int
196 stream_left_margin_width (struct window *w) 197 stream_left_margin_width (struct window *UNUSED (w))
197 { 198 {
198 return 0; 199 return 0;
199 } 200 }
200 201
201 static int 202 static int
202 stream_right_margin_width (struct window *w) 203 stream_right_margin_width (struct window *UNUSED (w))
203 { 204 {
204 return 0; 205 return 0;
205 } 206 }
206 207
207 static int 208 static int
222 we try to display a stream device. This might fix some crashes I've 223 we try to display a stream device. This might fix some crashes I've
223 been getting in pdump -- the only difference between crash and non-crash 224 been getting in pdump -- the only difference between crash and non-crash
224 is a few changes to the redisplay critical-section handling. */ 225 is a few changes to the redisplay critical-section handling. */
225 226
226 static void 227 static void
227 stream_window_output_begin (struct window *w) 228 stream_window_output_begin (struct window *UNUSED (w))
228 { 229 {
229 abort (); 230 abort ();
230 } 231 }
231 232
232 static void 233 static void
233 stream_window_output_end (struct window *w) 234 stream_window_output_end (struct window *UNUSED (w))
234 { 235 {
235 abort (); 236 abort ();
236 } 237 }
237 238
238 static void 239 static void
239 stream_frame_output_begin (struct frame *f) 240 stream_frame_output_begin (struct frame *UNUSED (f))
240 { 241 {
241 abort (); 242 abort ();
242 } 243 }
243 244
244 static void 245 static void
245 stream_frame_output_end (struct frame *f) 246 stream_frame_output_end (struct frame *UNUSED (f))
246 { 247 {
247 abort (); 248 abort ();
248 } 249 }
249 250
250 static void 251 static void
251 stream_output_display_block (struct window *w, struct display_line *dl, 252 stream_output_display_block (struct window *UNUSED (w),
252 int block, int start, int end, 253 struct display_line *UNUSED (dl),
253 int start_pixpos, int cursor_start, 254 int UNUSED (block), int UNUSED (start),
254 int cursor_width, int cursor_height) 255 int UNUSED (end), int UNUSED (start_pixpos),
255 { 256 int UNUSED (cursor_start),
256 abort (); 257 int UNUSED (cursor_width),
257 } 258 int UNUSED (cursor_height))
258 259 {
259 static void 260 abort ();
260 stream_clear_region (Lisp_Object window, struct device* d, struct frame * f, 261 }
261 face_index findex, int x, int y, 262
262 int width, int height, Lisp_Object fcolor, 263 static void
263 Lisp_Object bcolor, Lisp_Object background_pixmap) 264 stream_clear_region (Lisp_Object UNUSED (window), struct device* UNUSED (d),
264 { 265 struct frame *UNUSED (f), face_index UNUSED (findex),
265 abort (); 266 int UNUSED (x), int UNUSED (y), int UNUSED (width),
266 } 267 int UNUSED (height), Lisp_Object UNUSED (fcolor),
267 268 Lisp_Object UNUSED (bcolor),
268 static int 269 Lisp_Object UNUSED (background_pixmap))
269 stream_flash (struct device *d) 270 {
271 abort ();
272 }
273
274 static int
275 stream_flash (struct device *UNUSED (d))
270 { 276 {
271 return 0; /* sorry can't do it */ 277 return 0; /* sorry can't do it */
272 } 278 }
273 279
274 static void 280 static void
275 stream_ring_bell (struct device *d, int volume, int pitch, int duration) 281 stream_ring_bell (struct device *d, int UNUSED (volume), int UNUSED (pitch),
282 int UNUSED (duration))
276 { 283 {
277 struct console *c = XCONSOLE (DEVICE_CONSOLE (d)); 284 struct console *c = XCONSOLE (DEVICE_CONSOLE (d));
278 /* Don't output ^G when not a TTY -- in particular, under MS Windows, ^G 285 /* Don't output ^G when not a TTY -- in particular, under MS Windows, ^G
279 is interpreted as bell by the console, but not when running under 286 is interpreted as bell by the console, but not when running under
280 VC++. Probably this would be the same under Unix. */ 287 VC++. Probably this would be the same under Unix. */