From 67ba4ceb06ca36e888c7e7a542244e00ec62a11e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 1 Feb 2019 10:09:22 +0200 Subject: Sync regexec.c with GNULIB. --- support/regexec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'support/regexec.c') diff --git a/support/regexec.c b/support/regexec.c index 35c7f715..084b1222 100644 --- a/support/regexec.c +++ b/support/regexec.c @@ -189,7 +189,7 @@ static reg_errcode_t extend_buffers (re_match_context_t *mctx, int min_len); We return 0 if we find a match and REG_NOMATCH if not. */ int -regexec (const regex_t *_Restrict_ preg, const char *_Restrict_ string, +regexec (const regex_t *__restrict preg, const char *__restrict string, size_t nmatch, regmatch_t pmatch[], int eflags) { reg_errcode_t err; @@ -232,8 +232,8 @@ __typeof__ (__regexec) __compat_regexec; int attribute_compat_text_section -__compat_regexec (const regex_t *_Restrict_ preg, - const char *_Restrict_ string, size_t nmatch, +__compat_regexec (const regex_t *__restrict preg, + const char *__restrict string, size_t nmatch, regmatch_t pmatch[], int eflags) { return regexec (preg, string, nmatch, pmatch, @@ -2209,7 +2209,7 @@ sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx, dfa->nexts[node_idx])) /* The node can't accept the "multi byte", or the destination was already thrown away, then the node - could't accept the current input "multi byte". */ + couldn't accept the current input "multi byte". */ naccepted = 0; /* Otherwise, it is sure that the node could accept 'naccepted' bytes input. */ -- cgit v1.2.3