summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-06-25 00:39:57 -0500
committerJesse Luehrs <doy@tozt.net>2012-06-25 00:39:57 -0500
commit8b8c1fb9779eab465a6534a30b7fc39eb32855b7 (patch)
tree37a1dde60edea9ebb3765bfbe715c63de217253a /op.c
parent722672602582e96e420517be5b2757afb60fc1b2 (diff)
downloadperl-8b8c1fb9779eab465a6534a30b7fc39eb32855b7.tar.gz
allow "my ()" [perl #113554]
it looks like this was an unrelated bugfix during development of mad, but which was merged into core with #ifdef PERL_MAD just because it was a change from the existing perl code... i don't see any reason why this should have been ifdef'd out to begin with
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/op.c b/op.c
index 5756eeb302..a93a458e10 100644
--- a/op.c
+++ b/op.c
@@ -2472,11 +2472,7 @@ S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
for (kid = cLISTOPo->op_first; kid; kid = kid->op_sibling)
my_kid(kid, attrs, imopsp);
return o;
- } else if (type == OP_UNDEF
-#ifdef PERL_MAD
- || type == OP_STUB
-#endif
- ) {
+ } else if (type == OP_UNDEF || type == OP_STUB) {
return o;
} else if (type == OP_RV2SV || /* "our" declaration */
type == OP_RV2AV ||