diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-11-05 01:36:17 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-11-05 01:36:17 +0000 |
commit | c960fc3b3086016b5cf3008030dd5aa01b2db20d (patch) | |
tree | 5f1a5837918aa2b472668295912d44b609ff04c1 /pp_ctl.c | |
parent | e5105eda9ec104fa4cd12906af09da2e3a0c3386 (diff) | |
download | perl-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.c | 50 |
1 files changed, 0 insertions, 50 deletions
@@ -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; |