Mercurial > vim
comparison src/os_unix.c @ 7807:1a5d34492798 v7.4.1200
commit https://github.com/vim/vim/commit/d99df423c559d85c17779b3685426c489554908c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 23:20:40 2016 +0100
patch 7.4.1200
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 23:30:06 +0100 |
parents | 0b6c37dd858d |
children | c079097365f3 |
comparison
equal
deleted
inserted
replaced
7806:eb2af74e899a | 7807:1a5d34492798 |
---|---|
107 # include <sys/consio.h> | 107 # include <sys/consio.h> |
108 # include <sys/fbio.h> | 108 # include <sys/fbio.h> |
109 | 109 |
110 static int sysmouse_open(void); | 110 static int sysmouse_open(void); |
111 static void sysmouse_close(void); | 111 static void sysmouse_close(void); |
112 static RETSIGTYPE sig_sysmouse __ARGS(SIGPROTOARG); | 112 static RETSIGTYPE sig_sysmouse SIGPROTOARG; |
113 #endif | 113 #endif |
114 | 114 |
115 /* | 115 /* |
116 * end of autoconf section. To be extended... | 116 * end of autoconf section. To be extended... |
117 */ | 117 */ |
188 #endif | 188 #endif |
189 | 189 |
190 static void handle_resize(void); | 190 static void handle_resize(void); |
191 | 191 |
192 #if defined(SIGWINCH) | 192 #if defined(SIGWINCH) |
193 static RETSIGTYPE sig_winch __ARGS(SIGPROTOARG); | 193 static RETSIGTYPE sig_winch SIGPROTOARG; |
194 #endif | 194 #endif |
195 #if defined(SIGINT) | 195 #if defined(SIGINT) |
196 static RETSIGTYPE catch_sigint __ARGS(SIGPROTOARG); | 196 static RETSIGTYPE catch_sigint SIGPROTOARG; |
197 #endif | 197 #endif |
198 #if defined(SIGPWR) | 198 #if defined(SIGPWR) |
199 static RETSIGTYPE catch_sigpwr __ARGS(SIGPROTOARG); | 199 static RETSIGTYPE catch_sigpwr SIGPROTOARG; |
200 #endif | 200 #endif |
201 #if defined(SIGALRM) && defined(FEAT_X11) \ | 201 #if defined(SIGALRM) && defined(FEAT_X11) \ |
202 && defined(FEAT_TITLE) && !defined(FEAT_GUI_GTK) | 202 && defined(FEAT_TITLE) && !defined(FEAT_GUI_GTK) |
203 # define SET_SIG_ALARM | 203 # define SET_SIG_ALARM |
204 static RETSIGTYPE sig_alarm __ARGS(SIGPROTOARG); | 204 static RETSIGTYPE sig_alarm SIGPROTOARG; |
205 /* volatile because it is used in signal handler sig_alarm(). */ | 205 /* volatile because it is used in signal handler sig_alarm(). */ |
206 static volatile int sig_alarm_called; | 206 static volatile int sig_alarm_called; |
207 #endif | 207 #endif |
208 static RETSIGTYPE deathtrap __ARGS(SIGPROTOARG); | 208 static RETSIGTYPE deathtrap SIGPROTOARG; |
209 | 209 |
210 static void catch_int_signal(void); | 210 static void catch_int_signal(void); |
211 static void set_signals(void); | 211 static void set_signals(void); |
212 static void catch_signals(RETSIGTYPE (*func_deadly)(), RETSIGTYPE (*func_other)()); | 212 static void catch_signals(RETSIGTYPE (*func_deadly)(), RETSIGTYPE (*func_other)()); |
213 #ifndef __EMX__ | 213 #ifndef __EMX__ |
1135 * See https://bugs.launchpad.net/bugs/291373 | 1135 * See https://bugs.launchpad.net/bugs/291373 |
1136 * | 1136 * |
1137 * volatile because it is used in signal handler sigcont_handler(). | 1137 * volatile because it is used in signal handler sigcont_handler(). |
1138 */ | 1138 */ |
1139 static volatile int sigcont_received; | 1139 static volatile int sigcont_received; |
1140 static RETSIGTYPE sigcont_handler __ARGS(SIGPROTOARG); | 1140 static RETSIGTYPE sigcont_handler SIGPROTOARG; |
1141 | 1141 |
1142 /* | 1142 /* |
1143 * signal handler for SIGCONT | 1143 * signal handler for SIGCONT |
1144 */ | 1144 */ |
1145 static RETSIGTYPE | 1145 static RETSIGTYPE |
6590 return; | 6590 return; |
6591 } | 6591 } |
6592 #endif /* FEAT_SYSMOUSE */ | 6592 #endif /* FEAT_SYSMOUSE */ |
6593 | 6593 |
6594 #if defined(FEAT_LIBCALL) || defined(PROTO) | 6594 #if defined(FEAT_LIBCALL) || defined(PROTO) |
6595 typedef char_u * (*STRPROCSTR)__ARGS((char_u *)); | 6595 typedef char_u * (*STRPROCSTR)(char_u *); |
6596 typedef char_u * (*INTPROCSTR)__ARGS((int)); | 6596 typedef char_u * (*INTPROCSTR)(int); |
6597 typedef int (*STRPROCINT)__ARGS((char_u *)); | 6597 typedef int (*STRPROCINT)(char_u *); |
6598 typedef int (*INTPROCINT)__ARGS((int)); | 6598 typedef int (*INTPROCINT)(int); |
6599 | 6599 |
6600 /* | 6600 /* |
6601 * Call a DLL routine which takes either a string or int param | 6601 * Call a DLL routine which takes either a string or int param |
6602 * and returns an allocated string. | 6602 * and returns an allocated string. |
6603 */ | 6603 */ |