]> granicus.if.org Git - vim/commitdiff
patch 8.1.0210: still a few K&R function declarations v8.1.0210
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Jul 2018 17:49:45 +0000 (19:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Jul 2018 17:49:45 +0000 (19:49 +0200)
Problem:    Still a few K&R function declarations.
Solution:   Use ANSI function declarations (Hirohito Higashi)

src/eval.c
src/evalfunc.c
src/list.c
src/version.c

index 4423419b17e858299ed1cd8564d06503c495038d..ef25a3fc9d62233e085a37fb57d212927622b4d3 100644 (file)
@@ -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];
index 7d0f33aaa02ebef595de0262b549ceef3e0f18eb..97242f682c79477ac89513cf24fef774819739c9 100644 (file)
@@ -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;
index 1dfaa210e6acd8dad9e872ad0efe9fb065ac5204..9a348a8a62b6b5f54e85b58a9ef28d73e1e71449 100644 (file)
@@ -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();
 
index 2db4044c3cc74d62e5baaa3484ad8f37f7dec804..456dc12ee6018d9461bf560916c6a0b7ff3fbaf8 100644 (file)
@@ -793,6 +793,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    210,
 /**/
     209,
 /**/