Date:2012-03-21 03:13:35 (11 years 11 months ago)
Author:Werner Almesberger
Commit:079608ba6c8dff6203d164b58e914ff4e9db1e88
Message:cameo/zstack.pl: don't output lower layers at higher Z

We leave this to the designer :-)
Files: cameo/zstack.pl (2 diffs)

Change Details

cameo/zstack.pl
2222
2323sub issue
2424{
25    local ($z) = @_;
25    local ($c, $z) = @_;
2626    my $t;
2727
2828    #
2929    # The order here is a bit arbitrary. We sort to make the outcome
3030    # more predictable but it shouldn't really matter.
3131    #
32    for my $c (sort { $b <=> $a } grep { $_ <= $z } keys %z) {
33        ($t = $z{$c}) =~ s/\s+-?\d+(\.\d*)?$/ $z/mg;
34        print $t;
35    }
32
33    ($t = $z{$c}) =~ s/\s+-?\d+(\.\d*)?$/ $z/mg;
34    print $t;
3635}
3736
3837
...... 
7372for $c (sort { $b <=> $a } keys %z) {
7473    while ($z > $c+$zs) {
7574        $z -= $zs;
76        &issue($z);
75        &issue($c, $z);
7776    }
7877    $z = $c;
79    &issue($z);
78    &issue($c, $z);
8079}

Archive Download the corresponding diff file

Branches:
master



interactive