aboutsummaryrefslogtreecommitdiffstats
path: root/support/regexec.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-03-24 21:21:42 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-03-24 21:21:42 +0200
commitaced49eee334d9905208cda470d1cb14393613a2 (patch)
tree8cc136604c66040ff95cf513e5333169cca226bb /support/regexec.c
parentfadddc026c7a3d9e664c65ff3f3895af9ba28359 (diff)
downloadegawk-aced49eee334d9905208cda470d1cb14393613a2.tar.gz
egawk-aced49eee334d9905208cda470d1cb14393613a2.tar.bz2
egawk-aced49eee334d9905208cda470d1cb14393613a2.zip
Sync support files from GNULIB.
Diffstat (limited to 'support/regexec.c')
-rw-r--r--support/regexec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/support/regexec.c b/support/regexec.c
index 084b1222..4ff30a79 100644
--- a/support/regexec.c
+++ b/support/regexec.c
@@ -2204,9 +2204,9 @@ sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx,
int naccepted;
/* Check the node can accept "multi byte". */
naccepted = check_node_accept_bytes (dfa, node_idx, &mctx->input, str_idx);
- if (naccepted > 0 && str_idx + naccepted <= max_str_idx &&
- !STATE_NODE_CONTAINS (sctx->sifted_states[str_idx + naccepted],
- dfa->nexts[node_idx]))
+ if (naccepted > 0 && str_idx + naccepted <= max_str_idx
+ && !STATE_NODE_CONTAINS (sctx->sifted_states[str_idx + naccepted],
+ dfa->nexts[node_idx]))
/* The node can't accept the "multi byte", or the
destination was already thrown away, then the node
couldn't accept the current input "multi byte". */
@@ -3782,10 +3782,10 @@ check_node_accept_bytes (const re_dfa_t *dfa, Idx node_idx,
/* FIXME: I don't think this if is needed, as both '\n'
and '\0' are char_len == 1. */
/* '.' accepts any one character except the following two cases. */
- if ((!(dfa->syntax & RE_DOT_NEWLINE) &&
- re_string_byte_at (input, str_idx) == '\n') ||
- ((dfa->syntax & RE_DOT_NOT_NULL) &&
- re_string_byte_at (input, str_idx) == '\0'))
+ if ((!(dfa->syntax & RE_DOT_NEWLINE)
+ && re_string_byte_at (input, str_idx) == '\n')
+ || ((dfa->syntax & RE_DOT_NOT_NULL)
+ && re_string_byte_at (input, str_idx) == '\0'))
return 0;
return char_len;
}