From: K.Kosako Date: Fri, 29 Mar 2019 11:06:26 +0000 (+0900) Subject: refactoring X-Git-Tag: v6.9.2_rc1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db86cd0037702d0dc54f2353c214af7b42b66cee;p=onig refactoring --- diff --git a/src/regparse.c b/src/regparse.c index b24b286..37f180e 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -4106,7 +4106,7 @@ typedef struct { static int -fetch_range_quantifier(UChar** src, UChar* end, PToken* tok, ScanEnv* env) +fetch_interval_quantifier(UChar** src, UChar* end, PToken* tok, ScanEnv* env) { int low, up, syn_allow, non_low = 0; int r = 0; @@ -5001,7 +5001,7 @@ fetch_token(PToken* tok, UChar** src, UChar* end, ScanEnv* env) case '{': if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_BRACE_INTERVAL)) break; - r = fetch_range_quantifier(&p, end, tok, env); + r = fetch_interval_quantifier(&p, end, tok, env); if (r < 0) return r; /* error */ if (r == 0) goto greedy_check2; else if (r == 2) { /* {n} */ @@ -5540,7 +5540,7 @@ fetch_token(PToken* tok, UChar** src, UChar* end, ScanEnv* env) case '{': if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_BRACE_INTERVAL)) break; - r = fetch_range_quantifier(&p, end, tok, env); + r = fetch_interval_quantifier(&p, end, tok, env); if (r < 0) return r; /* error */ if (r == 0) goto greedy_check2; else if (r == 2) { /* {n} */