1
0
forked from aniani/vim

patch 7.4.2176

Problem:    #ifdefs in main() are complicated.
Solution:   Always define vim_main2().  Move params to the file level.
            (suggested by Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-08-07 15:19:26 +02:00
parent 812ad4f3a2
commit a8e691d449
6 changed files with 45 additions and 52 deletions

View File

@@ -2439,10 +2439,8 @@ typedef enum
#define JSON_JS 1 /* use JS instead of JSON */
#define JSON_NO_NONE 2 /* v:none item not allowed */
#ifdef FEAT_MZSCHEME
/* this is in main.c, cproto can't handle it. */
int vim_main2(int argc, char **argv);
#endif
/* This is in main.c, cproto can't handle it. */
int vim_main2(void);
/* Used for flags of do_in_path() */
#define DIP_ALL 0x01 /* all matches, not just the first one */