0
0
mirror of https://github.com/vim/vim.git synced 2025-10-15 07:14:09 -04:00

patch 8.1.1287: cannot build with +eval but without +mouse

Problem:    Cannot build with +eval but without +mouse.
Solution:   Add #ifdefs around f_test_setmouse(). (John Marriott)
This commit is contained in:
Bram Moolenaar
2019-05-07 16:28:13 +02:00
parent 4fa06870e5
commit 7e1a5af540
2 changed files with 8 additions and 0 deletions

View File

@@ -456,7 +456,9 @@ static void f_test_null_string(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_GUI #ifdef FEAT_GUI
static void f_test_scrollbar(typval_T *argvars, typval_T *rettv); static void f_test_scrollbar(typval_T *argvars, typval_T *rettv);
#endif #endif
#ifdef FEAT_MOUSE
static void f_test_setmouse(typval_T *argvars, typval_T *rettv); static void f_test_setmouse(typval_T *argvars, typval_T *rettv);
#endif
static void f_test_settime(typval_T *argvars, typval_T *rettv); static void f_test_settime(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_FLOAT #ifdef FEAT_FLOAT
static void f_tan(typval_T *argvars, typval_T *rettv); static void f_tan(typval_T *argvars, typval_T *rettv);
@@ -994,7 +996,9 @@ static struct fst
#ifdef FEAT_GUI #ifdef FEAT_GUI
{"test_scrollbar", 3, 3, f_test_scrollbar}, {"test_scrollbar", 3, 3, f_test_scrollbar},
#endif #endif
#ifdef FEAT_MOUSE
{"test_setmouse", 2, 2, f_test_setmouse}, {"test_setmouse", 2, 2, f_test_setmouse},
#endif
{"test_settime", 1, 1, f_test_settime}, {"test_settime", 1, 1, f_test_settime},
#ifdef FEAT_TIMERS #ifdef FEAT_TIMERS
{"timer_info", 0, 1, f_timer_info}, {"timer_info", 0, 1, f_timer_info},
@@ -14499,12 +14503,14 @@ f_test_scrollbar(typval_T *argvars, typval_T *rettv UNUSED)
} }
#endif #endif
#ifdef FEAT_MOUSE
static void static void
f_test_setmouse(typval_T *argvars, typval_T *rettv UNUSED) f_test_setmouse(typval_T *argvars, typval_T *rettv UNUSED)
{ {
mouse_row = (time_t)tv_get_number(&argvars[0]) - 1; mouse_row = (time_t)tv_get_number(&argvars[0]) - 1;
mouse_col = (time_t)tv_get_number(&argvars[1]) - 1; mouse_col = (time_t)tv_get_number(&argvars[1]) - 1;
} }
#endif
static void static void
f_test_settime(typval_T *argvars, typval_T *rettv UNUSED) f_test_settime(typval_T *argvars, typval_T *rettv UNUSED)

View File

@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1287,
/**/ /**/
1286, 1286,
/**/ /**/