comparison 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
comparison
equal deleted inserted replaced
7597:3012eaddb6b2 7598:1a528724f9d6
1062 * is closed. 1062 * is closed.
1063 * Also used to handle ":visual" command after ":global": execute Normal mode 1063 * Also used to handle ":visual" command after ":global": execute Normal mode
1064 * commands, return when entering Ex mode. "noexmode" is TRUE then. 1064 * commands, return when entering Ex mode. "noexmode" is TRUE then.
1065 */ 1065 */
1066 void 1066 void
1067 main_loop(cmdwin, noexmode) 1067 main_loop(
1068 int cmdwin; /* TRUE when working in the command-line window */ 1068 int cmdwin, /* TRUE when working in the command-line window */
1069 int noexmode; /* TRUE when return on entering Ex mode */ 1069 int noexmode) /* TRUE when return on entering Ex mode */
1070 { 1070 {
1071 oparg_T oa; /* operator arguments */ 1071 oparg_T oa; /* operator arguments */
1072 volatile int previous_got_int = FALSE; /* "got_int" was TRUE */ 1072 volatile int previous_got_int = FALSE; /* "got_int" was TRUE */
1073 #ifdef FEAT_CONCEAL 1073 #ifdef FEAT_CONCEAL
1074 /* these are static to avoid a compiler warning */ 1074 /* these are static to avoid a compiler warning */
1358 #if defined(USE_XSMP) || defined(FEAT_GUI_MSWIN) || defined(PROTO) 1358 #if defined(USE_XSMP) || defined(FEAT_GUI_MSWIN) || defined(PROTO)
1359 /* 1359 /*
1360 * Exit, but leave behind swap files for modified buffers. 1360 * Exit, but leave behind swap files for modified buffers.
1361 */ 1361 */
1362 void 1362 void
1363 getout_preserve_modified(exitval) 1363 getout_preserve_modified(int exitval)
1364 int exitval;
1365 { 1364 {
1366 # if defined(SIGHUP) && defined(SIG_IGN) 1365 # if defined(SIGHUP) && defined(SIG_IGN)
1367 /* Ignore SIGHUP, because a dropped connection causes a read error, which 1366 /* Ignore SIGHUP, because a dropped connection causes a read error, which
1368 * makes Vim exit and then handling SIGHUP causes various reentrance 1367 * makes Vim exit and then handling SIGHUP causes various reentrance
1369 * problems. */ 1368 * problems. */
1378 #endif 1377 #endif
1379 1378
1380 1379
1381 /* Exit properly */ 1380 /* Exit properly */
1382 void 1381 void
1383 getout(exitval) 1382 getout(int exitval)
1384 int exitval;
1385 { 1383 {
1386 #ifdef FEAT_AUTOCMD 1384 #ifdef FEAT_AUTOCMD
1387 buf_T *buf; 1385 buf_T *buf;
1388 win_T *wp; 1386 win_T *wp;
1389 tabpage_T *tp, *next_tp; 1387 tabpage_T *tp, *next_tp;