diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:28:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:28:14 +0200 |
commit | 5d3bfc0b70ddb25e486c05a1354038c4e7b2a030 (patch) | |
tree | 26218824b6788c5a467e88893c0979fb3d46415d | |
parent | 5b481a85111b33d9430b7f4c63474709ffbd0fab (diff) | |
parent | 0dd8054d05d8286f2f7cbcf85456c6953a9b6146 (diff) | |
download | egawk-5d3bfc0b70ddb25e486c05a1354038c4e7b2a030.tar.gz egawk-5d3bfc0b70ddb25e486c05a1354038c4e7b2a030.tar.bz2 egawk-5d3bfc0b70ddb25e486c05a1354038c4e7b2a030.zip |
Merge branch 'master' into feature/fix-comments
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2016-11-30 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c: Sync with fixes in GNULIB. + 2016-11-29 Arnold D. Robbins <arnold@skeeve.com> Remove redundant flag from dfa: @@ -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 |