diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-11-04 21:39:44 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-11-04 21:39:44 +0000 |
commit | 25a55bd7167f6c07d7f1a4edc143de02e6cd234e (patch) | |
tree | d5430edc2c0ceec9bc8162de4e1b513a5f330983 /pp.c | |
parent | 8a9c777e2c77e4986acca93933c193ed57804ec4 (diff) | |
download | perl-25a55bd7167f6c07d7f1a4edc143de02e6cd234e.tar.gz |
I barely knew ya pp_dor. Merged into pp_defined from whence you came.
This change has also caused pp_defined to be promoted to being a hot
op.
p4raw-id: //depot/perl@26004
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -722,36 +722,6 @@ PP(pp_chomp) RETURN; } -PP(pp_defined) -{ - dSP; - register SV* const sv = POPs; - - if (!sv || !SvANY(sv)) - RETPUSHNO; - switch (SvTYPE(sv)) { - case SVt_PVAV: - if (AvMAX(sv) >= 0 || SvGMAGICAL(sv) - || (SvRMAGICAL(sv) && mg_find(sv, PERL_MAGIC_tied))) - RETPUSHYES; - break; - case SVt_PVHV: - if (HvARRAY(sv) || SvGMAGICAL(sv) - || (SvRMAGICAL(sv) && mg_find(sv, PERL_MAGIC_tied))) - RETPUSHYES; - break; - case SVt_PVCV: - if (CvROOT(sv) || CvXSUB(sv)) - RETPUSHYES; - break; - default: - SvGETMAGIC(sv); - if (SvOK(sv)) - RETPUSHYES; - } - RETPUSHNO; -} - PP(pp_undef) { dSP; |