Skip to content

Commit

Permalink
regcomp.c: Replace RExC_parse += x with RExC_parse_inc_by(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
demerphq authored and khwilliamson committed Mar 4, 2022
1 parent e0702de commit 6808022
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions regcomp.c
Expand Up @@ -12297,7 +12297,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
"DEFINE"))
{
ret = reganode(pRExC_state, DEFINEP, 0);
RExC_parse += DEFINE_len;
RExC_parse_inc_by(DEFINE_len);
is_define = 1;
goto insert_if_check_paren;
}
Expand Down Expand Up @@ -13623,7 +13623,7 @@ S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state,
vFAIL("Invalid hexadecimal number in \\N{U+...}");
}

RExC_parse += len;
RExC_parse_inc_by(len);

if (cp > MAX_LEGAL_CP) {
vFAIL(form_cp_too_large_msg(16, start_digit, len, 0));
Expand Down Expand Up @@ -17950,7 +17950,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
value = utf8n_to_uvchr((U8*)RExC_parse,
RExC_end - RExC_parse,
&numlen, UTF8_ALLOW_DEFAULT);
RExC_parse += numlen;
RExC_parse_inc_by(numlen);
}
else {
value = UCHARAT(RExC_parse);
Expand Down Expand Up @@ -18014,7 +18014,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
value = utf8n_to_uvchr((U8*)RExC_parse,
RExC_end - RExC_parse,
&numlen, UTF8_ALLOW_DEFAULT);
RExC_parse += numlen;
RExC_parse_inc_by(numlen);
}
else {
value = UCHARAT(RExC_parse);
Expand Down Expand Up @@ -18421,7 +18421,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
| PERL_SCAN_NOTIFY_ILLDIGIT;
numlen = (strict) ? 4 : 3;
value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
RExC_parse += numlen;
RExC_parse_inc_by(numlen);
if (numlen != 3) {
if (strict) {
RExC_parse_inc_safe();
Expand Down

0 comments on commit 6808022

Please sign in to comment.