Mercurial > vim
diff src/if_perlsfio.c @ 7823:bcef391c101c v7.4.1208
commit https://github.com/vim/vim/commit/68c2f638e65d914dc6e84eb7ce2624f08af525c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 17:24:07 2016 +0100
patch 7.4.1208
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jan 2016 17:30:04 +0100 |
parents | 3fc0f57ecb91 |
children | 4aead6a9b7a9 |
line wrap: on
line diff
--- a/src/if_perlsfio.c +++ b/src/if_perlsfio.c @@ -25,11 +25,11 @@ #define NIL(type) ((type)0) static int -sfvimwrite(f, buf, n, disc) - Sfio_t *f; /* stream involved */ - char *buf; /* buffer to read from */ - int n; /* number of bytes to write */ - Sfdisc_t *disc; /* discipline */ +sfvimwrite( + Sfio_t *f, /* stream involved */ + char *buf, /* buffer to read from */ + int n, /* number of bytes to write */ + Sfdisc_t *disc) /* discipline */ { char_u *str; @@ -47,7 +47,7 @@ sfvimwrite(f, buf, n, disc) * Create Vim discipline */ Sfdisc_t * -sfdcnewvim() +sfdcnewvim(void) { Sfdisc_t *disc;