aboutsummaryrefslogtreecommitdiffstats
path: root/support/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-12-15 22:11:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-12-15 22:11:40 +0200
commit92d7c72c7e36c10f1274c79ed539490e6724feea (patch)
tree5422d54d44ee1361e1c14264270610f971999028 /support/dfa.c
parent87be181b99d7aae73e52b3b791597194c1e065c8 (diff)
parentdb47960210d3c56465b3658152f6c7981f6b5f82 (diff)
downloadegawk-92d7c72c7e36c10f1274c79ed539490e6724feea.tar.gz
egawk-92d7c72c7e36c10f1274c79ed539490e6724feea.tar.bz2
egawk-92d7c72c7e36c10f1274c79ed539490e6724feea.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'support/dfa.c')
-rw-r--r--support/dfa.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/support/dfa.c b/support/dfa.c
index 0f0a661e..612faa10 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -2687,11 +2687,11 @@ dfaanalyze (struct dfa *d, bool searchflag)
{
tmp.elems = firstpos - stk[-1].nfirstpos;
tmp.nelem = stk[-1].nfirstpos;
- position *pos = lastpos - stk[-1].nlastpos;
+ position *p = lastpos - stk[-1].nlastpos;
for (size_t j = 0; j < stk[-1].nlastpos; j++)
{
- merge (&tmp, &d->follows[pos[j].index], &merged);
- copy (&merged, &d->follows[pos[j].index]);
+ merge (&tmp, &d->follows[p[j].index], &merged);
+ copy (&merged, &d->follows[p[j].index]);
}
}
FALLTHROUGH;
@@ -2707,11 +2707,11 @@ dfaanalyze (struct dfa *d, bool searchflag)
{
tmp.nelem = stk[-1].nfirstpos;
tmp.elems = firstpos - stk[-1].nfirstpos;
- position *pos = lastpos - stk[-1].nlastpos - stk[-2].nlastpos;
+ position *p = lastpos - stk[-1].nlastpos - stk[-2].nlastpos;
for (size_t j = 0; j < stk[-2].nlastpos; j++)
{
- merge (&tmp, &d->follows[pos[j].index], &merged);
- copy (&merged, &d->follows[pos[j].index]);
+ merge (&tmp, &d->follows[p[j].index], &merged);
+ copy (&merged, &d->follows[p[j].index]);
}
}
@@ -2728,9 +2728,9 @@ dfaanalyze (struct dfa *d, bool searchflag)
stk[-2].nlastpos += stk[-1].nlastpos;
else
{
- position *pos = lastpos - stk[-1].nlastpos - stk[-2].nlastpos;
+ position *p = lastpos - stk[-1].nlastpos - stk[-2].nlastpos;
for (size_t j = 0; j < stk[-1].nlastpos; j++)
- pos[j] = pos[j + stk[-2].nlastpos];
+ p[j] = p[j + stk[-2].nlastpos];
lastpos -= stk[-2].nlastpos;
stk[-2].nlastpos = stk[-1].nlastpos;
}