summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-15 21:23:22 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-15 21:23:22 +0100
commitb7604cc19fa1db6a8182546bf662aa13d4574d7a (patch)
treeffe7fbd91b4a41762befb992d16751da60676622 /src/main.c
parent345efa013dc6d1754ba06e5596a26c48c9935937 (diff)
downloadvim-git-b7604cc19fa1db6a8182546bf662aa13d4574d7a.tar.gz
patch 7.4.1098v7.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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 584687eb6..d7723d2e3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1064,9 +1064,9 @@ vim_main2(int argc UNUSED, char **argv UNUSED)
* 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;