aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorGlenn Morris2011-03-26 19:27:11 -0700
committerGlenn Morris2011-03-26 19:27:11 -0700
commit9af30bdf17f8371664bc0c5854c91c2e46257b5e (patch)
treeef68d0a44cbdc312405a65101dbc5df41316c71a /lib-src
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 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/emacsclient.c6
2 files changed, 7 insertions, 3 deletions
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 @@
12011-03-27 Glenn Morris <rgm@gnu.org>
2
3 * emacsclient.c: Replace SIGTYPE with void.
4
12011-03-23 Juanma Barranquero <lekktu@gmail.com> 52011-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
1119static SIGTYPE 1119static void
1120pass_signal_to_emacs (int signalnum) 1120pass_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
1134static SIGTYPE 1134static void
1135handle_sigcont (int signalnum) 1135handle_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
1160static SIGTYPE 1160static void
1161handle_sigtstp (int signalnum) 1161handle_sigtstp (int signalnum)
1162{ 1162{
1163 int old_errno = errno; 1163 int old_errno = errno;