]> granicus.if.org Git - vim/commitdiff
patch 8.2.2229: build failure without the +eval feature v8.2.2229
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Dec 2020 16:35:18 +0000 (17:35 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Dec 2020 16:35:18 +0000 (17:35 +0100)
Problem:    build failure without the +eval feature.
Solution:   Add #ifdef.

src/ex_docmd.c
src/version.c

index 5e90ad16a3f535b9bb32349ed893d93a2c1144f8..bb191b53cd96383ac24ffa4ac84a935b1420e555 100644 (file)
@@ -8633,7 +8633,9 @@ eval_vars(
        switch (spec_idx)
        {
        case SPEC_PERC:
+#ifdef FEAT_EVAL
                if (!in_vim9script() || src[1] != '%')
+#endif
                {
                    // '%': current file
                    if (curbuf->b_fname == NULL)
@@ -8648,9 +8650,11 @@ eval_vars(
                    }
                    break;
                }
+#ifdef FEAT_EVAL
                // "%%" alternate file
                off = 1;
                // FALLTHROUGH
+#endif
 
        case SPEC_HASH:         // '#' or "#99": alternate file
                if (off == 0 ? src[1] == '#' : src[2] == '%')
index 985e48e6b07932a1cc7ac0376738ec4098912615..adfaf50ebb1055b155721c181219f6b7944f80e2 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2229,
 /**/
     2228,
 /**/