]> granicus.if.org Git - vim/commitdiff
patch 8.2.1245: build failure in tiny version v8.2.1245
authorBram Moolenaar <Bram@vim.org>
Sun, 19 Jul 2020 14:32:09 +0000 (16:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 Jul 2020 14:32:09 +0000 (16:32 +0200)
Problem:    Build failure in tiny version.
Solution:   Add #ifdef.

src/scriptfile.c
src/version.c

index 55145733ec9df233008e2ed6002436da542a8701..ce269a1cd2ac270db75b60b2d3316ec8d9fe0620 100644 (file)
@@ -1768,8 +1768,11 @@ getsourceline(int c UNUSED, void *cookie, int indent UNUSED, int do_concat)
        if (sp->nextline != NULL
                && (*(p = skipwhite(sp->nextline)) == '\\'
                              || (p[0] == '"' && p[1] == '\\' && p[2] == ' ')
+#ifdef FEAT_EVAL
                              || (in_vim9script()
-                                 && (*p == NUL || vim9_comment_start(p)))))
+                                      && (*p == NUL || vim9_comment_start(p)))
+#endif
+                             ))
        {
            garray_T    ga;
 
@@ -1798,8 +1801,11 @@ getsourceline(int c UNUSED, void *cookie, int indent UNUSED, int do_concat)
                    ga_concat(&ga, p + 1);
                }
                else if (!(p[0] == '"' && p[1] == '\\' && p[2] == ' ')
+#ifdef FEAT_EVAL
                        && !(in_vim9script()
-                                     && (*p == NUL || vim9_comment_start(p))))
+                                      && (*p == NUL || vim9_comment_start(p)))
+#endif
+                       )
                    break;
                /* drop a # comment or "\ comment line */
            }
index c8dab652158890e9c6115a9cf4059e8b7e732ebc..24ce5e82ca8b15aa6898ca0d962fb1b7e9145597 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1245,
 /**/
     1244,
 /**/