GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / automake-1.11 / Automake / ItemDef.pm
blob8d94afcf04c6b8cc49328c2e1742e09fbd078d22
1 # Copyright (C) 2003, 2006 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2, or (at your option)
6 # any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 package Automake::ItemDef;
17 use strict;
18 use Carp;
20 =head1 NAME
22 Automake::ItemDef - base class for Automake::VarDef and Automake::RuleDef
24 =head1 DESCRIPTION
26 =head2 Methods
28 =over 4
30 =item C<my $def = Automake::new ($comment, $location, $owner)>
32 Create a new Makefile-item definition.
34 C<$comment> is any comment preceding the definition. (Because
35 Automake reorders items in the output, it also tries to carry comments
36 around.)
38 C<$location> is the place where the definition occurred, it should be
39 an instance of L<Automake::Location>.
41 C<$owner> specifies who owns the rule.
43 =cut
45 sub new ($$$$)
47 my ($class, $comment, $location, $owner) = @_;
49 my $self = {
50 comment => $comment,
51 location => $location,
52 owner => $owner,
54 bless $self, $class;
56 return $self;
59 =item C<$def-E<gt>comment>
61 =item C<$def-E<gt>location>
63 =item C<$def-E<gt>owner>
65 Accessors to the various constituents of an C<ItemDef>. See the
66 documentation of C<new>'s arguments for a description of these.
68 =cut
70 sub comment ($)
72 my ($self) = @_;
73 return $self->{'comment'};
76 sub location ($)
78 my ($self) = @_;
79 return $self->{'location'};
82 sub owner ($)
84 my ($self) = @_;
85 return $self->{'owner'};
88 =head1 SEE ALSO
90 L<Automake::VarDef>, and L<Automake::RuleDef>.
92 =cut
96 ### Setup "GNU" style for perl-mode and cperl-mode.
97 ## Local Variables:
98 ## perl-indent-level: 2
99 ## perl-continued-statement-offset: 2
100 ## perl-continued-brace-offset: 0
101 ## perl-brace-offset: 0
102 ## perl-brace-imaginary-offset: 0
103 ## perl-label-offset: -2
104 ## cperl-indent-level: 2
105 ## cperl-brace-offset: 0
106 ## cperl-continued-brace-offset: 0
107 ## cperl-label-offset: -2
108 ## cperl-extra-newline-before-brace: t
109 ## cperl-merge-trailing-else: nil
110 ## cperl-continued-statement-offset: 2
111 ## End: