comparison src/evalfunc.c @ 12885:10cb5c3df3f5 v8.0.1319

patch 8.0.1319: can't build GUI on MS-Windows commit https://github.com/vim/vim/commit/669a828cdc1f019e7abda0e5e9b223d7897f06a8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 19 20:13:05 2017 +0100 patch 8.0.1319: can't build GUI on MS-Windows Problem: Can't build GUI on MS-Windows. Solution: Don't define the balloon_split() function in a GUI-only build.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Nov 2017 20:15:05 +0100
parents 058e93aee621
children 8ba2a921cd86
comparison
equal deleted inserted replaced
12884:60a00eeef369 12885:10cb5c3df3f5
59 static void f_atan(typval_T *argvars, typval_T *rettv); 59 static void f_atan(typval_T *argvars, typval_T *rettv);
60 static void f_atan2(typval_T *argvars, typval_T *rettv); 60 static void f_atan2(typval_T *argvars, typval_T *rettv);
61 #endif 61 #endif
62 #ifdef FEAT_BEVAL 62 #ifdef FEAT_BEVAL
63 static void f_balloon_show(typval_T *argvars, typval_T *rettv); 63 static void f_balloon_show(typval_T *argvars, typval_T *rettv);
64 # if defined(FEAT_BEVAL_TERM)
64 static void f_balloon_split(typval_T *argvars, typval_T *rettv); 65 static void f_balloon_split(typval_T *argvars, typval_T *rettv);
66 # endif
65 #endif 67 #endif
66 static void f_browse(typval_T *argvars, typval_T *rettv); 68 static void f_browse(typval_T *argvars, typval_T *rettv);
67 static void f_browsedir(typval_T *argvars, typval_T *rettv); 69 static void f_browsedir(typval_T *argvars, typval_T *rettv);
68 static void f_bufexists(typval_T *argvars, typval_T *rettv); 70 static void f_bufexists(typval_T *argvars, typval_T *rettv);
69 static void f_buflisted(typval_T *argvars, typval_T *rettv); 71 static void f_buflisted(typval_T *argvars, typval_T *rettv);
493 {"atan", 1, 1, f_atan}, 495 {"atan", 1, 1, f_atan},
494 {"atan2", 2, 2, f_atan2}, 496 {"atan2", 2, 2, f_atan2},
495 #endif 497 #endif
496 #ifdef FEAT_BEVAL 498 #ifdef FEAT_BEVAL
497 {"balloon_show", 1, 1, f_balloon_show}, 499 {"balloon_show", 1, 1, f_balloon_show},
500 # if defined(FEAT_BEVAL_TERM)
498 {"balloon_split", 1, 1, f_balloon_split}, 501 {"balloon_split", 1, 1, f_balloon_split},
502 # endif
499 #endif 503 #endif
500 {"browse", 4, 4, f_browse}, 504 {"browse", 4, 4, f_browse},
501 {"browsedir", 2, 2, f_browsedir}, 505 {"browsedir", 2, 2, f_browsedir},
502 {"bufexists", 1, 1, f_bufexists}, 506 {"bufexists", 1, 1, f_bufexists},
503 {"buffer_exists", 1, 1, f_bufexists}, /* obsolete */ 507 {"buffer_exists", 1, 1, f_bufexists}, /* obsolete */
1422 else 1426 else
1423 post_balloon(balloonEval, get_tv_string_chk(&argvars[0]), NULL); 1427 post_balloon(balloonEval, get_tv_string_chk(&argvars[0]), NULL);
1424 } 1428 }
1425 } 1429 }
1426 1430
1431 # if defined(FEAT_BEVAL_TERM)
1427 static void 1432 static void
1428 f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED) 1433 f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
1429 { 1434 {
1430 if (rettv_list_alloc(rettv) == OK) 1435 if (rettv_list_alloc(rettv) == OK)
1431 { 1436 {
1442 list_append_string(rettv->vval.v_list, array[i].pum_text, -1); 1447 list_append_string(rettv->vval.v_list, array[i].pum_text, -1);
1443 vim_free(array); 1448 vim_free(array);
1444 } 1449 }
1445 } 1450 }
1446 } 1451 }
1452 # endif
1447 #endif 1453 #endif
1448 1454
1449 /* 1455 /*
1450 * "browse(save, title, initdir, default)" function 1456 * "browse(save, title, initdir, default)" function
1451 */ 1457 */