summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-23 17:14:41 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-23 17:14:41 +0200
commit5ec7414a1c0512832f60c17437d6374cbf4b08e9 (patch)
treeca51a39c49a9b833e8f4a480ea72ab7a6c6a0ee1
parent35fb6fbf727c72eb5987a1556bbba26dca14cc48 (diff)
downloadvim-5ec7414a1c0512832f60c17437d6374cbf4b08e9.zip
patch 8.1.0104: can't build without the +eval feature
Problem: Can't build without the +eval feature. Solution: Add #ifdef.
-rw-r--r--src/regexp_nfa.c6
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 5a69c81a4..b095b95dd 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 45f339bc9..e2ccc112e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -779,6 +779,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 104,
+/**/
103,
/**/
102,