Patch 8.1.1287
Problem:    Cannot build with +eval but without +mouse.
Solution:   Add #ifdefs around f_test_setmouse(). (John Marriott)
Files:      src/evalfunc.c


*** ../vim-8.1.1286/src/evalfunc.c      2019-05-04 17:34:30.649353904 +0200
--- src/evalfunc.c      2019-05-07 16:26:12.666016796 +0200
***************
*** 456,462 ****
--- 456,464 ----
  #ifdef FEAT_GUI
  static void f_test_scrollbar(typval_T *argvars, typval_T *rettv);
  #endif
+ #ifdef FEAT_MOUSE
  static void f_test_setmouse(typval_T *argvars, typval_T *rettv);
+ #endif
  static void f_test_settime(typval_T *argvars, typval_T *rettv);
  #ifdef FEAT_FLOAT
  static void f_tan(typval_T *argvars, typval_T *rettv);
***************
*** 994,1000 ****
--- 996,1004 ----
  #ifdef FEAT_GUI
      {"test_scrollbar",        3, 3, f_test_scrollbar},
  #endif
+ #ifdef FEAT_MOUSE
      {"test_setmouse", 2, 2, f_test_setmouse},
+ #endif
      {"test_settime",  1, 1, f_test_settime},
  #ifdef FEAT_TIMERS
      {"timer_info",    0, 1, f_timer_info},
***************
*** 14499,14510 ****
--- 14503,14516 ----
  }
  #endif
  
+ #ifdef FEAT_MOUSE
      static void
  f_test_setmouse(typval_T *argvars, typval_T *rettv UNUSED)
  {
      mouse_row = (time_t)tv_get_number(&argvars[0]) - 1;
      mouse_col = (time_t)tv_get_number(&argvars[1]) - 1;
  }
+ #endif
  
      static void
  f_test_settime(typval_T *argvars, typval_T *rettv UNUSED)
*** ../vim-8.1.1286/src/version.c       2019-05-06 22:03:35.980968677 +0200
--- src/version.c       2019-05-07 16:27:41.221459201 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1287,
  /**/

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905071428.x47ESicC012207%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui