Changeset 1183 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Filter.pm


Ignore:
Timestamp:
Feb 14, 2011, 4:35:54 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Allow pb_filter_file to manage undefined filter hash
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r1180 r1183  
    126126
    127127The first parameter is the file to filter.
    128 The second parameter is the pointer on the hash of filters.
     128The second parameter is the pointer on the hash of filters. If undefined no filtering will occur.
    129129The third parameter is the destination file after filtering.
    130130The fourth parameter is the pointer on the hash of variables to filter (tag, ver, ...)
     
    136136my $f=shift;
    137137my $ptr=shift;
    138 my %filter=%$ptr;
     138my %filter;
     139if (defined $ptr) {
     140    %filter=%$ptr;
     141} else {
     142    %filter = ();
     143}
    139144my $destfile=shift;
    140145my $pb=shift;
     
    225230
    226231my $ptr=shift;
    227 my %filter=%$ptr;
    228232my $destfile=shift;
    229233my $pb=shift;
Note: See TracChangeset for help on using the changeset viewer.