Changeset 206

Show
Ignore:
Timestamp:
04/04/07 19:01:36 (1 year ago)
Author:
ingy
Message:
 r3749@skinny-2:  ingy | 2007-04-04 18:04:20 +0900
 refo
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/k2-make-src

    r196 r206  
    66use lib abs_path('lib'); 
    77use IO::All; 
     8use XXX; 
    89 
    910# Get a list of all dists in system. 
     11XXX my @dists = map { 
     12    $_->name; 
     13} grep { 
     14    -e "$_/lib"; 
     15} io('src')->All_Dirs; 
     16 
     17 
    1018# For each dist, find all modules in dist 
    1119# For each module: 
     
    1624#   Link all src files into the base/ tree 
    1725#   Report all collisions 
     26 
     27__END__ 
    1828 
    1929@ARGV == 1 or die usage(); 
  • trunk/src/plugins/ingy/Document-Parser/lib/Document/Parser.pm

    r205 r206  
    3535            my $matched = $self->find_match(matched_block => $type) or next; 
    3636            substr($self->{input}, 0, $matched->{end}, ''); 
    37             my $func = "handle_$type"; 
    38             $self->$func($matched); 
     37            $self->handle_match($type, $matched); 
    3938            last; 
    4039        } 
     
    7574        substr($self->{input}, 0, $end, ''); 
    7675        $type = $match->{type}; 
    77         my $func = "handle_$type"; 
    78         $self->$func($match); 
     76        $self->handle_match($type, $match); 
    7977    } 
    8078    return; 
     
    105103    } 
    106104    return $matched; 
     105} 
     106 
     107sub handle_match { 
     108    my ($self, $type, $match) = @_; 
     109    my $func = "handle_$type"; 
     110    $self->$func($match); 
    107111} 
    108112