diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-27 22:09:38 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-30 11:48:41 -0800 |
commit | 6a0435beea5b0c2006efb680eddbfae70c6e8489 (patch) | |
tree | 7e7ea5b692dd36debd811d693de127cdd6f98b15 /pad.c | |
parent | f5658c36d8be338cf8de02053d2905f99f1eaabf (diff) | |
download | perl-6a0435beea5b0c2006efb680eddbfae70c6e8489.tar.gz |
Use PADNAME rather than SV in pad.c:intro_my
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1469,7 +1469,7 @@ statements. U32 Perl_intro_my(pTHX) { - SV **svp; + PADNAME **svp; I32 i; U32 seq; @@ -1485,16 +1485,16 @@ Perl_intro_my(pTHX) svp = PadnamelistARRAY(PL_comppad_name); for (i = PL_min_intro_pending; i <= PL_max_intro_pending; i++) { - SV * const sv = svp[i]; + PADNAME * const sv = svp[i]; - if (sv && PadnameLEN(sv) && !SvFAKE(sv) + if (sv && PadnameLEN(sv) && !PadnameOUTER(sv) && COP_SEQ_RANGE_LOW(sv) == PERL_PADSEQ_INTRO) { COP_SEQ_RANGE_HIGH_set(sv, PERL_PADSEQ_INTRO); /* Don't know scope end yet. */ COP_SEQ_RANGE_LOW_set(sv, PL_cop_seqmax); DEBUG_Xv(PerlIO_printf(Perl_debug_log, "Pad intromy: %ld \"%s\", (%lu,%lu)\n", - (long)i, SvPVX_const(sv), + (long)i, PadnamePV(sv), (unsigned long)COP_SEQ_RANGE_LOW(sv), (unsigned long)COP_SEQ_RANGE_HIGH(sv)) ); |