mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
3b99d8d0dd
commit
2d50a95601
@ -51,8 +51,6 @@
|
||||
#cmakedefine HAVE_UTIME_H
|
||||
#cmakedefine HAVE_UTIMES
|
||||
#cmakedefine HAVE_WORKING_LIBINTL
|
||||
#define RETSIGTYPE void
|
||||
#define SIGRETURN return
|
||||
#cmakedefine UNIX
|
||||
#cmakedefine USE_FNAME_CASE
|
||||
#define USEMAN_S 1
|
||||
|
@ -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
|
||||
|
@ -13,9 +13,6 @@
|
||||
# include "nvim/os/unix_defs.h"
|
||||
#endif
|
||||
|
||||
#define SIGDEFARG(s) (int s)
|
||||
#define SIGDUMMYARG 0
|
||||
|
||||
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
|
||||
# define MAXNAMLEN DIRSIZ
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user