From 5444f878d049df1e2f69f06ad73ad9526ef3f838 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 4 Jul 2010 17:37:39 +0000 Subject: [PATCH] fix signal prototypes --- ChangeLog | 8 ++++++++ src/include/defines.h | 2 +- src/include/fteext.h | 8 ++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index afe6ae655..a71cdd90f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-07-04 Robert Larice + * src/include/defines.h : + for non MSC: use sighandler_t from + FIXME, should work for MSC as well, please check + + * src/include/fteext.h : + ansi function declarations (prototypes) for some signal functions + 2010-07-03 Robert Larice * src/frontend/evaluate.c , * src/include/fteparse.h : diff --git a/src/include/defines.h b/src/include/defines.h index 8984baad1..c37fb7aa0 100644 --- a/src/include/defines.h +++ b/src/include/defines.h @@ -115,7 +115,7 @@ #if defined(_MSC_VER) # define SIGNAL_FUNCTION RETSIGTYPE (*)(int) #else -# define SIGNAL_FUNCTION RETSIGTYPE (*)( ) +# define SIGNAL_FUNCTION sighandler_t #endif #endif diff --git a/src/include/fteext.h b/src/include/fteext.h index ab99b656a..975c2d705 100644 --- a/src/include/fteext.h +++ b/src/include/fteext.h @@ -412,10 +412,10 @@ extern char *cp_program; extern RETSIGTYPE ft_sigintr(void); extern RETSIGTYPE sigfloat(int sig, int code); extern RETSIGTYPE sigstop(void); -extern RETSIGTYPE sigill(); -extern RETSIGTYPE sigbus(); -extern RETSIGTYPE sigsegv(); -extern RETSIGTYPE sig_sys(); +extern RETSIGTYPE sigill(void); +extern RETSIGTYPE sigbus(void); +extern RETSIGTYPE sigsegv(void); +extern RETSIGTYPE sig_sys(void); extern int main(int argc, char **argv); /* spiceif.c & nutmegif.c */