comparison runtime/tools/xcmdsrv_client.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 3fc0f57ecb91
children 33ba2adb6065
comparison
equal deleted inserted replaced
7806:eb2af74e899a 7807:1a5d34492798
27 #include <sys/poll.h> 27 #include <sys/poll.h>
28 #endif 28 #endif
29 #include <X11/Intrinsic.h> 29 #include <X11/Intrinsic.h>
30 #include <X11/Xatom.h> 30 #include <X11/Xatom.h>
31 31
32 #define __ARGS(x) x
33
34 /* Client API */ 32 /* Client API */
35 char * sendToVim __ARGS((Display *dpy, char *name, char *cmd, int asKeys, int *code)); 33 char * sendToVim(Display *dpy, char *name, char *cmd, int asKeys, int *code);
36 34
37 #ifdef MAIN 35 #ifdef MAIN
38 /* A sample program */ 36 /* A sample program */
39 main(int argc, char **argv) 37 main(int argc, char **argv)
40 { 38 {
68 66
69 /* 67 /*
70 * Forward declarations for procedures defined later in this file: 68 * Forward declarations for procedures defined later in this file:
71 */ 69 */
72 70
73 static int x_error_check __ARGS((Display *dpy, XErrorEvent *error_event)); 71 static int x_error_check(Display *dpy, XErrorEvent *error_event);
74 static int AppendPropCarefully __ARGS((Display *display, 72 static int AppendPropCarefully(Display *display,
75 Window window, Atom property, char *value, int length)); 73 Window window, Atom property, char *value, int length);
76 static Window LookupName __ARGS((Display *dpy, char *name, 74 static Window LookupName(Display *dpy, char *name,
77 int delete, char **loose)); 75 int delete, char **loose);
78 static int SendInit __ARGS((Display *dpy)); 76 static int SendInit(Display *dpy);
79 static char *SendEventProc __ARGS((Display *dpy, XEvent *eventPtr, 77 static char *SendEventProc(Display *dpy, XEvent *eventPtr,
80 int expect, int *code)); 78 int expect, int *code);
81 static int IsSerialName __ARGS((char *name)); 79 static int IsSerialName(char *name);
82 80
83 /* Private variables */ 81 /* Private variables */
84 static Atom registryProperty = None; 82 static Atom registryProperty = None;
85 static Atom commProperty = None; 83 static Atom commProperty = None;
86 static Window commWindow = None; 84 static Window commWindow = None;