diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-20 21:49:48 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-20 21:49:48 +0300 |
commit | ca8646e523f70435bccf5e582db8e54f87a07012 (patch) | |
tree | a7c5b9c20c678014e87341925ec52e4b8f412da1 | |
parent | 9e5b2c4106be2d9aaf98730a03e75d313cfa2e80 (diff) | |
download | egawk-ca8646e523f70435bccf5e582db8e54f87a07012.tar.gz egawk-ca8646e523f70435bccf5e582db8e54f87a07012.tar.bz2 egawk-ca8646e523f70435bccf5e582db8e54f87a07012.zip |
Sync with GNU grep.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2014-05-20 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c (dfaexec): Minor sync with GNU grep. + 2014-05-14 Arnold D. Robbins <arnold@skeeve.com> * custom.h (_GL_PURE): Move definition to here. Sigh. @@ -3478,7 +3478,7 @@ dfaexec (struct dfa *d, char const *begin, char *end, /* If the previous character was a newline, count it, and skip checking of multibyte character boundary until here. */ - if (p[-1] == eol) + if (p[-1] == eol && (char *) p != begin) { nlcount++; mbp = p; |