Mercurial > vim
diff src/main.c @ 7598:1a528724f9d6 v7.4.1098
commit https://github.com/vim/vim/commit/b7604cc19fa1db6a8182546bf662aa13d4574d7a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 15 21:23:22 2016 +0100
patch 7.4.1098
Problem: Still using old style C function declarations.
Solution: Always define __ARGS() to include types. Turn a few functions
into ANSI style to find out if this causes problems for anyone.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Jan 2016 21:30:05 +0100 |
parents | 08e62c4fc17d |
children | 4456fa2d22e8 |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1064,9 +1064,9 @@ vim_main2(int argc UNUSED, char **argv U * commands, return when entering Ex mode. "noexmode" is TRUE then. */ void -main_loop(cmdwin, noexmode) - int cmdwin; /* TRUE when working in the command-line window */ - int noexmode; /* TRUE when return on entering Ex mode */ +main_loop( + int cmdwin, /* TRUE when working in the command-line window */ + int noexmode) /* TRUE when return on entering Ex mode */ { oparg_T oa; /* operator arguments */ volatile int previous_got_int = FALSE; /* "got_int" was TRUE */ @@ -1360,8 +1360,7 @@ main_loop(cmdwin, noexmode) * Exit, but leave behind swap files for modified buffers. */ void -getout_preserve_modified(exitval) - int exitval; +getout_preserve_modified(int exitval) { # if defined(SIGHUP) && defined(SIG_IGN) /* Ignore SIGHUP, because a dropped connection causes a read error, which @@ -1380,8 +1379,7 @@ getout_preserve_modified(exitval) /* Exit properly */ void -getout(exitval) - int exitval; +getout(int exitval) { #ifdef FEAT_AUTOCMD buf_T *buf;