os/os_defs.h cleanup: Remaining signal stuff

RETSIGTYPE, SIGRETURN, and SIGDEFARG are always defined the same, so
inline them for simplicity; SIGDUMMYARG, however, is unused, so remove
it.

Even if these things don't work on windows, the signal handler in
if_cscope.c is already wrapped with '#idef UNIX', as is its only call
site.

Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
Michael Reed
2015-08-26 13:27:05 -04:00
parent 3b99d8d0dd
commit 2d50a95601
3 changed files with 2 additions and 8 deletions

View File

@@ -1829,10 +1829,9 @@ static int cs_read_prompt(int i)
/*
* Used to catch and ignore SIGALRM below.
*/
static RETSIGTYPE
sig_handler SIGDEFARG(sigarg) {
static void sig_handler(int s) {
/* do nothing */
SIGRETURN;
return;
}
#endif