diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-25 19:49:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-25 19:49:45 +0200 |
commit | 6f8d2ac6f1f8a4b971a4c9b27f9250288198f3bb (patch) | |
tree | 025fa293ef53b277e566362cebb53ecded35c659 | |
parent | b6c8cd8dc3fbbe9da1180ce1b75f2252df2c1318 (diff) | |
download | vim-git-6f8d2ac6f1f8a4b971a4c9b27f9250288198f3bb.tar.gz |
patch 8.1.0210: still a few K&R function declarationsv8.1.0210
Problem: Still a few K&R function declarations.
Solution: Use ANSI function declarations (Hirohito Higashi)
-rw-r--r-- | src/eval.c | 3 | ||||
-rw-r--r-- | src/evalfunc.c | 8 | ||||
-rw-r--r-- | src/list.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
4 files changed, 6 insertions, 11 deletions
diff --git a/src/eval.c b/src/eval.c index 4423419b1..ef25a3fc9 100644 --- a/src/eval.c +++ b/src/eval.c @@ -9387,8 +9387,7 @@ typval_compare( } char_u * -typval_tostring(arg) - typval_T *arg; +typval_tostring(typval_T *arg) { char_u *tofree; char_u numbuf[NUMBUFLEN]; diff --git a/src/evalfunc.c b/src/evalfunc.c index 7d0f33aaa..97242f682 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2857,9 +2857,7 @@ f_delete(typval_T *argvars, typval_T *rettv) * "deletebufline()" function */ static void -f_deletebufline(argvars, rettv) - typval_T *argvars; - typval_T *rettv; +f_deletebufline(typval_T *argvars, typval_T *rettv) { buf_T *buf; linenr_T first, last; @@ -10502,9 +10500,7 @@ f_serverlist(typval_T *argvars UNUSED, typval_T *rettv) * "setbufline()" function */ static void -f_setbufline(argvars, rettv) - typval_T *argvars; - typval_T *rettv; +f_setbufline(typval_T *argvars, typval_T *rettv) { linenr_T lnum; buf_T *buf; diff --git a/src/list.c b/src/list.c index 1dfaa210e..9a348a8a6 100644 --- a/src/list.c +++ b/src/list.c @@ -479,9 +479,7 @@ list_append_dict(list_T *list, dict_T *dict) * Return FAIL when out of memory. */ int -list_append_list(list1, list2) - list_T *list1; - list_T *list2; +list_append_list(list_T *list1, list_T *list2) { listitem_T *li = listitem_alloc(); diff --git a/src/version.c b/src/version.c index 2db4044c3..456dc12ee 100644 --- a/src/version.c +++ b/src/version.c @@ -794,6 +794,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 210, +/**/ 209, /**/ 208, |