|
Karsten Hopp |
17c8ee |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
17c8ee |
Subject: Patch 7.3.733
|
|
Karsten Hopp |
17c8ee |
Fcc: outbox
|
|
Karsten Hopp |
17c8ee |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
17c8ee |
Mime-Version: 1.0
|
|
Karsten Hopp |
17c8ee |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
17c8ee |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
17c8ee |
------------
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
Patch 7.3.733
|
|
Karsten Hopp |
17c8ee |
Problem: Tests fail when including MzScheme.
|
|
Karsten Hopp |
17c8ee |
Solution: Change #ifdefs for vim_main2().
|
|
Karsten Hopp |
17c8ee |
Files: src/main.c
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
*** ../vim-7.3.732/src/main.c 2012-04-25 18:24:24.000000000 +0200
|
|
Karsten Hopp |
17c8ee |
--- src/main.c 2012-11-24 14:26:56.000000000 +0100
|
|
Karsten Hopp |
17c8ee |
***************
|
|
Karsten Hopp |
17c8ee |
*** 147,154 ****
|
|
Karsten Hopp |
17c8ee |
#define ME_INVALID_ARG 5
|
|
Karsten Hopp |
17c8ee |
};
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
- #ifndef NO_VIM_MAIN /* skip this for unittests */
|
|
Karsten Hopp |
17c8ee |
#ifndef PROTO /* don't want a prototype for main() */
|
|
Karsten Hopp |
17c8ee |
int
|
|
Karsten Hopp |
17c8ee |
# ifdef VIMDLL
|
|
Karsten Hopp |
17c8ee |
_export
|
|
Karsten Hopp |
17c8ee |
--- 147,154 ----
|
|
Karsten Hopp |
17c8ee |
#define ME_INVALID_ARG 5
|
|
Karsten Hopp |
17c8ee |
};
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
#ifndef PROTO /* don't want a prototype for main() */
|
|
Karsten Hopp |
17c8ee |
+ #ifndef NO_VIM_MAIN /* skip this for unittests */
|
|
Karsten Hopp |
17c8ee |
int
|
|
Karsten Hopp |
17c8ee |
# ifdef VIMDLL
|
|
Karsten Hopp |
17c8ee |
_export
|
|
Karsten Hopp |
17c8ee |
***************
|
|
Karsten Hopp |
17c8ee |
*** 570,584 ****
|
|
Karsten Hopp |
17c8ee |
return mzscheme_main(2, args);
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
! int vim_main2(int argc, char **argv)
|
|
Karsten Hopp |
17c8ee |
{
|
|
Karsten Hopp |
17c8ee |
char_u *fname = (char_u *)argv[0];
|
|
Karsten Hopp |
17c8ee |
mparm_T params;
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
memcpy(¶ms, argv[1], sizeof(params));
|
|
Karsten Hopp |
17c8ee |
#endif
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
/* Execute --cmd arguments. */
|
|
Karsten Hopp |
17c8ee |
exe_pre_commands(¶ms);
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
--- 570,596 ----
|
|
Karsten Hopp |
17c8ee |
return mzscheme_main(2, args);
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
+ #endif
|
|
Karsten Hopp |
17c8ee |
+ #endif /* NO_VIM_MAIN */
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
! /* vim_main2() needs to be produced when FEAT_MZSCHEME is defined even when
|
|
Karsten Hopp |
17c8ee |
! * NO_VIM_MAIN is defined. */
|
|
Karsten Hopp |
17c8ee |
! #ifdef FEAT_MZSCHEME
|
|
Karsten Hopp |
17c8ee |
! int
|
|
Karsten Hopp |
17c8ee |
! vim_main2(int argc UNUSED, char **argv UNUSED)
|
|
Karsten Hopp |
17c8ee |
{
|
|
Karsten Hopp |
17c8ee |
+ # ifndef NO_VIM_MAIN
|
|
Karsten Hopp |
17c8ee |
char_u *fname = (char_u *)argv[0];
|
|
Karsten Hopp |
17c8ee |
mparm_T params;
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
memcpy(¶ms, argv[1], sizeof(params));
|
|
Karsten Hopp |
17c8ee |
+ # else
|
|
Karsten Hopp |
17c8ee |
+ return 0;
|
|
Karsten Hopp |
17c8ee |
+ }
|
|
Karsten Hopp |
17c8ee |
+ # endif
|
|
Karsten Hopp |
17c8ee |
#endif
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
+ #ifndef NO_VIM_MAIN
|
|
Karsten Hopp |
17c8ee |
/* Execute --cmd arguments. */
|
|
Karsten Hopp |
17c8ee |
exe_pre_commands(¶ms);
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
***************
|
|
Karsten Hopp |
17c8ee |
*** 999,1006 ****
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
return 0;
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
- #endif /* PROTO */
|
|
Karsten Hopp |
17c8ee |
#endif /* NO_VIM_MAIN */
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
/*
|
|
Karsten Hopp |
17c8ee |
* Main loop: Execute Normal mode commands until exiting Vim.
|
|
Karsten Hopp |
17c8ee |
--- 1011,1018 ----
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
return 0;
|
|
Karsten Hopp |
17c8ee |
}
|
|
Karsten Hopp |
17c8ee |
#endif /* NO_VIM_MAIN */
|
|
Karsten Hopp |
17c8ee |
+ #endif /* PROTO */
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
/*
|
|
Karsten Hopp |
17c8ee |
* Main loop: Execute Normal mode commands until exiting Vim.
|
|
Karsten Hopp |
17c8ee |
*** ../vim-7.3.732/src/version.c 2012-11-28 15:37:46.000000000 +0100
|
|
Karsten Hopp |
17c8ee |
--- src/version.c 2012-11-28 15:54:07.000000000 +0100
|
|
Karsten Hopp |
17c8ee |
***************
|
|
Karsten Hopp |
17c8ee |
*** 727,728 ****
|
|
Karsten Hopp |
17c8ee |
--- 727,730 ----
|
|
Karsten Hopp |
17c8ee |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
17c8ee |
+ /**/
|
|
Karsten Hopp |
17c8ee |
+ 733,
|
|
Karsten Hopp |
17c8ee |
/**/
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
--
|
|
Karsten Hopp |
17c8ee |
From "know your smileys":
|
|
Karsten Hopp |
17c8ee |
:^[/ mean-smiley-with-cigarette
|
|
Karsten Hopp |
17c8ee |
|
|
Karsten Hopp |
17c8ee |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
17c8ee |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
17c8ee |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
17c8ee |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|