comparison src/sysdep.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 fd0cbe945410
children 2200ebac5409
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
365 * flush any pending output 365 * flush any pending output
366 * (may flush input as well; it does not matter the way we use it) 366 * (may flush input as well; it does not matter the way we use it)
367 */ 367 */
368 368
369 void 369 void
370 flush_pending_output (int channel) 370 flush_pending_output (
371 #if !defined (HAVE_TERMIOS) && (defined (TCFLSH) || defined (TIOCFLUSH))
372 int channel
373 #else
374 int UNUSED (channel)
375 #endif
376 )
371 { 377 {
372 #ifdef HAVE_TERMIOS 378 #ifdef HAVE_TERMIOS
373 /* If we try this, we get hit with SIGTTIN, because 379 /* If we try this, we get hit with SIGTTIN, because
374 the child's tty belongs to the child's pgrp. */ 380 the child's tty belongs to the child's pgrp. */
375 #elif defined (TCFLSH) 381 #elif defined (TCFLSH)
1477 1483
1478 static void 1484 static void
1479 tty_init_sys_modes_on_device (struct device *d) 1485 tty_init_sys_modes_on_device (struct device *d)
1480 { 1486 {
1481 struct emacs_tty tty; 1487 struct emacs_tty tty;
1482 int input_fd, output_fd; 1488 int input_fd;
1489 #if defined (IBMR2AIX) && defined (AIXHFT)
1490 int output_fd;
1491 #endif
1483 struct console *con = XCONSOLE (DEVICE_CONSOLE (d)); 1492 struct console *con = XCONSOLE (DEVICE_CONSOLE (d));
1484 1493
1485 input_fd = CONSOLE_TTY_DATA (con)->infd; 1494 input_fd = CONSOLE_TTY_DATA (con)->infd;
1495 #if defined (IBMR2AIX) && defined (AIXHFT)
1486 output_fd = CONSOLE_TTY_DATA (con)->outfd; 1496 output_fd = CONSOLE_TTY_DATA (con)->outfd;
1497 #endif
1487 1498
1488 emacs_get_tty (input_fd, &CONSOLE_TTY_DATA (con)->old_tty); 1499 emacs_get_tty (input_fd, &CONSOLE_TTY_DATA (con)->old_tty);
1489 tty = CONSOLE_TTY_DATA (con)->old_tty; 1500 tty = CONSOLE_TTY_DATA (con)->old_tty;
1490 1501
1491 con->tty_erase_char = Qnil; 1502 con->tty_erase_char = Qnil;
1861 /* Prepare the terminal for exiting Emacs; move the cursor to the 1872 /* Prepare the terminal for exiting Emacs; move the cursor to the
1862 bottom of the frame, turn off interrupt-driven I/O, etc. */ 1873 bottom of the frame, turn off interrupt-driven I/O, etc. */
1863 static void 1874 static void
1864 tty_reset_sys_modes_on_device (struct device *d) 1875 tty_reset_sys_modes_on_device (struct device *d)
1865 { 1876 {
1866 int input_fd, output_fd; 1877 #if defined (BSD) || (defined (IBMR2AIX) && defined (AIXHFT))
1878 int output_fd;
1879 #endif
1880 int input_fd;
1867 struct console *con = XCONSOLE (DEVICE_CONSOLE (d)); 1881 struct console *con = XCONSOLE (DEVICE_CONSOLE (d));
1868 1882
1869 input_fd = CONSOLE_TTY_DATA (con)->infd; 1883 input_fd = CONSOLE_TTY_DATA (con)->infd;
1884 #if defined (BSD) || (defined (IBMR2AIX) && defined (AIXHFT))
1870 output_fd = CONSOLE_TTY_DATA (con)->outfd; 1885 output_fd = CONSOLE_TTY_DATA (con)->outfd;
1886 #endif
1871 1887
1872 #if defined (IBMR2AIX) && defined (AIXHFT) 1888 #if defined (IBMR2AIX) && defined (AIXHFT)
1873 { 1889 {
1874 /* HFT consoles normally use ^J as a LF/CR. We forced it to 1890 /* HFT consoles normally use ^J as a LF/CR. We forced it to
1875 do the LF only. Now, we need to reset it. */ 1891 do the LF only. Now, we need to reset it. */