@@ -1692,7 +1692,7 @@ Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count,
1692
1692
1693
1693
RExC_seen = 0;
1694
1694
RExC_maxlen = 0;
1695
- RExC_in_lookaround = 0 ;
1695
+ RExC_in_lookaround = false ;
1696
1696
RExC_seen_zerolen = *exp == '^' ? -1 : 0;
1697
1697
RExC_recode_x_to_native = 0;
1698
1698
RExC_in_multi_char_class = 0;
@@ -2945,7 +2945,7 @@ S_handle_named_backref(pTHX_ RExC_state_t *pRExC_state,
2945
2945
* If the construct is empty generates a NOTHING op and returns its
2946
2946
* regnode_offset, which the caller would then return to its caller.
2947
2947
*
2948
- * If the construct is not empty increments RExC_in_lookaround, and turns
2948
+ * If the construct is not empty sets RExC_in_lookaround, and turns
2949
2949
* on any flags provided in RExC_seen, and then returns 0 to signify
2950
2950
* that parsing should continue.
2951
2951
*
@@ -2976,7 +2976,7 @@ S_reg_la_NOTHING(pTHX_ RExC_state_t *pRExC_state, U32 flags,
2976
2976
}
2977
2977
2978
2978
RExC_seen |= flags;
2979
- RExC_in_lookaround++ ;
2979
+ RExC_in_lookaround = true ;
2980
2980
return 0; /* keep parsing! */
2981
2981
}
2982
2982
@@ -2993,7 +2993,7 @@ S_reg_la_NOTHING(pTHX_ RExC_state_t *pRExC_state, U32 flags,
2993
2993
* If the construct is empty generates an OPFAIL op and returns its
2994
2994
* regnode_offset which the caller should then return to its caller.
2995
2995
*
2996
- * If the construct is not empty increments RExC_in_lookaround, and also
2996
+ * If the construct is not empty sets RExC_in_lookaround, and also
2997
2997
* increments RExC_seen_zerolen, and turns on the flags provided in
2998
2998
* RExC_seen, and then returns 0 to signify that parsing should continue.
2999
2999
*
@@ -3026,7 +3026,7 @@ S_reg_la_OPFAIL(pTHX_ RExC_state_t *pRExC_state, U32 flags,
3026
3026
* does not match ever. */
3027
3027
RExC_seen_zerolen++;
3028
3028
RExC_seen |= flags;
3029
- RExC_in_lookaround++ ;
3029
+ RExC_in_lookaround = true ;
3030
3030
return 0; /* keep parsing! */
3031
3031
}
3032
3032
@@ -3105,7 +3105,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
3105
3105
I32 after_freeze = 0;
3106
3106
I32 num; /* numeric backreferences */
3107
3107
SV * max_open; /* Max number of unclosed parens */
3108
- I32 was_in_lookaround = RExC_in_lookaround;
3108
+ bool was_in_lookaround = RExC_in_lookaround;
3109
3109
I32 fake_eval = 0; /* matches paren */
3110
3110
3111
3111
/* The difference between the following variables can be seen with *
@@ -3427,7 +3427,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
3427
3427
}
3428
3428
3429
3429
RExC_seen_zerolen++;
3430
- RExC_in_lookaround++ ;
3430
+ RExC_in_lookaround = true ;
3431
3431
RExC_seen |= seen_flag_set;
3432
3432
3433
3433
RExC_parse_set(start_arg);
0 commit comments