]> granicus.if.org Git - vim/commitdiff
patch 8.0.1319: can't build GUI on MS-Windows v8.0.1319
authorBram Moolenaar <Bram@vim.org>
Sun, 19 Nov 2017 19:13:05 +0000 (20:13 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 Nov 2017 19:13:05 +0000 (20:13 +0100)
Problem:    Can't build GUI on MS-Windows.
Solution:   Don't define the balloon_split() function in a GUI-only build.

runtime/doc/eval.txt
src/evalfunc.c
src/version.c

index 2ce6c48efcd89e95e30361c5dd0543ea24c0a06a..d753924df3c9861a96a58879dbc6ebf25ac70fe1 100644 (file)
@@ -2708,13 +2708,16 @@ balloon_show({expr})                                    *balloon_show()*
 
                When showing a balloon is not possible nothing happens, no
                error message.
-               {only available when compiled with the +balloon_eval feature}
+               {only available when compiled with the +balloon_eval or
+               +balloon_eval_term feature}
 
 balloon_split({msg})                                   *balloon_split()*
                Split {msg} into lines to be displayed in a balloon.  The
                splits are made for the current window size and optimize to
                show debugger output.
                Returns a |List| with the split lines.
+               {only available when compiled with the +balloon_eval_term
+               feature}
 
                                                        *browse()*
 browse({save}, {title}, {initdir}, {default})
index 77a4fc2c05e82ae0bd3e142cbbf8ddf410866f21..8d288e0dc5a36516ab144ea4d450aa5399c25723 100644 (file)
@@ -61,7 +61,9 @@ static void f_atan2(typval_T *argvars, typval_T *rettv);
 #endif
 #ifdef FEAT_BEVAL
 static void f_balloon_show(typval_T *argvars, typval_T *rettv);
+# if defined(FEAT_BEVAL_TERM)
 static void f_balloon_split(typval_T *argvars, typval_T *rettv);
+# endif
 #endif
 static void f_browse(typval_T *argvars, typval_T *rettv);
 static void f_browsedir(typval_T *argvars, typval_T *rettv);
@@ -495,7 +497,9 @@ static struct fst
 #endif
 #ifdef FEAT_BEVAL
     {"balloon_show",   1, 1, f_balloon_show},
+# if defined(FEAT_BEVAL_TERM)
     {"balloon_split",  1, 1, f_balloon_split},
+# endif
 #endif
     {"browse",         4, 4, f_browse},
     {"browsedir",      2, 2, f_browsedir},
@@ -1424,6 +1428,7 @@ f_balloon_show(typval_T *argvars, typval_T *rettv UNUSED)
     }
 }
 
+# if defined(FEAT_BEVAL_TERM)
     static void
 f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
 {
@@ -1444,6 +1449,7 @@ f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
        }
     }
 }
+# endif
 #endif
 
 /*
index 9896a7715908d244319caf75a96b44139b0bf1e5..2e52e806cf49ad98ec247bc817a56efddd294b62 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1319,
 /**/
     1318,
 /**/