mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
12
src/main.c
12
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;
|
||||
|
Reference in New Issue
Block a user