summaryrefslogtreecommitdiff
path: root/mad
diff options
context:
space:
mode:
authorGerard Goossen <gerard@tty.nl>2007-04-19 17:31:27 +0200
committerDave Mitchell <davem@fdisolutions.com>2007-05-12 22:40:05 +0000
commit1b438339fe4a79ea019ab3758be0993b9b0b71df (patch)
tree7615c25834939c4e64b119a560c1009df4ae1ef8 /mad
parent12bd6ede29d13c215438daf78d15695e487886b0 (diff)
downloadperl-1b438339fe4a79ea019ab3758be0993b9b0b71df.tar.gz
Disable operator target setting for 'my' variables (OPpTARGET_MY)
when madskills is active. Remove the p55 code required for dealing with the optimized tree. Subject: [PATCH] disable operator with target my when madskills enabled Message-Id: <20070419133822.GG19244@ostwald> also: Remove the just remove madprop 'M' doc Message-ID: <20070419134549.GH19244@ostwald> p4raw-id: //depot/perl@31204
Diffstat (limited to 'mad')
-rwxr-xr-xmad/Nomad.pm23
1 files changed, 4 insertions, 19 deletions
diff --git a/mad/Nomad.pm b/mad/Nomad.pm
index 1378e7b6e7..c20d8b47c0 100755
--- a/mad/Nomad.pm
+++ b/mad/Nomad.pm
@@ -598,7 +598,6 @@ sub ast {
my @retval;
my @newkids;
- push @retval, $self->madness('M ox');
for my $kid (@{$$self{Kids}}) {
push @newkids, $kid->ast($self, @_);
}
@@ -615,7 +614,7 @@ package PLXML::baseop_unop;
sub ast {
my $self = shift;
- my @newkids = $self->madness('d M ox o (');
+ my @newkids = $self->madness('d o (');
if (exists $$self{Kids}) {
my $arg = $$self{Kids}[0];
@@ -632,8 +631,6 @@ sub ast {
my $self = shift;
my @newkids;
- push @newkids, $self->madness('M ox');
-
my $left = $$self{Kids}[0];
push @newkids, $left->ast($self, @_);
@@ -675,13 +672,9 @@ sub ast {
my $self = shift;
my @retval;
- my @before;
my @after;
- if (@before = $self->madness('M')) {
- push @before, $self->madness('ox'); # o is the function name
- }
if (@retval = $self->madness('X')) {
- push @before, $self->madness('o x');
+ my @before, $self->madness('o x');
return P5AST::listop->new(Kids => [@before,@retval]);
}
@@ -703,7 +696,7 @@ sub ast {
push @retval, @newkids;
push @retval, $self->madness('} ] )');
- return $self->newtype->new(Kids => [@before,@retval,@after]);
+ return $self->newtype->new(Kids => [@retval,@after]);
}
package PLXML::logop;
@@ -1858,10 +1851,6 @@ sub astnull {
my $self = shift;
my @newkids;
- my @before;
- if (@before = $self->madness('M')) {
- push @before, $self->madness('ox'); # o is the .
- }
my @after;
my $left = $$self{Kids}[0];
push @newkids, $left->ast($self, @_);
@@ -1878,10 +1867,6 @@ sub ast {
my $parent = $_[0];
my @newkids;
- my @before;
- if (@before = $self->madness('M')) {
- push @before, $self->madness('ox'); # o is the .
- }
my @after;
my $left = $$self{Kids}[0];
push @newkids, $left->ast($self, @_);
@@ -1891,7 +1876,7 @@ sub ast {
my $right = $$self{Kids}[1];
push @newkids, $right->ast($self, @_);
- return $self->newtype->new(Kids => [@before, @newkids, @after]);
+ return $self->newtype->new(Kids => [@newkids, @after]);
}
package PLXML::op_stringify;