Patch 8.0.0540 (after 8.0.0540)
Problem:    Building unit tests fails.
Solution:   Move params outside of #ifdef.
Files:      src/main.c, src/message_test.c


*** ../vim-8.0.0539/src/main.c  2017-04-02 17:21:09.890069493 +0200
--- src/main.c  2017-04-02 18:04:03.257961554 +0200
***************
*** 89,103 ****
  };
  
  #ifndef PROTO         /* don't want a prototype for main() */
  #ifndef NO_VIM_MAIN   /* skip this for unittests */
  
  static char_u *start_dir = NULL;      /* current working dir on startup */
  
  static int has_dash_c_arg = FALSE;
  
- /* Various parameters passed between main() and other functions. */
- static mparm_T        params;
- 
      int
  # ifdef VIMDLL
  _export
--- 89,104 ----
  };
  
  #ifndef PROTO         /* don't want a prototype for main() */
+ 
+ /* Various parameters passed between main() and other functions. */
+ static mparm_T        params;
+ 
  #ifndef NO_VIM_MAIN   /* skip this for unittests */
  
  static char_u *start_dir = NULL;      /* current working dir on startup */
  
  static int has_dash_c_arg = FALSE;
  
      int
  # ifdef VIMDLL
  _export
*** ../vim-8.0.0539/src/message_test.c  2016-08-29 22:42:20.000000000 +0200
--- src/message_test.c  2017-04-02 18:08:20.140381578 +0200
***************
*** 96,103 ****
      int
  main(int argc, char **argv)
  {
-     mparm_T params;
- 
      vim_memset(&params, 0, sizeof(params));
      params.argc = argc;
      params.argv = argv;
--- 96,101 ----
*** ../vim-8.0.0539/src/version.c       2017-04-02 17:21:09.890069493 +0200
--- src/version.c       2017-04-02 18:04:56.925631563 +0200
***************
*** 766,767 ****
--- 766,769 ----
  {   /* Add new patch number below this line */
+ /**/
+     540,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
259. When you enter your name in the AltaVista search engine, the top ten
     matches do indeed refer to you.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui