diff options
| author | Kenichi Handa | 1997-11-27 12:00:42 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-11-27 12:00:42 +0000 |
| commit | 0863319442ae5fd638593ebabc0399f2cd715599 (patch) | |
| tree | 47e30d59b7d83d147ab648f91f11e2307232d85e | |
| parent | 9c3a25140571c3e9b8e1cbef7d58f955ea46ba7b (diff) | |
| download | emacs-0863319442ae5fd638593ebabc0399f2cd715599.tar.gz emacs-0863319442ae5fd638593ebabc0399f2cd715599.zip | |
(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.
| -rw-r--r-- | src/sysdep.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 4349a75dcc0..2cf7123018c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -255,6 +255,7 @@ change_input_fd (fd) | |||
| 255 | 255 | ||
| 256 | /* Discard pending input on descriptor input_fd. */ | 256 | /* Discard pending input on descriptor input_fd. */ |
| 257 | 257 | ||
| 258 | void | ||
| 258 | discard_tty_input () | 259 | discard_tty_input () |
| 259 | { | 260 | { |
| 260 | #ifndef WINDOWSNT | 261 | #ifndef WINDOWSNT |
| @@ -313,6 +314,7 @@ stuff_char (c) | |||
| 313 | 314 | ||
| 314 | #endif /* SIGTSTP */ | 315 | #endif /* SIGTSTP */ |
| 315 | 316 | ||
| 317 | void | ||
| 316 | init_baud_rate () | 318 | init_baud_rate () |
| 317 | { | 319 | { |
| 318 | if (noninteractive) | 320 | if (noninteractive) |
| @@ -408,6 +410,7 @@ wait_for_termination_signal () | |||
| 408 | /* Wait for subprocess with process id `pid' to terminate and | 410 | /* Wait for subprocess with process id `pid' to terminate and |
| 409 | make sure it will get eliminated (not remain forever as a zombie) */ | 411 | make sure it will get eliminated (not remain forever as a zombie) */ |
| 410 | 412 | ||
| 413 | void | ||
| 411 | wait_for_termination (pid) | 414 | wait_for_termination (pid) |
| 412 | int pid; | 415 | int pid; |
| 413 | { | 416 | { |
| @@ -505,6 +508,7 @@ wait_for_termination (pid) | |||
| 505 | * (may flush input as well; it does not matter the way we use it) | 508 | * (may flush input as well; it does not matter the way we use it) |
| 506 | */ | 509 | */ |
| 507 | 510 | ||
| 511 | void | ||
| 508 | flush_pending_output (channel) | 512 | flush_pending_output (channel) |
| 509 | int channel; | 513 | int channel; |
| 510 | { | 514 | { |
| @@ -532,6 +536,7 @@ flush_pending_output (channel) | |||
| 532 | It should not echo or do line-editing, since that is done | 536 | It should not echo or do line-editing, since that is done |
| 533 | in Emacs. No padding needed for insertion into an Emacs buffer. */ | 537 | in Emacs. No padding needed for insertion into an Emacs buffer. */ |
| 534 | 538 | ||
| 539 | void | ||
| 535 | child_setup_tty (out) | 540 | child_setup_tty (out) |
| 536 | int out; | 541 | int out; |
| 537 | { | 542 | { |
| @@ -645,6 +650,7 @@ static void restore_signal_handlers P_ ((struct save_signal *)); | |||
| 645 | 650 | ||
| 646 | /* Suspend the Emacs process; give terminal to its superior. */ | 651 | /* Suspend the Emacs process; give terminal to its superior. */ |
| 647 | 652 | ||
| 653 | void | ||
| 648 | sys_suspend () | 654 | sys_suspend () |
| 649 | { | 655 | { |
| 650 | #ifdef VMS | 656 | #ifdef VMS |
| @@ -714,6 +720,7 @@ sys_suspend () | |||
| 714 | 720 | ||
| 715 | /* Fork a subshell. */ | 721 | /* Fork a subshell. */ |
| 716 | 722 | ||
| 723 | void | ||
| 717 | sys_subshell () | 724 | sys_subshell () |
| 718 | { | 725 | { |
| 719 | #ifndef VMS | 726 | #ifndef VMS |
| @@ -861,6 +868,7 @@ restore_signal_handlers (saved_handlers) | |||
| 861 | 868 | ||
| 862 | int old_fcntl_flags; | 869 | int old_fcntl_flags; |
| 863 | 870 | ||
| 871 | void | ||
| 864 | init_sigio (fd) | 872 | init_sigio (fd) |
| 865 | int fd; | 873 | int fd; |
| 866 | { | 874 | { |
| @@ -878,6 +886,7 @@ reset_sigio () | |||
| 878 | 886 | ||
| 879 | #ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */ | 887 | #ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */ |
| 880 | 888 | ||
| 889 | void | ||
| 881 | request_sigio () | 890 | request_sigio () |
| 882 | { | 891 | { |
| 883 | if (read_socket_hook) | 892 | if (read_socket_hook) |
| @@ -891,6 +900,7 @@ request_sigio () | |||
| 891 | interrupts_deferred = 0; | 900 | interrupts_deferred = 0; |
| 892 | } | 901 | } |
| 893 | 902 | ||
| 903 | void | ||
| 894 | unrequest_sigio () | 904 | unrequest_sigio () |
| 895 | { | 905 | { |
| 896 | if (read_socket_hook) | 906 | if (read_socket_hook) |
| @@ -906,6 +916,7 @@ unrequest_sigio () | |||
| 906 | #else /* no FASYNC */ | 916 | #else /* no FASYNC */ |
| 907 | #ifdef STRIDE /* Stride doesn't have FASYNC - use FIOASYNC */ | 917 | #ifdef STRIDE /* Stride doesn't have FASYNC - use FIOASYNC */ |
| 908 | 918 | ||
| 919 | void | ||
| 909 | request_sigio () | 920 | request_sigio () |
| 910 | { | 921 | { |
| 911 | int on = 1; | 922 | int on = 1; |
| @@ -917,6 +928,7 @@ request_sigio () | |||
| 917 | interrupts_deferred = 0; | 928 | interrupts_deferred = 0; |
| 918 | } | 929 | } |
| 919 | 930 | ||
| 931 | void | ||
| 920 | unrequest_sigio () | 932 | unrequest_sigio () |
| 921 | { | 933 | { |
| 922 | int off = 0; | 934 | int off = 0; |
| @@ -934,6 +946,7 @@ unrequest_sigio () | |||
| 934 | 946 | ||
| 935 | #include <termios.h> | 947 | #include <termios.h> |
| 936 | 948 | ||
| 949 | void | ||
| 937 | request_sigio () | 950 | request_sigio () |
| 938 | { | 951 | { |
| 939 | int on = 1; | 952 | int on = 1; |
| @@ -949,6 +962,7 @@ request_sigio () | |||
| 949 | sigprocmask(SIG_UNBLOCK, &st, (sigset_t *)0); | 962 | sigprocmask(SIG_UNBLOCK, &st, (sigset_t *)0); |
| 950 | } | 963 | } |
| 951 | 964 | ||
| 965 | void | ||
| 952 | unrequest_sigio () | 966 | unrequest_sigio () |
| 953 | { | 967 | { |
| 954 | int off = 0; | 968 | int off = 0; |
| @@ -962,6 +976,7 @@ unrequest_sigio () | |||
| 962 | 976 | ||
| 963 | #else /* ! _CX_UX */ | 977 | #else /* ! _CX_UX */ |
| 964 | 978 | ||
| 979 | void | ||
| 965 | request_sigio () | 980 | request_sigio () |
| 966 | { | 981 | { |
| 967 | if (read_socket_hook) | 982 | if (read_socket_hook) |
| @@ -970,6 +985,7 @@ request_sigio () | |||
| 970 | croak ("request_sigio"); | 985 | croak ("request_sigio"); |
| 971 | } | 986 | } |
| 972 | 987 | ||
| 988 | void | ||
| 973 | unrequest_sigio () | 989 | unrequest_sigio () |
| 974 | { | 990 | { |
| 975 | if (read_socket_hook) | 991 | if (read_socket_hook) |
| @@ -1219,6 +1235,7 @@ static struct ltchars new_ltchars = {-1,-1,-1,-1,-1,-1}; | |||
| 1219 | static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; | 1235 | static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; |
| 1220 | #endif | 1236 | #endif |
| 1221 | 1237 | ||
| 1238 | void | ||
| 1222 | init_sys_modes () | 1239 | init_sys_modes () |
| 1223 | { | 1240 | { |
| 1224 | struct emacs_tty tty; | 1241 | struct emacs_tty tty; |
| @@ -1589,6 +1606,7 @@ tabs_safe_p () | |||
| 1589 | Store number of lines into *HEIGHTP and width into *WIDTHP. | 1606 | Store number of lines into *HEIGHTP and width into *WIDTHP. |
| 1590 | We store 0 if there's no valid information. */ | 1607 | We store 0 if there's no valid information. */ |
| 1591 | 1608 | ||
| 1609 | void | ||
| 1592 | get_frame_size (widthp, heightp) | 1610 | get_frame_size (widthp, heightp) |
| 1593 | int *widthp, *heightp; | 1611 | int *widthp, *heightp; |
| 1594 | { | 1612 | { |
| @@ -1684,6 +1702,7 @@ set_window_size (fd, height, width) | |||
| 1684 | 1702 | ||
| 1685 | /* Prepare the terminal for exiting Emacs; move the cursor to the | 1703 | /* Prepare the terminal for exiting Emacs; move the cursor to the |
| 1686 | bottom of the frame, turn off interrupt-driven I/O, etc. */ | 1704 | bottom of the frame, turn off interrupt-driven I/O, etc. */ |
| 1705 | void | ||
| 1687 | reset_sys_modes () | 1706 | reset_sys_modes () |
| 1688 | { | 1707 | { |
| 1689 | if (noninteractive) | 1708 | if (noninteractive) |
| @@ -1776,6 +1795,7 @@ reset_sys_modes () | |||
| 1776 | 1795 | ||
| 1777 | /* Set up the proper status flags for use of a pty. */ | 1796 | /* Set up the proper status flags for use of a pty. */ |
| 1778 | 1797 | ||
| 1798 | void | ||
| 1779 | setup_pty (fd) | 1799 | setup_pty (fd) |
| 1780 | int fd; | 1800 | int fd; |
| 1781 | { | 1801 | { |
| @@ -2033,6 +2053,7 @@ sys_sleep (timeval) | |||
| 2033 | SYS$WAITFR (timer_ef); /* Wait for timer expiry only */ | 2053 | SYS$WAITFR (timer_ef); /* Wait for timer expiry only */ |
| 2034 | } | 2054 | } |
| 2035 | 2055 | ||
| 2056 | void | ||
| 2036 | init_sigio (fd) | 2057 | init_sigio (fd) |
| 2037 | int fd; | 2058 | int fd; |
| 2038 | { | 2059 | { |
| @@ -2044,11 +2065,13 @@ reset_sigio () | |||
| 2044 | unrequest_sigio (); | 2065 | unrequest_sigio (); |
| 2045 | } | 2066 | } |
| 2046 | 2067 | ||
| 2068 | void | ||
| 2047 | request_sigio () | 2069 | request_sigio () |
| 2048 | { | 2070 | { |
| 2049 | croak ("request sigio"); | 2071 | croak ("request sigio"); |
| 2050 | } | 2072 | } |
| 2051 | 2073 | ||
| 2074 | void | ||
| 2052 | unrequest_sigio () | 2075 | unrequest_sigio () |
| 2053 | { | 2076 | { |
| 2054 | croak ("unrequest sigio"); | 2077 | croak ("unrequest sigio"); |
| @@ -2623,6 +2646,7 @@ sys_open (path, oflag, mode) | |||
| 2623 | return open (path, oflag); | 2646 | return open (path, oflag); |
| 2624 | } | 2647 | } |
| 2625 | 2648 | ||
| 2649 | void | ||
| 2626 | init_sigio (fd) | 2650 | init_sigio (fd) |
| 2627 | int fd; | 2651 | int fd; |
| 2628 | { | 2652 | { |
| @@ -2640,6 +2664,7 @@ reset_sigio () | |||
| 2640 | ioctl (0, TIOCLSET, &lmode); | 2664 | ioctl (0, TIOCLSET, &lmode); |
| 2641 | } | 2665 | } |
| 2642 | 2666 | ||
| 2667 | void | ||
| 2643 | request_sigio () | 2668 | request_sigio () |
| 2644 | { | 2669 | { |
| 2645 | sigrelse (SIGTINT); | 2670 | sigrelse (SIGTINT); |
| @@ -2647,6 +2672,7 @@ request_sigio () | |||
| 2647 | interrupts_deferred = 0; | 2672 | interrupts_deferred = 0; |
| 2648 | } | 2673 | } |
| 2649 | 2674 | ||
| 2675 | void | ||
| 2650 | unrequest_sigio () | 2676 | unrequest_sigio () |
| 2651 | { | 2677 | { |
| 2652 | sighold (SIGTINT); | 2678 | sighold (SIGTINT); |