]> sourceware.org Git - automake.git/commitdiff
* automake.in (&macro_define): Use $where when reporting an error,
authorAkim Demaille <akim@epita.fr>
Mon, 26 Nov 2001 15:30:33 +0000 (15:30 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 26 Nov 2001 15:30:33 +0000 (15:30 +0000)
not the place where the macro was first defined since (i) if this
is the first definition, then obviously it was not defined before,
and (ii) anyway, the error is with the new definition, not the
first.

ChangeLog
automake.in

index 5a7aa3bc37f7b9751b4753535a0c6398297b2088..b5ce1cf845db1194e68f92fe7bce842f9b0bf859 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-11-26  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&macro_define): Use $where when reporting an error,
+       not the place where the macro was first defined since (i) if this
+       is the first definition, then obviously it was not defined before,
+       and (ii) anyway, the error is with the new definition, not the
+       first.
+
 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * lib/am/distdir.am (distcheck): Call distcleancheck.
index 7809f0d20734767f1e215c661dda457ce006aeca..47836840ac5ba55dcaa42b4cfb15e0eca910d57d 100755 (executable)
@@ -5716,16 +5716,16 @@ sub macro_define ($$$$$$)
     {
       if (defined $var_type{$var} && $var_type{$var} ne $type)
        {
-         macro_error ($var,
-                      ("$var was set with `$var_type{$var}=' "
-                       . "and is now set with `$type='"));
+         file_error ($where,
+                     ("$var was set with `$var_type{$var}=' "
+                      . "and is now set with `$type='"));
        }
     }
   else
     {
       if (!defined $var_type{$var} && $type eq '+')
        {
-         macro_error ($var, "$var must be set with `=' before using `+='");
+         file_error ($where, "$var must be set with `=' before using `+='");
        }
     }
   $var_type{$var} = $type;
This page took 0.044302 seconds and 5 git commands to generate.