13 |
|
# name() : the name of the toolmap |
14 |
|
# types() : Return the types |
15 |
|
# cleardefaults() : clear the default set |
16 |
< |
# defaulttypes(@types) : return/set list of types to make the default |
16 |
> |
# defaulttypes() : return list of types to make the default |
17 |
|
# rulesfile() : return list of names of makefiles to include to describe |
18 |
|
# suitable make rules |
19 |
|
|
40 |
|
if ( @_ ) { |
41 |
|
push @{$self->{types}}, @_; |
42 |
|
} |
43 |
< |
return @{$self->{types}}; |
43 |
> |
return $self->{types}; |
44 |
|
} |
45 |
|
|
46 |
|
sub defaulttypes { |
47 |
|
my $self=shift; |
48 |
|
if ( @_ ) { |
49 |
– |
undef $self->{defaulttypes}; |
49 |
|
push @{$self->{defaulttypes}}, @_; |
50 |
|
} |
51 |
< |
return @{$self->{defaulttypes}}; |
51 |
> |
return $self->{defaulttypes}; |
52 |
|
} |
53 |
|
|
54 |
|
sub rulesfile { |
56 |
|
if ( @_ ) { |
57 |
|
push @{$self->{rulesfile}}, @_; |
58 |
|
} |
59 |
< |
return @{$self->{rulesfile}}; |
59 |
> |
return $self->{rulesfile}; |
60 |
|
} |
61 |
|
|
62 |
|
sub cleardefaults { |