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 /src/process.c | |
| 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.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |