summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-05 01:36:17 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-05 01:36:17 +0000
commitc960fc3b3086016b5cf3008030dd5aa01b2db20d (patch)
tree5f1a5837918aa2b472668295912d44b609ff04c1 /pp_ctl.c
parente5105eda9ec104fa4cd12906af09da2e3a0c3386 (diff)
downloadperl-c960fc3b3086016b5cf3008030dd5aa01b2db20d.tar.gz
Merge pp_andassign, pp_orassign, and pp_dorassign into pp_and,
pp_or, and pp_defined, respectively. p4raw-id: //depot/perl@26007
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index cfefefdaf2..4587219367 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1490,56 +1490,6 @@ PP(pp_xor)
RETSETNO;
}
-PP(pp_andassign)
-{
- dSP;
- if (!SvTRUE(TOPs))
- RETURN;
- else
- RETURNOP(cLOGOP->op_other);
-}
-
-PP(pp_orassign)
-{
- dSP;
- if (SvTRUE(TOPs))
- RETURN;
- else
- RETURNOP(cLOGOP->op_other);
-}
-
-PP(pp_dorassign)
-{
- dSP;
- register SV* sv;
-
- sv = TOPs;
- if (!sv || !SvANY(sv)) {
- RETURNOP(cLOGOP->op_other);
- }
-
- switch (SvTYPE(sv)) {
- case SVt_PVAV:
- if (AvMAX(sv) >= 0 || SvGMAGICAL(sv) || (SvRMAGICAL(sv) && mg_find(sv, PERL_MAGIC_tied)))
- RETURN;
- break;
- case SVt_PVHV:
- if (HvARRAY(sv) || SvGMAGICAL(sv) || (SvRMAGICAL(sv) && mg_find(sv, PERL_MAGIC_tied)))
- RETURN;
- break;
- case SVt_PVCV:
- if (CvROOT(sv) || CvXSUB(sv))
- RETURN;
- break;
- default:
- SvGETMAGIC(sv);
- if (SvOK(sv))
- RETURN;
- }
-
- RETURNOP(cLOGOP->op_other);
-}
-
PP(pp_caller)
{
dSP;