summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-04 21:39:44 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-04 21:39:44 +0000
commit25a55bd7167f6c07d7f1a4edc143de02e6cd234e (patch)
treed5430edc2c0ceec9bc8162de4e1b513a5f330983 /pp.c
parent8a9c777e2c77e4986acca93933c193ed57804ec4 (diff)
downloadperl-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.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/pp.c b/pp.c
index a13c6a61f4..eb217d0603 100644
--- a/pp.c
+++ b/pp.c
@@ -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;