[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: 5/ undefined variables warnings in Location::dump
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: 5/ undefined variables warnings in Location::dump |
Date: |
Fri, 23 May 2003 23:52:21 +0200 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3 (gnu/linux) |
I think this is the last independent change before I install
the Variable code (which I still have to document).
2003-05-23 Alexandre Duret-Lutz <address@hidden>
* lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
is undefined.
Index: lib/Automake/Location.pm
===================================================================
RCS file: /cvs/automake/automake/lib/Automake/Location.pm,v
retrieving revision 1.1
diff -u -r1.1 Location.pm
--- lib/Automake/Location.pm 28 Sep 2002 12:41:05 -0000 1.1
+++ lib/Automake/Location.pm 23 May 2003 21:48:16 -0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -138,10 +138,11 @@
sub dump ($)
{
my ($self) = @_;
- my $res = $self->get . ":\n";
+ my $res = ($self->get || 'INTERNAL') . ":\n";
for my $pair (reverse $self->get_contexts)
{
- $res .= "$pair->[0]: $pair->[1]\n";
+ $res .= $pair->[0] || 'INTERNAL';
+ $res .= ": $pair->[1]\n";
}
return $res;
}
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: 5/ undefined variables warnings in Location::dump,
Alexandre Duret-Lutz <=