guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/02: [libguile slog] Hardcode 'SIGRETTYPE' to 'void'


From: Thien-Thi Nguyen
Subject: [Guile-commits] 01/02: [libguile slog] Hardcode 'SIGRETTYPE' to 'void'
Date: Sun, 28 Feb 2021 17:12:57 -0500 (EST)

ttn pushed a commit to branch branch_release-1-8
in repository guile.

commit f07b5f84142684564386860dbe75b1aec787d5c9
Author: Thien-Thi Nguyen <ttn@gnu.org>
AuthorDate: Sun Feb 28 17:03:35 2021 -0500

    [libguile slog] Hardcode 'SIGRETTYPE' to 'void'
    
    * libguile/scmsigs.c (SIGRETTYPE): ...here,
    replacing nested conditional preprocessor expression.
---
 libguile/scmsigs.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index 14fb71d..c85545b 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -65,17 +65,11 @@
 
 
 
-/* SIGRETTYPE is the type that signal handlers return.  See <signal.h> */
+/* SIGRETTYPE is the type that signal handlers return.  See <signal.h>.
+   We used to use Autoconf macro 'AC_TYPE_SIGNAL' to define 'RETSIGTYPE',
+   and then define SIGRETTYPE to that, but that's no longer necessary.  */
 
-#ifdef RETSIGTYPE
-# define SIGRETTYPE RETSIGTYPE
-#else
-# ifdef STDC_HEADERS
-#  define SIGRETTYPE void
-# else
-#  define SIGRETTYPE int
-# endif
-#endif
+#define SIGRETTYPE void
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]