summaryrefslogtreecommitdiff
path: root/lib/Automake/Location.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Automake/Location.pm')
-rw-r--r--lib/Automake/Location.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Automake/Location.pm b/lib/Automake/Location.pm
index 77a34c505..3d368ca9e 100644
--- a/lib/Automake/Location.pm
+++ b/lib/Automake/Location.pm
@@ -17,6 +17,14 @@ package Automake::Location;
use 5.006;
+use Exporter;
+
+use vars qw (@ISA @EXPORT);
+
+@ISA = qw (Exporter);
+
+@EXPORT = qw (INTERNAL);
+
=head1 NAME
Automake::Location - a class for location tracking, with a stack of contexts
@@ -86,6 +94,18 @@ You can pass a C<Location> to C<Automake::Channels::msg>.
=cut
+=head2 Constants
+
+=over
+
+=item C<INTERNAL>
+
+We can't always associate a location to a variable or a rule, when it's
+defined by Automake. We use C<INTERNAL> in this case.
+
+=cut
+
+
=head2 Methods
=over
@@ -107,6 +127,8 @@ sub new ($;$)
return $self;
}
+use constant INTERNAL => new Automake::Location;
+
=item C<$location-E<gt>set ($position)>
Change the location to be C<$position>.