comparison src/if_xcmdsrv.c @ 7803:37c929c4a073 v7.4.1198

commit https://github.com/vim/vim/commit/92b8b2d307e34117f146319872010b0ccc9d2713 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 29 22:36:45 2016 +0100 patch 7.4.1198 Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jan 2016 22:45:06 +0100
parents ad57f5b5bd6c
children bcef391c101c
comparison
equal deleted inserted replaced
7802:d9180d8cfe40 7803:37c929c4a073
165 garray_T strings; 165 garray_T strings;
166 }; 166 };
167 static garray_T serverReply = { 0, 0, 0, 0, 0 }; 167 static garray_T serverReply = { 0, 0, 0, 0, 0 };
168 enum ServerReplyOp { SROP_Find, SROP_Add, SROP_Delete }; 168 enum ServerReplyOp { SROP_Find, SROP_Add, SROP_Delete };
169 169
170 typedef int (*EndCond) __ARGS((void *)); 170 typedef int (*EndCond)(void *);
171 171
172 struct x_cmdqueue 172 struct x_cmdqueue
173 { 173 {
174 char_u *propInfo; 174 char_u *propInfo;
175 long_u len; 175 long_u len;
184 184
185 /* 185 /*
186 * Forward declarations for procedures defined later in this file: 186 * Forward declarations for procedures defined later in this file:
187 */ 187 */
188 188
189 static Window LookupName __ARGS((Display *dpy, char_u *name, int delete, char_u **loose)); 189 static Window LookupName(Display *dpy, char_u *name, int delete, char_u **loose);
190 static int SendInit __ARGS((Display *dpy)); 190 static int SendInit(Display *dpy);
191 static int DoRegisterName __ARGS((Display *dpy, char_u *name)); 191 static int DoRegisterName(Display *dpy, char_u *name);
192 static void DeleteAnyLingerer __ARGS((Display *dpy, Window w)); 192 static void DeleteAnyLingerer(Display *dpy, Window w);
193 static int GetRegProp __ARGS((Display *dpy, char_u **regPropp, long_u *numItemsp, int domsg)); 193 static int GetRegProp(Display *dpy, char_u **regPropp, long_u *numItemsp, int domsg);
194 static int WaitForPend __ARGS((void *p)); 194 static int WaitForPend(void *p);
195 static int WaitForReply __ARGS((void *p)); 195 static int WaitForReply(void *p);
196 static int WindowValid __ARGS((Display *dpy, Window w)); 196 static int WindowValid(Display *dpy, Window w);
197 static void ServerWait __ARGS((Display *dpy, Window w, EndCond endCond, void *endData, int localLoop, int seconds)); 197 static void ServerWait(Display *dpy, Window w, EndCond endCond, void *endData, int localLoop, int seconds);
198 static struct ServerReply *ServerReplyFind __ARGS((Window w, enum ServerReplyOp op)); 198 static struct ServerReply *ServerReplyFind(Window w, enum ServerReplyOp op);
199 static int AppendPropCarefully __ARGS((Display *display, Window window, Atom property, char_u *value, int length)); 199 static int AppendPropCarefully(Display *display, Window window, Atom property, char_u *value, int length);
200 static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event)); 200 static int x_error_check(Display *dpy, XErrorEvent *error_event);
201 static int IsSerialName __ARGS((char_u *name)); 201 static int IsSerialName(char_u *name);
202 static void save_in_queue __ARGS((char_u *buf, long_u len)); 202 static void save_in_queue(char_u *buf, long_u len);
203 static void server_parse_message __ARGS((Display *dpy, char_u *propInfo, long_u numItems)); 203 static void server_parse_message(Display *dpy, char_u *propInfo, long_u numItems);
204 204
205 /* Private variables for the "server" functionality */ 205 /* Private variables for the "server" functionality */
206 static Atom registryProperty = None; 206 static Atom registryProperty = None;
207 static Atom vimProperty = None; 207 static Atom vimProperty = None;
208 static int got_x_error = FALSE; 208 static int got_x_error = FALSE;