Skip to content

Commit 6f8d2ac

Browse files
committed
patch 8.1.0210: still a few K&R function declarations
Problem: Still a few K&R function declarations. Solution: Use ANSI function declarations (Hirohito Higashi)
1 parent b6c8cd8 commit 6f8d2ac

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/eval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9387,8 +9387,7 @@ typval_compare(
93879387
}
93889388

93899389
char_u *
9390-
typval_tostring(arg)
9391-
typval_T *arg;
9390+
typval_tostring(typval_T *arg)
93929391
{
93939392
char_u *tofree;
93949393
char_u numbuf[NUMBUFLEN];

src/evalfunc.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,9 +2857,7 @@ f_delete(typval_T *argvars, typval_T *rettv)
28572857
* "deletebufline()" function
28582858
*/
28592859
static void
2860-
f_deletebufline(argvars, rettv)
2861-
typval_T *argvars;
2862-
typval_T *rettv;
2860+
f_deletebufline(typval_T *argvars, typval_T *rettv)
28632861
{
28642862
buf_T *buf;
28652863
linenr_T first, last;
@@ -10502,9 +10500,7 @@ f_serverlist(typval_T *argvars UNUSED, typval_T *rettv)
1050210500
* "setbufline()" function
1050310501
*/
1050410502
static void
10505-
f_setbufline(argvars, rettv)
10506-
typval_T *argvars;
10507-
typval_T *rettv;
10503+
f_setbufline(typval_T *argvars, typval_T *rettv)
1050810504
{
1050910505
linenr_T lnum;
1051010506
buf_T *buf;

src/list.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ list_append_dict(list_T *list, dict_T *dict)
479479
* Return FAIL when out of memory.
480480
*/
481481
int
482-
list_append_list(list1, list2)
483-
list_T *list1;
484-
list_T *list2;
482+
list_append_list(list_T *list1, list_T *list2)
485483
{
486484
listitem_T *li = listitem_alloc();
487485

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ static char *(features[]) =
793793

794794
static int included_patches[] =
795795
{ /* Add new patch number below this line */
796+
/**/
797+
210,
796798
/**/
797799
209,
798800
/**/

0 commit comments

Comments
 (0)