File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ static char *(main_errors[]) =
147147#define ME_INVALID_ARG 5
148148};
149149
150- #ifndef NO_VIM_MAIN /* skip this for unittests */
151150#ifndef PROTO /* don't want a prototype for main() */
151+ #ifndef NO_VIM_MAIN /* skip this for unittests */
152152 int
153153# ifdef VIMDLL
154154_export
@@ -570,15 +570,27 @@ main
570570 return mzscheme_main (2 , args );
571571 }
572572}
573+ #endif
574+ #endif /* NO_VIM_MAIN */
573575
574- int vim_main2 (int argc , char * * argv )
576+ /* vim_main2() needs to be produced when FEAT_MZSCHEME is defined even when
577+ * NO_VIM_MAIN is defined. */
578+ #ifdef FEAT_MZSCHEME
579+ int
580+ vim_main2 (int argc UNUSED , char * * argv UNUSED )
575581{
582+ # ifndef NO_VIM_MAIN
576583 char_u * fname = (char_u * )argv [0 ];
577584 mparm_T params ;
578585
579586 memcpy (& params , argv [1 ], sizeof (params ));
587+ # else
588+ return 0 ;
589+ }
590+ # endif
580591#endif
581592
593+ #ifndef NO_VIM_MAIN
582594 /* Execute --cmd arguments. */
583595 exe_pre_commands (& params );
584596
@@ -999,8 +1011,8 @@ int vim_main2(int argc, char **argv)
9991011
10001012 return 0 ;
10011013}
1002- #endif /* PROTO */
10031014#endif /* NO_VIM_MAIN */
1015+ #endif /* PROTO */
10041016
10051017/*
10061018 * Main loop: Execute Normal mode commands until exiting Vim.
Original file line number Diff line number Diff line change @@ -725,6 +725,8 @@ static char *(features[]) =
725725
726726static int included_patches [] =
727727{ /* Add new patch number below this line */
728+ /**/
729+ 733 ,
728730/**/
729731 732 ,
730732/**/
You can’t perform that action at this time.
0 commit comments