aboutsummaryrefslogtreecommitdiffstats
path: root/support/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-05-22 20:05:05 +0300
committerArnold D. Robbins <arnold@skeeve.com>2019-05-22 20:05:05 +0300
commit990649951e7fa34ae589a19ac686ffcc655d584b (patch)
tree70f8725186e548415c536ae8193fd55bb52968d9 /support/dfa.c
parent63dafc1ea7696ea3383f970fc7eabc5f939b56ae (diff)
downloadegawk-990649951e7fa34ae589a19ac686ffcc655d584b.tar.gz
egawk-990649951e7fa34ae589a19ac686ffcc655d584b.tar.bz2
egawk-990649951e7fa34ae589a19ac686ffcc655d584b.zip
Sync support files with GNULIB.
Diffstat (limited to 'support/dfa.c')
-rw-r--r--support/dfa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/dfa.c b/support/dfa.c
index 88c9a231..fec637a6 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -262,6 +262,7 @@ enum
comparisons to END. */
/* Ordinary character values are terminal symbols that match themselves. */
+
/* CSET must come last in the following list of special tokens. Otherwise,
the list order matters only for performance. Related special tokens
should have nearby values so that code like (t == ANYCHAR || t == MBCSET
@@ -301,9 +302,11 @@ enum
WCHAR, /* Only returned by lex. wctok contains
the wide character representation. */
+
ANYCHAR, /* ANYCHAR is a terminal symbol that matches
a valid multibyte (or single byte) character.
It is used only if MB_CUR_MAX > 1. */
+
BEG, /* BEG is an initial symbol that matches the
beginning of input. */
@@ -340,7 +343,6 @@ enum
MBCSET, /* MBCSET is similar to CSET, but for
multibyte characters. */
-
CSET /* CSET and (and any value greater) is a
terminal symbol that matches any of a
class of characters. */
@@ -2365,6 +2367,7 @@ charclass_context (struct dfa const *dfa, charclass const *c)
return context;
}
+
/* Returns the contexts on which the position set S depends. Each context
in the set of returned contexts (let's call it SC) may have a different
follow set than other contexts in SC, and also different from the
@@ -2837,7 +2840,6 @@ dfaanalyze (struct dfa *d, bool searchflag)
}
#endif
-
pos.index = 0;
pos.constraint = NO_CONSTRAINT;
@@ -3163,7 +3165,6 @@ build_state (state_num s, struct dfa *d, unsigned char uc)
/* Find the state(s) corresponding to the union of the follows. */
if (possible_contexts & ~separate_contexts)
state = state_index (d, &group, separate_contexts ^ CTX_ANY);
-
else
state = -1;
if (separate_contexts & possible_contexts & CTX_NEWLINE)