[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-535
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-535-g4518d0d |
Date: |
Wed, 10 Dec 2014 20:12:36 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.1-stable has been updated
via 4518d0d3c80d8c616a8a7f65548fde4866495289 (commit)
from 4ec42f2201d6d15be74de5d6d34b1baa614a2e9f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=4518d0d3c80d8c616a8a7f65548fde4866495289
commit 4518d0d3c80d8c616a8a7f65548fde4866495289
Author: Arnold D. Robbins <address@hidden>
Date: Wed Dec 10 22:12:26 2014 +0200
Sync dfa.c with grep.
diff --git a/ChangeLog b/ChangeLog
index 5dc7904..fdb550a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-10 Arnold D. Robbins <address@hidden>
+
+ * dfa.c: Sync with GNU grep.
+
2014-11-26 Arnold D. Robbins <address@hidden>
* builtin.c (do_sub): Improve wording of gensub warnings.
diff --git a/dfa.c b/dfa.c
index 66136ce..2ea37b5 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3496,13 +3496,23 @@ dfaexec_main (struct dfa *d, char const *begin, char
*end,
}
}
- if ((char *) p > end)
+ if (s < 0)
{
- p = NULL;
- goto done;
+ if ((char *) p > end || p[-1] != eol || d->newlines[s1] < 0)
+ {
+ p = NULL;
+ goto done;
+ }
+
+ /* The previous character was a newline, count it, and skip
+ checking of multibyte character boundary until here. */
+ nlcount++;
+ mbp = p;
+
+ s = allow_nl ? d->newlines[s1] : 0;
}
- if (s >= 0 && d->fails[s])
+ if (d->fails[s])
{
if (d->success[s] & sbit[*p])
{
@@ -3516,32 +3526,13 @@ dfaexec_main (struct dfa *d, char const *begin, char
*end,
State_transition();
else
s = d->fails[s][*p++];
- continue;
- }
-
- /* If the previous character was a newline, count it, and skip
- checking of multibyte character boundary until here. */
- if (p[-1] == eol)
- {
- nlcount++;
- mbp = p;
}
-
- if (s >= 0)
+ else
{
if (!d->trans[s])
build_state (s, d);
trans = d->trans;
- continue;
}
-
- if (p[-1] == eol && allow_nl)
- {
- s = d->newlines[s1];
- continue;
- }
-
- s = 0;
}
done:
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
dfa.c | 39 +++++++++++++++------------------------
2 files changed, 19 insertions(+), 24 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-535-g4518d0d,
Arnold Robbins <=