]> granicus.if.org Git - vim/commitdiff
patch 8.1.0104: can't build without the +eval feature v8.1.0104
authorBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 15:14:41 +0000 (17:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 23 Jun 2018 15:14:41 +0000 (17:14 +0200)
Problem:    Can't build without the +eval feature.
Solution:   Add #ifdef.

src/regexp_nfa.c
src/version.c

index 5a69c81a46ef7cf3f85703014d896519fbe9a3ab..b095b95dde4380e6f962e5028d590ecd47abc46c 100644 (file)
@@ -5693,7 +5693,11 @@ nfa_regmatch(
        nextlist->has_pim = FALSE;
        ++nfa_listid;
        if (prog->re_engine == AUTOMATIC_ENGINE
-               && (nfa_listid >= NFA_MAX_STATES || nfa_fail_for_testing))
+               && (nfa_listid >= NFA_MAX_STATES
+# ifdef FEAT_EVAL
+                   || nfa_fail_for_testing
+# endif
+                   ))
        {
            /* too many states, retry with old engine */
            nfa_match = NFA_TOO_EXPENSIVE;
index 45f339bc9baa8d6ed89b60e874df86e9fb7ca6cb..e2ccc112e7294569b4f064f1c765911912769ac5 100644 (file)
@@ -778,6 +778,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    104,
 /**/
     103,
 /**/