# HG changeset patch # User Bram Moolenaar # Date 1354114542 -3600 # Node ID 509e55bd4a3feeb651ea173cefcbd933f723d8b6 # Parent 291716c0d6c4bdfe66a74d5d72e3a1e4e7068f88 updated for version 7.3.733 Problem: Tests fail when including MzScheme. Solution: Change #ifdefs for vim_main2(). diff --git a/src/main.c b/src/main.c --- a/src/main.c +++ b/src/main.c @@ -147,8 +147,8 @@ static char *(main_errors[]) = #define ME_INVALID_ARG 5 }; +#ifndef PROTO /* don't want a prototype for main() */ #ifndef NO_VIM_MAIN /* skip this for unittests */ -#ifndef PROTO /* don't want a prototype for main() */ int # ifdef VIMDLL _export @@ -570,15 +570,27 @@ main return mzscheme_main(2, args); } } - -int vim_main2(int argc, char **argv) +#endif +#endif /* NO_VIM_MAIN */ + +/* vim_main2() needs to be produced when FEAT_MZSCHEME is defined even when + * NO_VIM_MAIN is defined. */ +#ifdef FEAT_MZSCHEME + int +vim_main2(int argc UNUSED, char **argv UNUSED) { +# ifndef NO_VIM_MAIN char_u *fname = (char_u *)argv[0]; mparm_T params; memcpy(¶ms, argv[1], sizeof(params)); +# else + return 0; +} +# endif #endif +#ifndef NO_VIM_MAIN /* Execute --cmd arguments. */ exe_pre_commands(¶ms); @@ -999,8 +1011,8 @@ int vim_main2(int argc, char **argv) return 0; } +#endif /* NO_VIM_MAIN */ #endif /* PROTO */ -#endif /* NO_VIM_MAIN */ /* * Main loop: Execute Normal mode commands until exiting Vim. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 733, +/**/ 732, /**/ 731,