diff options
| author | Glenn Morris | 2011-03-26 19:27:11 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-03-26 19:27:11 -0700 |
| commit | 9af30bdf17f8371664bc0c5854c91c2e46257b5e (patch) | |
| tree | ef68d0a44cbdc312405a65101dbc5df41316c71a | |
| parent | 7a097943f7d3433a5d053eee4b2f3254230fee64 (diff) | |
| download | emacs-9af30bdf17f8371664bc0c5854c91c2e46257b5e.tar.gz emacs-9af30bdf17f8371664bc0c5854c91c2e46257b5e.zip | |
Remove (RET)SIGTYPE; it is identical to void on all supported systems.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html
* configure.in (AC_TYPE_SIGNAL): Remove obsolete macro.
(AH_BOTTOM): Do not define SIGTYPE.
* lib-src/emacsclient.c: Replace SIGTYPE with void.
* nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void).
* src/syssignal.h: Replace RETSIGTYPE with void.
* src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c:
* src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c:
* src/xterm.c: Replace SIGTYPE with void everywhere.
* src/s/template.h (SIGTYPE): Remove commented out definition.
* src/s/usg5-4-common.h (SIGTYPE): Remove definition.
* admin/CPP-DEFINES: Remove SIGTYPE.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | admin/CPP-DEFINES | 2 | ||||
| -rw-r--r-- | configure.in | 8 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 6 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 9 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/atimer.c | 4 | ||||
| -rw-r--r-- | src/data.c | 2 | ||||
| -rw-r--r-- | src/dispnew.c | 2 | ||||
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/floatfns.c | 6 | ||||
| -rw-r--r-- | src/keyboard.c | 12 | ||||
| -rw-r--r-- | src/keyboard.h | 2 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/process.c | 8 | ||||
| -rw-r--r-- | src/s/template.h | 9 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 3 | ||||
| -rw-r--r-- | src/sysdep.c | 4 | ||||
| -rw-r--r-- | src/syssignal.h | 2 | ||||
| -rw-r--r-- | src/xterm.c | 6 |
22 files changed, 52 insertions, 61 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (AC_TYPE_SIGNAL): Remove obsolete macro. | ||
| 4 | (AH_BOTTOM): Do not define SIGTYPE. | ||
| 5 | |||
| 1 | 2011-03-26 Glenn Morris <rgm@gnu.org> | 6 | 2011-03-26 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * configure.in: Replace obsolete macros AC_TRY_COMPILE, AC_TRY_LINK, | 8 | * configure.in: Replace obsolete macros AC_TRY_COMPILE, AC_TRY_LINK, |
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index dae6202b4e4..7f6a18f7d54 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -58,7 +58,6 @@ HAVE_TERMIOS | |||
| 58 | INTERRUPT_INPUT | 58 | INTERRUPT_INPUT |
| 59 | NARROWPROTO | 59 | NARROWPROTO |
| 60 | SEPCHAR | 60 | SEPCHAR |
| 61 | SIGTYPE | ||
| 62 | SYSTEM_TYPE | 61 | SYSTEM_TYPE |
| 63 | 62 | ||
| 64 | ** Machine specific macros, decribed in detail in src/m/template.h | 63 | ** Machine specific macros, decribed in detail in src/m/template.h |
| @@ -238,7 +237,6 @@ SIGNALS_VIA_CHARACTERS | |||
| 238 | SIGPIPE | 237 | SIGPIPE |
| 239 | SIGQUIT | 238 | SIGQUIT |
| 240 | SIGTRAP | 239 | SIGTRAP |
| 241 | SIGTYPE | ||
| 242 | SOLARIS2 | 240 | SOLARIS2 |
| 243 | STDC_HEADERS | 241 | STDC_HEADERS |
| 244 | SYSTEM_PURESIZE_EXTRA | 242 | SYSTEM_PURESIZE_EXTRA |
diff --git a/configure.in b/configure.in index fb71b82c464..77deef8dba5 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1227,9 +1227,6 @@ if test $emacs_cv_struct_utimbuf = yes; then | |||
| 1227 | AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define to 1 if `struct utimbuf' is declared by <utime.h>.]) | 1227 | AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define to 1 if `struct utimbuf' is declared by <utime.h>.]) |
| 1228 | fi | 1228 | fi |
| 1229 | 1229 | ||
| 1230 | dnl checks for typedefs | ||
| 1231 | AC_TYPE_SIGNAL | ||
| 1232 | |||
| 1233 | dnl Check for speed_t typedef. | 1230 | dnl Check for speed_t typedef. |
| 1234 | AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t, | 1231 | AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t, |
| 1235 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <termios.h>]], [[speed_t x = 1;]])], | 1232 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <termios.h>]], [[speed_t x = 1;]])], |
| @@ -3493,11 +3490,6 @@ AH_BOTTOM([ | |||
| 3493 | # define SYSTEM_PURESIZE_EXTRA 30000 | 3490 | # define SYSTEM_PURESIZE_EXTRA 30000 |
| 3494 | #endif | 3491 | #endif |
| 3495 | 3492 | ||
| 3496 | /* SIGTYPE is the macro we actually use. */ | ||
| 3497 | #ifndef SIGTYPE | ||
| 3498 | #define SIGTYPE RETSIGTYPE | ||
| 3499 | #endif | ||
| 3500 | |||
| 3501 | #ifdef emacs /* Don't do this for lib-src. */ | 3493 | #ifdef emacs /* Don't do this for lib-src. */ |
| 3502 | /* Tell regex.c to use a type compatible with Emacs. */ | 3494 | /* Tell regex.c to use a type compatible with Emacs. */ |
| 3503 | #define RE_TRANSLATE_TYPE Lisp_Object | 3495 | #define RE_TRANSLATE_TYPE Lisp_Object |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 672fe8c8541..f594efa588c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-03-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacsclient.c: Replace SIGTYPE with void. | ||
| 4 | |||
| 1 | 2011-03-23 Juanma Barranquero <lekktu@gmail.com> | 5 | 2011-03-23 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * ntlib.c: Include <ctype.h>. | 7 | * ntlib.c: Include <ctype.h>. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index abc9aee37c1..737a8d88586 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1116,7 +1116,7 @@ socket_status (char *name) | |||
| 1116 | /* A signal handler that passes the signal to the Emacs process. | 1116 | /* A signal handler that passes the signal to the Emacs process. |
| 1117 | Useful for SIGWINCH. */ | 1117 | Useful for SIGWINCH. */ |
| 1118 | 1118 | ||
| 1119 | static SIGTYPE | 1119 | static void |
| 1120 | pass_signal_to_emacs (int signalnum) | 1120 | pass_signal_to_emacs (int signalnum) |
| 1121 | { | 1121 | { |
| 1122 | int old_errno = errno; | 1122 | int old_errno = errno; |
| @@ -1131,7 +1131,7 @@ pass_signal_to_emacs (int signalnum) | |||
| 1131 | /* Signal handler for SIGCONT; notify the Emacs process that it can | 1131 | /* Signal handler for SIGCONT; notify the Emacs process that it can |
| 1132 | now resume our tty frame. */ | 1132 | now resume our tty frame. */ |
| 1133 | 1133 | ||
| 1134 | static SIGTYPE | 1134 | static void |
| 1135 | handle_sigcont (int signalnum) | 1135 | handle_sigcont (int signalnum) |
| 1136 | { | 1136 | { |
| 1137 | int old_errno = errno; | 1137 | int old_errno = errno; |
| @@ -1157,7 +1157,7 @@ handle_sigcont (int signalnum) | |||
| 1157 | reality, we may get a SIGTSTP on C-z. Handling this signal and | 1157 | reality, we may get a SIGTSTP on C-z. Handling this signal and |
| 1158 | notifying Emacs about it should get things under control again. */ | 1158 | notifying Emacs about it should get things under control again. */ |
| 1159 | 1159 | ||
| 1160 | static SIGTYPE | 1160 | static void |
| 1161 | handle_sigtstp (int signalnum) | 1161 | handle_sigtstp (int signalnum) |
| 1162 | { | 1162 | { |
| 1163 | int old_errno = errno; | 1163 | int old_errno = errno; |
diff --git a/nt/ChangeLog b/nt/ChangeLog index f041bac7360..a0603fd7c26 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-03-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void). | ||
| 4 | |||
| 1 | 2011-03-25 Juanma Barranquero <lekktu@gmail.com> | 5 | 2011-03-25 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * addpm.c (main): Remove unused variable `retval'. | 7 | * addpm.c (main): Remove unused variable `retval'. |
diff --git a/nt/config.nt b/nt/config.nt index 26fbc1c67c5..1d9a5faaf2c 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -393,15 +393,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 393 | #undef STACK_DIRECTION | 393 | #undef STACK_DIRECTION |
| 394 | #endif | 394 | #endif |
| 395 | 395 | ||
| 396 | /* Define the return type of signal handlers if the s-xxx file | ||
| 397 | did not already do so. */ | ||
| 398 | #define RETSIGTYPE void | ||
| 399 | |||
| 400 | /* SIGTYPE is the macro we actually use. */ | ||
| 401 | #ifndef SIGTYPE | ||
| 402 | #define SIGTYPE RETSIGTYPE | ||
| 403 | #endif | ||
| 404 | |||
| 405 | #ifdef emacs /* Don't do this for lib-src. */ | 396 | #ifdef emacs /* Don't do this for lib-src. */ |
| 406 | /* Tell regex.c to use a type compatible with Emacs. */ | 397 | /* Tell regex.c to use a type compatible with Emacs. */ |
| 407 | #define RE_TRANSLATE_TYPE Lisp_Object | 398 | #define RE_TRANSLATE_TYPE Lisp_Object |
diff --git a/src/ChangeLog b/src/ChangeLog index 06972a5bcb1..54b24c50a1c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-03-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * syssignal.h: Replace RETSIGTYPE with void. | ||
| 4 | * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c: | ||
| 5 | * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c: | ||
| 6 | Replace SIGTYPE with void everywhere. | ||
| 7 | * s/usg5-4-common.h (SIGTYPE): Remove definition. | ||
| 8 | * s/template.h (SIGTYPE): Remove commented out definition. | ||
| 9 | |||
| 1 | 2011-03-26 Eli Zaretskii <eliz@gnu.org> | 10 | 2011-03-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 11 | ||
| 3 | * xdisp.c (redisplay_window): Don't check buffer's clip_changed | 12 | * xdisp.c (redisplay_window): Don't check buffer's clip_changed |
diff --git a/src/atimer.c b/src/atimer.c index e10add961eb..b947ea59ccd 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -64,7 +64,7 @@ static void set_alarm (void); | |||
| 64 | static void schedule_atimer (struct atimer *); | 64 | static void schedule_atimer (struct atimer *); |
| 65 | static struct atimer *append_atimer_lists (struct atimer *, | 65 | static struct atimer *append_atimer_lists (struct atimer *, |
| 66 | struct atimer *); | 66 | struct atimer *); |
| 67 | SIGTYPE alarm_signal_handler (int signo); | 67 | void alarm_signal_handler (int signo); |
| 68 | 68 | ||
| 69 | 69 | ||
| 70 | /* Start a new atimer of type TYPE. TIME specifies when the timer is | 70 | /* Start a new atimer of type TYPE. TIME specifies when the timer is |
| @@ -388,7 +388,7 @@ run_timers (void) | |||
| 388 | /* Signal handler for SIGALRM. SIGNO is the signal number, i.e. | 388 | /* Signal handler for SIGALRM. SIGNO is the signal number, i.e. |
| 389 | SIGALRM. */ | 389 | SIGALRM. */ |
| 390 | 390 | ||
| 391 | SIGTYPE | 391 | void |
| 392 | alarm_signal_handler (int signo) | 392 | alarm_signal_handler (int signo) |
| 393 | { | 393 | { |
| 394 | #ifndef SYNC_INPUT | 394 | #ifndef SYNC_INPUT |
diff --git a/src/data.c b/src/data.c index 01aafbcede4..36a64d888de 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -3300,7 +3300,7 @@ syms_of_data (void) | |||
| 3300 | XSYMBOL (intern_c_string ("most-negative-fixnum"))->constant = 1; | 3300 | XSYMBOL (intern_c_string ("most-negative-fixnum"))->constant = 1; |
| 3301 | } | 3301 | } |
| 3302 | 3302 | ||
| 3303 | static SIGTYPE | 3303 | static void |
| 3304 | arith_error (int signo) | 3304 | arith_error (int signo) |
| 3305 | { | 3305 | { |
| 3306 | sigsetmask (SIGEMPTYMASK); | 3306 | sigsetmask (SIGEMPTYMASK); |
diff --git a/src/dispnew.c b/src/dispnew.c index 093ed9524e4..a15b5f45e60 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5566,7 +5566,7 @@ marginal_area_string (struct window *w, enum window_part part, | |||
| 5566 | 5566 | ||
| 5567 | #ifdef SIGWINCH | 5567 | #ifdef SIGWINCH |
| 5568 | 5568 | ||
| 5569 | static SIGTYPE | 5569 | static void |
| 5570 | window_change_signal (int signalnum) /* If we don't have an argument, */ | 5570 | window_change_signal (int signalnum) /* If we don't have an argument, */ |
| 5571 | /* some compilers complain in signal calls. */ | 5571 | /* some compilers complain in signal calls. */ |
| 5572 | { | 5572 | { |
diff --git a/src/emacs.c b/src/emacs.c index 0382ade728d..6bdd2550ed1 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -308,7 +308,7 @@ pthread_t main_thread; | |||
| 308 | 308 | ||
| 309 | 309 | ||
| 310 | /* Handle bus errors, invalid instruction, etc. */ | 310 | /* Handle bus errors, invalid instruction, etc. */ |
| 311 | SIGTYPE | 311 | void |
| 312 | fatal_error_signal (int sig) | 312 | fatal_error_signal (int sig) |
| 313 | { | 313 | { |
| 314 | SIGNAL_THREAD_CHECK (sig); | 314 | SIGNAL_THREAD_CHECK (sig); |
| @@ -345,7 +345,7 @@ fatal_error_signal (int sig) | |||
| 345 | #ifdef SIGDANGER | 345 | #ifdef SIGDANGER |
| 346 | 346 | ||
| 347 | /* Handler for SIGDANGER. */ | 347 | /* Handler for SIGDANGER. */ |
| 348 | SIGTYPE | 348 | void |
| 349 | memory_warning_signal (sig) | 349 | memory_warning_signal (sig) |
| 350 | int sig; | 350 | int sig; |
| 351 | { | 351 | { |
diff --git a/src/floatfns.c b/src/floatfns.c index bc03509b757..1232fc0afa1 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -103,7 +103,7 @@ extern double logb (double); | |||
| 103 | #endif | 103 | #endif |
| 104 | 104 | ||
| 105 | #ifdef FLOAT_CATCH_SIGILL | 105 | #ifdef FLOAT_CATCH_SIGILL |
| 106 | static SIGTYPE float_error (); | 106 | static void float_error (); |
| 107 | #endif | 107 | #endif |
| 108 | 108 | ||
| 109 | /* Nonzero while executing in floating point. | 109 | /* Nonzero while executing in floating point. |
| @@ -126,7 +126,7 @@ static const char *float_error_fn_name; | |||
| 126 | Handle errors which may result in signals or may set errno. | 126 | Handle errors which may result in signals or may set errno. |
| 127 | 127 | ||
| 128 | Note that float_error may be declared to return void, so you can't | 128 | Note that float_error may be declared to return void, so you can't |
| 129 | just cast the zero after the colon to (SIGTYPE) to make the types | 129 | just cast the zero after the colon to (void) to make the types |
| 130 | check properly. */ | 130 | check properly. */ |
| 131 | 131 | ||
| 132 | #ifdef FLOAT_CHECK_ERRNO | 132 | #ifdef FLOAT_CHECK_ERRNO |
| @@ -960,7 +960,7 @@ Rounds the value toward zero. */) | |||
| 960 | } | 960 | } |
| 961 | 961 | ||
| 962 | #ifdef FLOAT_CATCH_SIGILL | 962 | #ifdef FLOAT_CATCH_SIGILL |
| 963 | static SIGTYPE | 963 | static void |
| 964 | float_error (signo) | 964 | float_error (signo) |
| 965 | int signo; | 965 | int signo; |
| 966 | { | 966 | { |
diff --git a/src/keyboard.c b/src/keyboard.c index c4ef2795f6a..06f375e0d9c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -434,15 +434,15 @@ static void restore_getcjmp (jmp_buf); | |||
| 434 | static Lisp_Object apply_modifiers (int, Lisp_Object); | 434 | static Lisp_Object apply_modifiers (int, Lisp_Object); |
| 435 | static void clear_event (struct input_event *); | 435 | static void clear_event (struct input_event *); |
| 436 | static Lisp_Object restore_kboard_configuration (Lisp_Object); | 436 | static Lisp_Object restore_kboard_configuration (Lisp_Object); |
| 437 | static SIGTYPE interrupt_signal (int signalnum); | 437 | static void interrupt_signal (int signalnum); |
| 438 | #ifdef SIGIO | 438 | #ifdef SIGIO |
| 439 | static SIGTYPE input_available_signal (int signo); | 439 | static void input_available_signal (int signo); |
| 440 | #endif | 440 | #endif |
| 441 | static void handle_interrupt (void); | 441 | static void handle_interrupt (void); |
| 442 | static void timer_start_idle (void); | 442 | static void timer_start_idle (void); |
| 443 | static void timer_stop_idle (void); | 443 | static void timer_stop_idle (void); |
| 444 | static void timer_resume_idle (void); | 444 | static void timer_resume_idle (void); |
| 445 | static SIGTYPE handle_user_signal (int); | 445 | static void handle_user_signal (int); |
| 446 | static char *find_user_signal_name (int); | 446 | static char *find_user_signal_name (int); |
| 447 | static int store_user_signal_events (void); | 447 | static int store_user_signal_events (void); |
| 448 | 448 | ||
| @@ -7082,7 +7082,7 @@ process_pending_signals (void) | |||
| 7082 | #ifdef SIGIO /* for entire page */ | 7082 | #ifdef SIGIO /* for entire page */ |
| 7083 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ | 7083 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ |
| 7084 | 7084 | ||
| 7085 | static SIGTYPE | 7085 | static void |
| 7086 | input_available_signal (int signo) | 7086 | input_available_signal (int signo) |
| 7087 | { | 7087 | { |
| 7088 | /* Must preserve main program's value of errno. */ | 7088 | /* Must preserve main program's value of errno. */ |
| @@ -7160,7 +7160,7 @@ add_user_signal (int sig, const char *name) | |||
| 7160 | signal (sig, handle_user_signal); | 7160 | signal (sig, handle_user_signal); |
| 7161 | } | 7161 | } |
| 7162 | 7162 | ||
| 7163 | static SIGTYPE | 7163 | static void |
| 7164 | handle_user_signal (int sig) | 7164 | handle_user_signal (int sig) |
| 7165 | { | 7165 | { |
| 7166 | int old_errno = errno; | 7166 | int old_errno = errno; |
| @@ -10712,7 +10712,7 @@ clear_waiting_for_input (void) | |||
| 10712 | SIGINT was generated by C-g, so we call handle_interrupt. | 10712 | SIGINT was generated by C-g, so we call handle_interrupt. |
| 10713 | Otherwise, the handler kills Emacs. */ | 10713 | Otherwise, the handler kills Emacs. */ |
| 10714 | 10714 | ||
| 10715 | static SIGTYPE | 10715 | static void |
| 10716 | interrupt_signal (int signalnum) /* If we don't have an argument, some */ | 10716 | interrupt_signal (int signalnum) /* If we don't have an argument, some */ |
| 10717 | /* compilers complain in signal calls. */ | 10717 | /* compilers complain in signal calls. */ |
| 10718 | { | 10718 | { |
diff --git a/src/keyboard.h b/src/keyboard.h index ba3c909c4dd..2ff370306b6 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -485,7 +485,7 @@ extern void push_frame_kboard (struct frame *); | |||
| 485 | extern void pop_kboard (void); | 485 | extern void pop_kboard (void); |
| 486 | extern void temporarily_switch_to_single_kboard (struct frame *); | 486 | extern void temporarily_switch_to_single_kboard (struct frame *); |
| 487 | extern void record_asynch_buffer_change (void); | 487 | extern void record_asynch_buffer_change (void); |
| 488 | extern SIGTYPE input_poll_signal (int); | 488 | extern void input_poll_signal (int); |
| 489 | extern void start_polling (void); | 489 | extern void start_polling (void); |
| 490 | extern void stop_polling (void); | 490 | extern void stop_polling (void); |
| 491 | extern void set_poll_suppress_count (int); | 491 | extern void set_poll_suppress_count (int); |
diff --git a/src/lisp.h b/src/lisp.h index e98172ec104..8c7d4da8aa9 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3181,7 +3181,7 @@ extern Lisp_Object decode_env_path (const char *, const char *); | |||
| 3181 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; | 3181 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; |
| 3182 | extern Lisp_Object Qfile_name_handler_alist; | 3182 | extern Lisp_Object Qfile_name_handler_alist; |
| 3183 | extern void (*fatal_error_signal_hook) (void); | 3183 | extern void (*fatal_error_signal_hook) (void); |
| 3184 | extern SIGTYPE fatal_error_signal (int); | 3184 | extern void fatal_error_signal (int); |
| 3185 | EXFUN (Fkill_emacs, 1) NO_RETURN; | 3185 | EXFUN (Fkill_emacs, 1) NO_RETURN; |
| 3186 | #if HAVE_SETLOCALE | 3186 | #if HAVE_SETLOCALE |
| 3187 | void fixup_locale (void); | 3187 | void fixup_locale (void); |
diff --git a/src/process.c b/src/process.c index 639b6a49fce..148f5b59f8a 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5470,7 +5470,7 @@ read_process_output (Lisp_Object proc, register int channel) | |||
| 5470 | jmp_buf send_process_frame; | 5470 | jmp_buf send_process_frame; |
| 5471 | Lisp_Object process_sent_to; | 5471 | Lisp_Object process_sent_to; |
| 5472 | 5472 | ||
| 5473 | static SIGTYPE | 5473 | static void |
| 5474 | send_process_trap (int ignore) | 5474 | send_process_trap (int ignore) |
| 5475 | { | 5475 | { |
| 5476 | SIGNAL_THREAD_CHECK (SIGPIPE); | 5476 | SIGNAL_THREAD_CHECK (SIGPIPE); |
| @@ -5497,7 +5497,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf, | |||
| 5497 | EMACS_INT rv; | 5497 | EMACS_INT rv; |
| 5498 | struct coding_system *coding; | 5498 | struct coding_system *coding; |
| 5499 | struct gcpro gcpro1; | 5499 | struct gcpro gcpro1; |
| 5500 | SIGTYPE (*volatile old_sigpipe) (int); | 5500 | void (*volatile old_sigpipe) (int); |
| 5501 | 5501 | ||
| 5502 | GCPRO1 (object); | 5502 | GCPRO1 (object); |
| 5503 | 5503 | ||
| @@ -5619,7 +5619,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf, | |||
| 5619 | while (this > 0) | 5619 | while (this > 0) |
| 5620 | { | 5620 | { |
| 5621 | int outfd = p->outfd; | 5621 | int outfd = p->outfd; |
| 5622 | old_sigpipe = (SIGTYPE (*) (int)) signal (SIGPIPE, send_process_trap); | 5622 | old_sigpipe = (void (*) (int)) signal (SIGPIPE, send_process_trap); |
| 5623 | #ifdef DATAGRAM_SOCKETS | 5623 | #ifdef DATAGRAM_SOCKETS |
| 5624 | if (DATAGRAM_CHAN_P (outfd)) | 5624 | if (DATAGRAM_CHAN_P (outfd)) |
| 5625 | { | 5625 | { |
| @@ -6379,7 +6379,7 @@ process has been transmitted to the serial port. */) | |||
| 6379 | indirectly; if it does, that is a bug */ | 6379 | indirectly; if it does, that is a bug */ |
| 6380 | 6380 | ||
| 6381 | #ifdef SIGCHLD | 6381 | #ifdef SIGCHLD |
| 6382 | static SIGTYPE | 6382 | static void |
| 6383 | sigchld_handler (int signo) | 6383 | sigchld_handler (int signo) |
| 6384 | { | 6384 | { |
| 6385 | int old_errno = errno; | 6385 | int old_errno = errno; |
diff --git a/src/s/template.h b/src/s/template.h index ee5afa81de4..4e0400e99e3 100644 --- a/src/s/template.h +++ b/src/s/template.h | |||
| @@ -77,15 +77,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 77 | a file that someone else has modified in his Emacs. */ | 77 | a file that someone else has modified in his Emacs. */ |
| 78 | #define CLASH_DETECTION | 78 | #define CLASH_DETECTION |
| 79 | 79 | ||
| 80 | /* Define this if your operating system declares signal handlers to | ||
| 81 | have a type other than the usual. `The usual' is `void' for ANSI C | ||
| 82 | systems (i.e. when the __STDC__ macro is defined), and `int' for | ||
| 83 | pre-ANSI systems. If you're using GCC on an older system, __STDC__ | ||
| 84 | will be defined, but the system's include files will still say that | ||
| 85 | signal returns int or whatever; in situations like that, define | ||
| 86 | this to be what the system's include files want. */ | ||
| 87 | /* #define SIGTYPE int */ | ||
| 88 | |||
| 89 | /* If the character used to separate elements of the executable path | 80 | /* If the character used to separate elements of the executable path |
| 90 | is not ':', #define this to be the appropriate character constant. */ | 81 | is not ':', #define this to be the appropriate character constant. */ |
| 91 | /* #define SEPCHAR ':' */ | 82 | /* #define SEPCHAR ':' */ |
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index aeedd7f4b15..236f71e3007 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -38,9 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ | 38 | /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ |
| 39 | #define HAVE_SYSV_SIGPAUSE | 39 | #define HAVE_SYSV_SIGPAUSE |
| 40 | 40 | ||
| 41 | /* On USG systems signal handlers return void. */ | ||
| 42 | #define SIGTYPE void | ||
| 43 | |||
| 44 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 41 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 45 | But get <termio.h> first to make sure ttold.h doesn't interfere. | 42 | But get <termio.h> first to make sure ttold.h doesn't interfere. |
| 46 | And don't try to use SIGIO yet. */ | 43 | And don't try to use SIGIO yet. */ |
diff --git a/src/sysdep.c b/src/sysdep.c index 14db0fd26d0..1bb400421f0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -449,7 +449,7 @@ child_setup_tty (int out) | |||
| 449 | struct save_signal | 449 | struct save_signal |
| 450 | { | 450 | { |
| 451 | int code; | 451 | int code; |
| 452 | SIGTYPE (*handler) (int); | 452 | void (*handler) (int); |
| 453 | }; | 453 | }; |
| 454 | 454 | ||
| 455 | static void save_signal_handlers (struct save_signal *); | 455 | static void save_signal_handlers (struct save_signal *); |
| @@ -608,7 +608,7 @@ save_signal_handlers (struct save_signal *saved_handlers) | |||
| 608 | while (saved_handlers->code) | 608 | while (saved_handlers->code) |
| 609 | { | 609 | { |
| 610 | saved_handlers->handler | 610 | saved_handlers->handler |
| 611 | = (SIGTYPE (*) (int)) signal (saved_handlers->code, SIG_IGN); | 611 | = (void (*) (int)) signal (saved_handlers->code, SIG_IGN); |
| 612 | saved_handlers++; | 612 | saved_handlers++; |
| 613 | } | 613 | } |
| 614 | } | 614 | } |
diff --git a/src/syssignal.h b/src/syssignal.h index 7b4070322d6..03768168e20 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -69,7 +69,7 @@ extern sigset_t sys_sigmask (); | |||
| 69 | 69 | ||
| 70 | /* Whether this is what all systems want or not, this is what | 70 | /* Whether this is what all systems want or not, this is what |
| 71 | appears to be assumed in the source, for example data.c:arith_error. */ | 71 | appears to be assumed in the source, for example data.c:arith_error. */ |
| 72 | typedef RETSIGTYPE (*signal_handler_t) (int); | 72 | typedef void (*signal_handler_t) (int); |
| 73 | 73 | ||
| 74 | signal_handler_t sys_signal (int signal_number, signal_handler_t action); | 74 | signal_handler_t sys_signal (int signal_number, signal_handler_t action); |
| 75 | sigset_t sys_sigblock (sigset_t new_mask); | 75 | sigset_t sys_sigblock (sigset_t new_mask); |
diff --git a/src/xterm.c b/src/xterm.c index f87c22912a4..0b18356b0a3 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -349,7 +349,7 @@ static int handle_one_xevent (struct x_display_info *, XEvent *, | |||
| 349 | int *, struct input_event *); | 349 | int *, struct input_event *); |
| 350 | /* Don't declare this NO_RETURN because we want no | 350 | /* Don't declare this NO_RETURN because we want no |
| 351 | interference with debugging failing X calls. */ | 351 | interference with debugging failing X calls. */ |
| 352 | static SIGTYPE x_connection_closed (Display *, const char *); | 352 | static void x_connection_closed (Display *, const char *); |
| 353 | 353 | ||
| 354 | 354 | ||
| 355 | /* Flush display of frame F, or of all frames if F is null. */ | 355 | /* Flush display of frame F, or of all frames if F is null. */ |
| @@ -7650,7 +7650,7 @@ x_trace_wire (void) | |||
| 7650 | SIGPIPE will fail, causing Xlib to invoke the X IO error handler, | 7650 | SIGPIPE will fail, causing Xlib to invoke the X IO error handler, |
| 7651 | which will do the appropriate cleanup for us. */ | 7651 | which will do the appropriate cleanup for us. */ |
| 7652 | 7652 | ||
| 7653 | static SIGTYPE | 7653 | static void |
| 7654 | x_connection_signal (int signalnum) /* If we don't have an argument, */ | 7654 | x_connection_signal (int signalnum) /* If we don't have an argument, */ |
| 7655 | /* some compilers complain in signal calls. */ | 7655 | /* some compilers complain in signal calls. */ |
| 7656 | { | 7656 | { |
| @@ -7673,7 +7673,7 @@ static char *error_msg; | |||
| 7673 | /* Handle the loss of connection to display DPY. ERROR_MESSAGE is | 7673 | /* Handle the loss of connection to display DPY. ERROR_MESSAGE is |
| 7674 | the text of an error message that lead to the connection loss. */ | 7674 | the text of an error message that lead to the connection loss. */ |
| 7675 | 7675 | ||
| 7676 | static SIGTYPE | 7676 | static void |
| 7677 | x_connection_closed (Display *dpy, const char *error_message) | 7677 | x_connection_closed (Display *dpy, const char *error_message) |
| 7678 | { | 7678 | { |
| 7679 | struct x_display_info *dpyinfo = x_display_info_for_display (dpy); | 7679 | struct x_display_info *dpyinfo = x_display_info_for_display (dpy); |