Changeset 22858 for src

Show
Ignore:
Timestamp:
11/03/08 17:18:40 (2 months ago)
Author:
lwall
Message:

[tryfile] allow files specified by stdin, with knowledge of svn output
[STD] don't need inaccurate $COMPILING::LINE anymore

Location:
src/perl6
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/STD.pm

    r22848 r22858  
    511511    :dba('vertical whitespace') 
    512512    \v 
    513     { $COMPILING::LINE++ } # XXX wrong several ways, use self.lineof($¢.pos) 
    514513    [ '#DEBUG -1' { say "DEBUG"; $STD::DEBUG = $*DEBUG = -1; } ]? 
    515514} 
     
    19741973                            if $ch ~~ "\n" { 
    19751974                                $multiline++; 
    1976                                 $COMPILING::LINE++; # bypasses <vws> 
    19771975                            } 
    19781976                        }} 
  • src/perl6/tryfile

    r22853 r22858  
    55use YAML::XS; 
    66use Encode; 
     7 
     8if (not @ARGV) { 
     9    @ARGV = <STDIN>; 
     10    s/^[AU]+\s+// for @ARGV; 
     11} 
    712 
    813for my $file (@ARGV) {