diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-30 21:29:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-30 21:29:58 +0100 |
commit | b638a7be952544ceb03052c25b84224577a6494b (patch) | |
tree | 4a37ca954a03fba25f9e7a81b7f54cf23c1013cb /runtime | |
parent | 764b23c8fd3369cb05ae9122abf3ca16fec539d7 (diff) |
patch 7.4.1215v7.4.1215
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/doctags.c | 4 | ||||
-rw-r--r-- | runtime/tools/xcmdsrv_client.c | 54 |
2 files changed, 26 insertions, 32 deletions
diff --git a/runtime/doc/doctags.c b/runtime/doc/doctags.c index 9213dd9c1e..53bf33c1d9 100644 --- a/runtime/doc/doctags.c +++ b/runtime/doc/doctags.c @@ -14,9 +14,7 @@ #define LINELEN 200 int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { char line[LINELEN]; char *p1, *p2; diff --git a/runtime/tools/xcmdsrv_client.c b/runtime/tools/xcmdsrv_client.c index 88e8380776..c0a60d2164 100644 --- a/runtime/tools/xcmdsrv_client.c +++ b/runtime/tools/xcmdsrv_client.c @@ -94,12 +94,12 @@ static int got_x_error = FALSE; */ char * -sendToVim(dpy, name, cmd, asKeys, code) - Display *dpy; /* Where to send. */ - char *name; /* Where to send. */ - char *cmd; /* What to send. */ - int asKeys; /* Interpret as keystrokes or expr ? */ - int *code; /* Return code. 0 => OK */ +sendToVim( + Display *dpy, /* Where to send. */ + char *name, /* Where to send. */ + char *cmd, /* What to send. */ + int asKeys, /* Interpret as keystrokes or expr ? */ + int *code) /* Return code. 0 => OK */ { Window w; Atom *plist; @@ -245,8 +245,7 @@ sendToVim(dpy, name, cmd, asKeys, code) */ static int -SendInit(dpy) - Display *dpy; +SendInit(Display *dpy) { XErrorHandler old_handler; @@ -289,11 +288,11 @@ SendInit(dpy) */ static Window -LookupName(dpy, name, delete, loose) - Display *dpy; /* Display whose registry to check. */ - char *name; /* Name of an interpreter. */ - int delete; /* If non-zero, delete info about name. */ - char **loose; /* Do another search matching -999 if not found +LookupName( + Display *dpy, /* Display whose registry to check. */ + char *name, /* Name of an interpreter. */ + int delete, /* If non-zero, delete info about name. */ + char **loose) /* Do another search matching -999 if not found Return result here if a match is found */ { unsigned char *regProp, *entry; @@ -396,11 +395,11 @@ LookupName(dpy, name, delete, loose) } static char * -SendEventProc(dpy, eventPtr, expected, code) - Display *dpy; - XEvent *eventPtr; /* Information about event. */ - int expected; /* The one were waiting for */ - int *code; /* Return code. 0 => OK */ +SendEventProc( + Display *dpy, + XEvent *eventPtr, /* Information about event. */ + int expected, /* The one were waiting for */ + int *code) /* Return code. 0 => OK */ { unsigned char *propInfo; unsigned char *p; @@ -535,13 +534,13 @@ SendEventProc(dpy, eventPtr, expected, code) */ static int -AppendPropCarefully(dpy, window, property, value, length) - Display *dpy; /* Display on which to operate. */ - Window window; /* Window whose property is to +AppendPropCarefully( + Display *dpy, /* Display on which to operate. */ + Window window, /* Window whose property is to * be modified. */ - Atom property; /* Name of property. */ - char *value; /* Characters to append to property. */ - int length; /* How much to append */ + Atom property, /* Name of property. */ + char *value, /* Characters to append to property. */ + int length) /* How much to append */ { XErrorHandler old_handler; @@ -560,9 +559,7 @@ AppendPropCarefully(dpy, window, property, value, length) */ /* ARGSUSED */ static int -x_error_check(dpy, error_event) - Display *dpy; - XErrorEvent *error_event; +x_error_check(Display *dpy, XErrorEvent *error_event) { got_x_error = TRUE; return 0; @@ -573,8 +570,7 @@ x_error_check(dpy, error_event) * Actually just checks if the name ends in a digit. */ static int -IsSerialName(str) - char *str; +IsSerialName(char *str) { int len = strlen(str); |