Skip to content

Commit a97f2f1

Browse files
committed
updated for version 7.3.733
Problem: Tests fail when including MzScheme. Solution: Change #ifdefs for vim_main2().
1 parent c02d8f6 commit a97f2f1

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/main.c

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

src/version.c

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

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
733,
728730
/**/
729731
732,
730732
/**/

0 commit comments

Comments
 (0)