diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-27 22:10:31 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-30 11:48:41 -0800 |
commit | 01b9977c9befe5459c20661a52da1e4310599b16 (patch) | |
tree | e7ebabc60ee56a07dfa4207c23b27e2a4690d086 /pad.c | |
parent | 6a0435beea5b0c2006efb680eddbfae70c6e8489 (diff) | |
download | perl-01b9977c9befe5459c20661a52da1e4310599b16.tar.gz |
Use PADNAME rather than SV in pad.c:pad_leavemy
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1530,24 +1530,24 @@ Perl_pad_leavemy(pTHX) ASSERT_CURPAD_ACTIVE("pad_leavemy"); if (PL_min_intro_pending && PL_comppad_name_fill < PL_min_intro_pending) { for (off = PL_max_intro_pending; off >= PL_min_intro_pending; off--) { - const SV * const sv = svp[off]; - if (sv && PadnameLEN(sv) && !SvFAKE(sv)) + const PADNAME * const name = svp[off]; + if (name && PadnameLEN(name) && !PadnameOUTER(name)) Perl_ck_warner_d(aTHX_ packWARN(WARN_INTERNAL), - "%"SVf" never introduced", - SVfARG(sv)); + "%"PNf" never introduced", + PNfARG(name)); } } /* "Deintroduce" my variables that are leaving with this scope. */ for (off = PadnamelistMAX(PL_comppad_name); off > PL_comppad_name_fill; off--) { - SV * const sv = svp[off]; - if (sv && PadnameLEN(sv) && !SvFAKE(sv) + PADNAME * const sv = svp[off]; + if (sv && PadnameLEN(sv) && !PadnameOUTER(sv) && COP_SEQ_RANGE_HIGH(sv) == PERL_PADSEQ_INTRO) { COP_SEQ_RANGE_HIGH_set(sv, PL_cop_seqmax); DEBUG_Xv(PerlIO_printf(Perl_debug_log, "Pad leavemy: %ld \"%s\", (%lu,%lu)\n", - (long)off, SvPVX_const(sv), + (long)off, PadnamePV(sv), (unsigned long)COP_SEQ_RANGE_LOW(sv), (unsigned long)COP_SEQ_RANGE_HIGH(sv)) ); |