diff options
author | Bram Moolenaar <bram@vim.org> | 2012-11-28 15:55:42 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2012-11-28 15:55:42 +0100 |
commit | 314aba1179b012bd7da2cd8d3c10a720820e14bc (patch) | |
tree | 4ce71b991bef8032bf7b02681019a071e1949773 | |
parent | da4198487f57f2ba0b364e26363e10514b46faad (diff) | |
download | vim-314aba1179b012bd7da2cd8d3c10a720820e14bc.tar.gz |
Problem: Tests fail when including MzScheme.
Solution: Change #ifdefs for vim_main2().
-rw-r--r-- | src/main.c | 18 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 17 insertions, 3 deletions
@@ -147,8 +147,8 @@ static char *(main_errors[]) = #define ME_INVALID_ARG 5 }; -#ifndef NO_VIM_MAIN /* skip this for unittests */ #ifndef PROTO /* don't want a prototype for main() */ +#ifndef NO_VIM_MAIN /* skip this for unittests */ int # ifdef VIMDLL _export @@ -570,15 +570,27 @@ main return mzscheme_main(2, args); } } +#endif +#endif /* NO_VIM_MAIN */ -int vim_main2(int argc, char **argv) +/* 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 /* PROTO */ #endif /* NO_VIM_MAIN */ +#endif /* PROTO */ /* * Main loop: Execute Normal mode commands until exiting Vim. diff --git a/src/version.c b/src/version.c index d537c377..3582fbc9 100644 --- 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, |