aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorGlenn Morris2011-03-26 19:27:11 -0700
committerGlenn Morris2011-03-26 19:27:11 -0700
commit9af30bdf17f8371664bc0c5854c91c2e46257b5e (patch)
treeef68d0a44cbdc312405a65101dbc5df41316c71a /src/process.c
parent7a097943f7d3433a5d053eee4b2f3254230fee64 (diff)
downloademacs-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.c8
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)
5470jmp_buf send_process_frame; 5470jmp_buf send_process_frame;
5471Lisp_Object process_sent_to; 5471Lisp_Object process_sent_to;
5472 5472
5473static SIGTYPE 5473static void
5474send_process_trap (int ignore) 5474send_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
6382static SIGTYPE 6382static void
6383sigchld_handler (int signo) 6383sigchld_handler (int signo)
6384{ 6384{
6385 int old_errno = errno; 6385 int old_errno = errno;