changeset 20367:3d1939f30ec6

(discard_tty_input, init_baud_rate, wait_for_termination, flush_pending_output, child_setup_tty, sys_suspend, sys_subshell, init_sigio, request_sigio, unrequest_sigio, init_sys_modes, get_frame_size, reset_sys_modes, setup_pty): Declare them as void.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Nov 1997 12:00:42 +0000
parents 94bdb0d152a5
children 9f5fab56f4b3
files src/sysdep.c
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Thu Nov 27 11:38:17 1997 +0000
+++ b/src/sysdep.c	Thu Nov 27 12:00:42 1997 +0000
@@ -255,6 +255,7 @@
 
 /* Discard pending input on descriptor input_fd.  */
 
+void
 discard_tty_input ()
 {
 #ifndef WINDOWSNT
@@ -313,6 +314,7 @@
 
 #endif /* SIGTSTP */
 
+void
 init_baud_rate ()
 {
   if (noninteractive)
@@ -408,6 +410,7 @@
 /* Wait for subprocess with process id `pid' to terminate and
    make sure it will get eliminated (not remain forever as a zombie) */
 
+void
 wait_for_termination (pid)
      int pid;
 {
@@ -505,6 +508,7 @@
  *      (may flush input as well; it does not matter the way we use it)
  */
  
+void
 flush_pending_output (channel)
      int channel;
 {
@@ -532,6 +536,7 @@
     It should not echo or do line-editing, since that is done
     in Emacs.  No padding needed for insertion into an Emacs buffer.  */
 
+void
 child_setup_tty (out)
      int out;
 {
@@ -645,6 +650,7 @@
 
 /* Suspend the Emacs process; give terminal to its superior.  */
 
+void
 sys_suspend ()
 {
 #ifdef VMS
@@ -714,6 +720,7 @@
 
 /* Fork a subshell.  */
 
+void
 sys_subshell ()
 {
 #ifndef VMS
@@ -861,6 +868,7 @@
 
 int old_fcntl_flags;
 
+void
 init_sigio (fd)
      int fd;
 {
@@ -878,6 +886,7 @@
 
 #ifdef FASYNC		/* F_SETFL does not imply existence of FASYNC */
 
+void
 request_sigio ()
 {
   if (read_socket_hook)
@@ -891,6 +900,7 @@
   interrupts_deferred = 0;
 }
 
+void
 unrequest_sigio ()
 {
   if (read_socket_hook)
@@ -906,6 +916,7 @@
 #else /* no FASYNC */
 #ifdef STRIDE		/* Stride doesn't have FASYNC - use FIOASYNC */
 
+void
 request_sigio ()
 {
   int on = 1;
@@ -917,6 +928,7 @@
   interrupts_deferred = 0;
 }
 
+void
 unrequest_sigio ()
 {
   int off = 0;
@@ -934,6 +946,7 @@
 
 #include <termios.h>
 
+void
 request_sigio ()
 {
   int on = 1;
@@ -949,6 +962,7 @@
   sigprocmask(SIG_UNBLOCK, &st, (sigset_t *)0);
 }
 
+void
 unrequest_sigio ()
 {
   int off = 0;
@@ -962,6 +976,7 @@
 
 #else /* ! _CX_UX */
 
+void
 request_sigio ()
 {
   if (read_socket_hook)
@@ -970,6 +985,7 @@
   croak ("request_sigio");
 }
  
+void
 unrequest_sigio ()
 {
   if (read_socket_hook)
@@ -1219,6 +1235,7 @@
 static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1};
 #endif 
 
+void
 init_sys_modes ()
 {
   struct emacs_tty tty;
@@ -1589,6 +1606,7 @@
    Store number of lines into *HEIGHTP and width into *WIDTHP.
    We store 0 if there's no valid information.  */
 
+void
 get_frame_size (widthp, heightp)
      int *widthp, *heightp;
 {
@@ -1684,6 +1702,7 @@
 
 /* Prepare the terminal for exiting Emacs; move the cursor to the
    bottom of the frame, turn off interrupt-driven I/O, etc.  */
+void
 reset_sys_modes ()
 {
   if (noninteractive)
@@ -1776,6 +1795,7 @@
 
 /* Set up the proper status flags for use of a pty.  */
 
+void
 setup_pty (fd)
      int fd;
 {
@@ -2033,6 +2053,7 @@
     SYS$WAITFR (timer_ef);	  /* Wait for timer expiry only */
 }
 
+void
 init_sigio (fd)
      int fd;
 {
@@ -2044,11 +2065,13 @@
   unrequest_sigio ();
 }
 
+void
 request_sigio ()
 {
   croak ("request sigio");
 }
 
+void
 unrequest_sigio ()
 {
   croak ("unrequest sigio");
@@ -2623,6 +2646,7 @@
     return open (path, oflag);
 }
 
+void
 init_sigio (fd)
      int fd;
 {
@@ -2640,6 +2664,7 @@
   ioctl (0, TIOCLSET, &lmode);
 }
 
+void
 request_sigio ()
 {
   sigrelse (SIGTINT);
@@ -2647,6 +2672,7 @@
   interrupts_deferred = 0;
 }
 
+void
 unrequest_sigio ()
 {
   sighold (SIGTINT);