Skip to content

Commit 5d7ea5c

Browse files
committed
RExC_state_t: convert contains_locale to boolean
1 parent 2e4b163 commit 5d7ea5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regcomp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5901,7 +5901,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
59015901
RExC_seen_d_op = true;
59025902
}
59035903
else if (op == BOUNDL) {
5904-
RExC_contains_locale = 1;
5904+
RExC_contains_locale = true;
59055905
}
59065906

59075907
if (invert) {
@@ -6770,7 +6770,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
67706770
* existing node, so can start a new node with this one */
67716771
if (! len) {
67726772
node_type = EXACTFL;
6773-
RExC_contains_locale = 1;
6773+
RExC_contains_locale = true;
67746774
}
67756775
else if (node_type == EXACT) {
67766776
p = oldp;
@@ -11245,7 +11245,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
1124511245
}
1124611246

1124711247
if (anyof_flags & ANYOF_LOCALE_FLAGS) {
11248-
RExC_contains_locale = 1;
11248+
RExC_contains_locale = true;
1124911249
}
1125011250

1125111251
if (optimizable) {

regcomp_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct RExC_state_t {
141141
through */
142142
U32 study_chunk_recursed_bytes; /* bytes in bitmap */
143143
bool in_lookaround;
144-
I32 contains_locale;
144+
bool contains_locale;
145145
I32 recode_x_to_native;
146146
I32 in_multi_char_class;
147147
int code_index; /* next code_blocks[] slot */

0 commit comments

Comments
 (0)