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.
diff --git a/src/main.c b/src/main.c
index 584687e..d7723d2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1064,9 +1064,9 @@
* 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 @@
* 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 @@
/* Exit properly */
void
-getout(exitval)
- int exitval;
+getout(int exitval)
{
#ifdef FEAT_AUTOCMD
buf_T *buf;