diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:29:21 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:29:21 +0200 |
commit | 68754e0678e84a30f6ce996cc8550d5bb9b8f5f0 (patch) | |
tree | 6d5fe77912fbf5c1ef4099b8bafef54dca0ec16c | |
parent | 1b66a15c2eec9b48008e018e526b333cdeb56338 (diff) | |
parent | 0dd8054d05d8286f2f7cbcf85456c6953a9b6146 (diff) | |
download | egawk-68754e0678e84a30f6ce996cc8550d5bb9b8f5f0.tar.gz egawk-68754e0678e84a30f6ce996cc8550d5bb9b8f5f0.tar.bz2 egawk-68754e0678e84a30f6ce996cc8550d5bb9b8f5f0.zip |
Merge branch 'master' into feature/regex-to-api
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2016-11-30 Arnold D. Robbins <arnold@skeeve.com> + * dfa.c: Sync with fixes in GNULIB. + + Unrelated: + * gawkapi.h (make_regex): New function. 2016-11-29 Arnold D. Robbins <arnold@skeeve.com> @@ -2652,6 +2652,12 @@ dfastate (state_num s, struct dfa *d, unsigned char uc, state_num trans[]) continue; if (j == CHARCLASS_WORDS) continue; + + /* If we have reset the bit that made us declare "matched", reset + that indicator, too. This is required to avoid an infinite loop + with this command: echo cx | LC_ALL=C grep -E 'c\b[x ]' */ + if (!tstbit (uc, matches)) + matched = false; } #ifdef DEBUG |