Skip to content

Commit a357e44

Browse files
committed
patch 7.4.2191
Problem: No automatic prototype for vim_main2(). Solution: Move the #endif. (Ken Takata)
1 parent 50fa8dd commit a357e44

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ main
416416
#endif
417417
}
418418
#endif /* NO_VIM_MAIN */
419+
#endif /* PROTO */
419420

420421
/*
421422
* vim_main2() is needed for FEAT_MZSCHEME, but we define it always to keep
@@ -879,7 +880,6 @@ vim_main2(void)
879880

880881
return 0;
881882
}
882-
#endif /* PROTO */
883883

884884
/*
885885
* Initialisation shared by main() and some tests.

src/proto/main.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* main.c */
2-
void common_init(mparm_T *params);
2+
int vim_main2(void);
3+
void common_init(mparm_T *paramp);
34
void main_loop(int cmdwin, int noexmode);
45
void getout_preserve_modified(int exitval);
56
void getout(int exitval);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2191,
766768
/**/
767769
2190,
768770
/**/

src/vim.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,9 +2440,6 @@ typedef enum
24402440
#define JSON_JS 1 /* use JS instead of JSON */
24412441
#define JSON_NO_NONE 2 /* v:none item not allowed */
24422442

2443-
/* This is in main.c, cproto can't handle it. */
2444-
int vim_main2(void);
2445-
24462443
/* Used for flags of do_in_path() */
24472444
#define DIP_ALL 0x01 /* all matches, not just the first one */
24482445
#define DIP_DIR 0x02 /* find directories instead of files. */

0 commit comments

Comments
 (0)