comparison src/sysdep.c @ 20348:3665989afd33

Add prototypes. (save_signal_handlers): Make static. (restore_signal_handlers): Likewise.
author Andreas Schwab <schwab@suse.de>
date Tue, 25 Nov 1997 13:38:04 +0000
parents 31035eff741a
children 3d1939f30ec6
comparison
equal deleted inserted replaced
20347:d8e5f3c1618b 20348:3665989afd33
635 635
636 /* Record a signal code and the handler for it. */ 636 /* Record a signal code and the handler for it. */
637 struct save_signal 637 struct save_signal
638 { 638 {
639 int code; 639 int code;
640 SIGTYPE (*handler) (); 640 SIGTYPE (*handler) P_ ((int));
641 }; 641 };
642
643 static void save_signal_handlers P_ ((struct save_signal *));
644 static void restore_signal_handlers P_ ((struct save_signal *));
642 645
643 /* Suspend the Emacs process; give terminal to its superior. */ 646 /* Suspend the Emacs process; give terminal to its superior. */
644 647
645 sys_suspend () 648 sys_suspend ()
646 { 649 {
829 restore_signal_handlers (saved_handlers); 832 restore_signal_handlers (saved_handlers);
830 synch_process_alive = 0; 833 synch_process_alive = 0;
831 #endif /* !VMS */ 834 #endif /* !VMS */
832 } 835 }
833 836
837 static void
834 save_signal_handlers (saved_handlers) 838 save_signal_handlers (saved_handlers)
835 struct save_signal *saved_handlers; 839 struct save_signal *saved_handlers;
836 { 840 {
837 while (saved_handlers->code) 841 while (saved_handlers->code)
838 { 842 {
839 saved_handlers->handler 843 saved_handlers->handler
840 = (SIGTYPE (*) ()) signal (saved_handlers->code, SIG_IGN); 844 = (SIGTYPE (*) P_ ((int))) signal (saved_handlers->code, SIG_IGN);
841 saved_handlers++; 845 saved_handlers++;
842 } 846 }
843 } 847 }
844 848
849 static void
845 restore_signal_handlers (saved_handlers) 850 restore_signal_handlers (saved_handlers)
846 struct save_signal *saved_handlers; 851 struct save_signal *saved_handlers;
847 { 852 {
848 while (saved_handlers->code) 853 while (saved_handlers->code)
849 { 854 {