Skip to content

Commit 9e492c2

Browse files
committed
perly.y, op.c: PL_in_my is an enum (kind of), not a bool
1 parent 2b8cbf5 commit 9e492c2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

op.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,7 @@ S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
41424142
} else if (attrs) {
41434143
GV * const gv = cGVOPx_gv(cUNOPo->op_first);
41444144
assert(PL_parser);
4145-
PL_parser->in_my = FALSE;
4145+
PL_parser->in_my = KEY_NULL;
41464146
PL_parser->in_my_stash = NULL;
41474147
apply_attrs(GvSTASH(gv),
41484148
(type == OP_RV2SV ? GvSVn(gv) :
@@ -4175,7 +4175,7 @@ S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
41754175
HV *stash;
41764176

41774177
assert(PL_parser);
4178-
PL_parser->in_my = FALSE;
4178+
PL_parser->in_my = KEY_NULL;
41794179
PL_parser->in_my_stash = NULL;
41804180

41814181
/* check for C<my Dog $spot> when deciding package */
@@ -4233,7 +4233,7 @@ Perl_my_attrs(pTHX_ OP *o, OP *attrs)
42334233
o = op_append_list(OP_LIST, o, rops);
42344234
}
42354235
}
4236-
PL_parser->in_my = FALSE;
4236+
PL_parser->in_my = KEY_NULL;
42374237
PL_parser->in_my_stash = NULL;
42384238
return o;
42394239
}
@@ -4863,7 +4863,7 @@ Perl_localize(pTHX_ OP *o, I32 lex)
48634863
o = my(o);
48644864
else
48654865
o = op_lvalue(o, OP_NULL); /* a bit kludgey */
4866-
PL_parser->in_my = FALSE;
4866+
PL_parser->in_my = KEY_NULL;
48674867
PL_parser->in_my_stash = NULL;
48684868
return o;
48694869
}

perly.act

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

perly.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

perly.tab

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

perly.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ catch_paren: empty
289289
/* not really valid grammar but we detect it in the
290290
* action block to throw a nicer error message */
291291
| PERLY_PAREN_OPEN
292-
{ parser->in_my = 1; }
292+
{ parser->in_my = KEY_catch; }
293293
scalar
294294
{ parser->in_my = 0; intro_my(); }
295295
PERLY_PAREN_CLOSE

0 commit comments

Comments
 (0)