Mercurial > hg > xemacs-beta
comparison src/redisplay-tty.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 | 79c6ff3eef26 |
children | ecf1ebac70d8 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
104 is considered to be fixed width -- in other words, we return LEN. | 104 is considered to be fixed width -- in other words, we return LEN. |
105 Under Mule, however, a character can still cover more than one | 105 Under Mule, however, a character can still cover more than one |
106 column, so we use ichar_string_displayed_columns(). | 106 column, so we use ichar_string_displayed_columns(). |
107 ****************************************************************************/ | 107 ****************************************************************************/ |
108 static int | 108 static int |
109 tty_text_width (struct frame *f, struct face_cachel *cachel, const Ichar *str, | 109 tty_text_width (struct frame *UNUSED (f), struct face_cachel *UNUSED (cachel), |
110 Charcount len) | 110 const Ichar *str, Charcount len) |
111 { | 111 { |
112 return ichar_string_displayed_columns (str, len); | 112 return ichar_string_displayed_columns (str, len); |
113 } | 113 } |
114 | 114 |
115 /***************************************************************************** | 115 /***************************************************************************** |
139 /***************************************************************************** | 139 /***************************************************************************** |
140 tty_frame_output_begin | 140 tty_frame_output_begin |
141 | 141 |
142 Perform any necessary initialization prior to an update. | 142 Perform any necessary initialization prior to an update. |
143 ****************************************************************************/ | 143 ****************************************************************************/ |
144 #ifdef HAVE_TERMIOS | |
145 #define TERMIOS_MAYBE_UNUSED(decl) UNUSED(decl) | |
146 #else | |
147 #define TERMIOS_MAYBE_UNUSED(decl) decl | |
148 #endif | |
149 | |
144 #ifdef DEBUG_XEMACS | 150 #ifdef DEBUG_XEMACS |
145 void tty_frame_output_begin (struct frame *f); | 151 void tty_frame_output_begin (struct frame *TERMIOS_MAYBE_UNUSED(f)); |
146 void | 152 void |
147 #else | 153 #else |
148 static void | 154 static void |
149 #endif | 155 #endif |
150 tty_frame_output_begin (struct frame *f) | 156 tty_frame_output_begin (struct frame *TERMIOS_MAYBE_UNUSED(f)) |
151 { | 157 { |
152 #ifndef HAVE_TERMIOS | 158 #ifndef HAVE_TERMIOS |
153 /* Termcap requires `ospeed' to be a global variable so we have to | 159 /* Termcap requires `ospeed' to be a global variable so we have to |
154 always set it for whatever tty console we are actually currently | 160 always set it for whatever tty console we are actually currently |
155 working with. */ | 161 working with. */ |
194 runes between start and end in the specified display block. | 200 runes between start and end in the specified display block. |
195 ****************************************************************************/ | 201 ****************************************************************************/ |
196 static void | 202 static void |
197 tty_output_display_block (struct window *w, struct display_line *dl, int block, | 203 tty_output_display_block (struct window *w, struct display_line *dl, int block, |
198 int start, int end, int start_pixpos, | 204 int start, int end, int start_pixpos, |
199 int cursor_start, int cursor_width, | 205 int cursor_start, int UNUSED (cursor_width), |
200 int cursor_height) | 206 int UNUSED (cursor_height)) |
201 { | 207 { |
202 struct frame *f = XFRAME (w->frame); | 208 struct frame *f = XFRAME (w->frame); |
203 Ichar_dynarr *buf = Dynarr_new (Ichar); | 209 Ichar_dynarr *buf = Dynarr_new (Ichar); |
204 | 210 |
205 struct display_block *db = Dynarr_atp (dl->display_blocks, block); | 211 struct display_block *db = Dynarr_atp (dl->display_blocks, block); |
375 tty_output_vertical_divider | 381 tty_output_vertical_divider |
376 | 382 |
377 Draw a vertical divider down the right side of the given window. | 383 Draw a vertical divider down the right side of the given window. |
378 ****************************************************************************/ | 384 ****************************************************************************/ |
379 static void | 385 static void |
380 tty_output_vertical_divider (struct window *w, int clear) | 386 tty_output_vertical_divider (struct window *w, int UNUSED (clear)) |
381 { | 387 { |
382 /* Divider width can either be 0 or 1 on TTYs */ | 388 /* Divider width can either be 0 or 1 on TTYs */ |
383 if (window_divider_width (w)) | 389 if (window_divider_width (w)) |
384 { | 390 { |
385 struct frame *f = XFRAME (w->frame); | 391 struct frame *f = XFRAME (w->frame); |
409 tty_clear_region | 415 tty_clear_region |
410 | 416 |
411 Clear the area in the box defined by the given parameters. | 417 Clear the area in the box defined by the given parameters. |
412 ****************************************************************************/ | 418 ****************************************************************************/ |
413 static void | 419 static void |
414 tty_clear_region (Lisp_Object window, struct device* d, struct frame * f, | 420 tty_clear_region (Lisp_Object window, struct device* UNUSED (d), |
415 face_index findex, int x, int y, | 421 struct frame * f, face_index findex, int x, int y, |
416 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor, | 422 int width, int height, Lisp_Object UNUSED (fcolor), |
417 Lisp_Object background_pixmap) | 423 Lisp_Object UNUSED (bcolor), |
424 Lisp_Object UNUSED (background_pixmap)) | |
418 { | 425 { |
419 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); | 426 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); |
420 int line; | 427 int line; |
421 struct window* w = XWINDOW (window); | 428 struct window* w = XWINDOW (window); |
422 | 429 |
519 tty_turn_off_frame_face (f, Vdefault_face); | 526 tty_turn_off_frame_face (f, Vdefault_face); |
520 } | 527 } |
521 | 528 |
522 static void | 529 static void |
523 tty_output_ibyte_string (struct window *w, struct display_line *dl, | 530 tty_output_ibyte_string (struct window *w, struct display_line *dl, |
524 Ibyte *str, Bytecount len, int xpos, | 531 Ibyte *str, Bytecount len, int xpos, |
525 face_index findex, int cursor) | 532 face_index findex, int UNUSED (cursor)) |
526 { | 533 { |
527 struct frame *f = XFRAME (w->frame); | 534 struct frame *f = XFRAME (w->frame); |
528 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); | 535 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); |
529 | 536 |
530 /* First position the cursor. */ | 537 /* First position the cursor. */ |
1032 | 1039 |
1033 /* | 1040 /* |
1034 * tty_ring_bell - sound an audio beep. | 1041 * tty_ring_bell - sound an audio beep. |
1035 */ | 1042 */ |
1036 static void | 1043 static void |
1037 tty_ring_bell (struct device *d, int volume, int pitch, int duration) | 1044 tty_ring_bell (struct device *d, int volume, int UNUSED (pitch), |
1045 int UNUSED (duration)) | |
1038 { | 1046 { |
1039 struct console *c = XCONSOLE (DEVICE_CONSOLE (d)); | 1047 struct console *c = XCONSOLE (DEVICE_CONSOLE (d)); |
1040 | 1048 |
1041 if (volume) | 1049 if (volume) |
1042 { | 1050 { |
1374 term_get_fkeys_1, keymap, | 1382 term_get_fkeys_1, keymap, |
1375 term_get_fkeys_error, Qnil); | 1383 term_get_fkeys_error, Qnil); |
1376 } | 1384 } |
1377 | 1385 |
1378 static Lisp_Object | 1386 static Lisp_Object |
1379 term_get_fkeys_error (Lisp_Object err, Lisp_Object arg) | 1387 term_get_fkeys_error (Lisp_Object UNUSED (err), Lisp_Object arg) |
1380 { | 1388 { |
1381 return arg; | 1389 return arg; |
1382 } | 1390 } |
1383 | 1391 |
1384 static Lisp_Object | 1392 static Lisp_Object |