diff options
author | Daniel Dragan <bulk88@hotmail.com> | 2013-12-23 02:11:29 -0500 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-12-23 08:25:08 -0800 |
commit | e8f91c91cc7c3a4a35c08d16f350eabe4852cdf4 (patch) | |
tree | 5b7a8a4380ed25dc73dffc08887a74d0794e7925 /op.c | |
parent | 8c74b41425572faeb638f1269025b59d0785794f (diff) | |
download | perl-e8f91c91cc7c3a4a35c08d16f350eabe4852cdf4.tar.gz |
[perl #115736] fix undocumented param from newATTRSUB_flags
flags param was poorly designed and didn't have a formal api. Replace it
with the bool it really is. See #115736 for details.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -7645,15 +7645,10 @@ Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) return cv; } +/* _x = extended */ CV * -Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) -{ - return newATTRSUB_flags(floor, o, proto, attrs, block, 0); -} - -CV * -Perl_newATTRSUB_flags(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, - OP *block, U32 flags) +Perl_newATTRSUB_x(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, + OP *block, bool o_is_gv) { dVAR; GV *gv; @@ -7674,7 +7669,6 @@ Perl_newATTRSUB_flags(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, || PL_madskills) ? GV_ADDMULTI : GV_ADDMULTI | GV_NOINIT; STRLEN namlen = 0; - const bool o_is_gv = flags & 1; const char * const name = o ? SvPV_const(o_is_gv ? (SV *)o : cSVOPo->op_sv, namlen) : NULL; bool has_name; |