automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: s/err/error/ (HEAD)


From: Alexandre Duret-Lutz
Subject: FYI: s/err/error/ (HEAD)
Date: Tue, 31 Dec 2002 22:22:17 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

I'm checking this in on HEAD.

Index: ChangeLog
from  Alexandre Duret-Lutz  <address@hidden>

        * automake.in (err): Rename as ...
        (error): ... this.  Adjust all callers.
        Suggested by H.Merijn Brand.

Index: THANKS
===================================================================
RCS file: /home/adl/CVSROOT/LOCAL/HEAD4-20021225-1439/THANKS,v
retrieving revision 1.1
diff -u -r1.1 THANKS
--- THANKS 25 Dec 2002 13:39:57 -0000 1.1
+++ THANKS 25 Dec 2002 14:07:10 -0000
@@ -71,6 +71,7 @@
 Guido Draheim          address@hidden
 Gustavo Carneiro       address@hidden
 H.J. Lu                        address@hidden
+H.Merijn Brand         address@hidden
 Harlan Stenn           address@hidden
 Henrik Frystyk Nielsen address@hidden
 Ian Lance Taylor       address@hidden
Index: automake.in
===================================================================
RCS file: /home/adl/CVSROOT/LOCAL/HEAD4-20021225-1439/automake.in,v
retrieving revision 1.1
diff -u -r1.1 automake.in
--- automake.in 25 Dec 2002 13:39:57 -0000 1.1
+++ automake.in 25 Dec 2002 14:17:30 -0000
@@ -1147,7 +1147,7 @@
     {
       if (! -f ($am_file . '.am'))
        {
-         &err ("`$am_file.am' does not exist");
+         &error ("`$am_file.am' does not exist");
        }
       else
        {
@@ -1173,11 +1173,11 @@
   msg 'automake', '', $msg, %opts;
 }
 
-# err ($WHERE, $MESSAGE, [%OPTIONS])
-# err ($MESSAGE)
-# ----------------------------------
+# error ($WHERE, $MESSAGE, [%OPTIONS])
+# error ($MESSAGE)
+# ------------------------------------
 # Uncategorized errors.
-sub err ($;$%)
+sub error ($;$%)
 {
   my ($where, $msg, %opts) = @_;
   msg ('error', $where, $msg, %opts);
@@ -1909,8 +1909,8 @@
          # Got a version number.
          if (version_check $&)
            {
-             err ($where, "require Automake $_, but have $VERSION",
-                  uniq_scope => US_GLOBAL);
+             error ($where, "require Automake $_, but have $VERSION",
+                    uniq_scope => US_GLOBAL);
                return 1;
            }
        }
@@ -1924,8 +1924,8 @@
        }
       else
        {
-         err ($where, "option `$_' not recognized",
-              uniq_scope => US_GLOBAL);
+         error ($where, "option `$_' not recognized",
+                uniq_scope => US_GLOBAL);
          return 1;
        }
     }
@@ -3372,7 +3372,7 @@
       # Check that the library fits the standard naming convention.
       if (basename ($onelib) !~ /^lib.*\.a/)
        {
-         err $where, "`$onelib' is not a standard library name";
+         error $where, "`$onelib' is not a standard library name";
        }
 
       $where->push_context ("while processing library `$onelib'");
@@ -3480,9 +3480,9 @@
          # implied conditions, etc.)
          if (defined $instdirs{$lib} && $instdirs{$lib} ne $dir)
            {
-             err ($where, "`$lib' is already going to be installed in "
-                  . "`$instdirs{$lib}'", partial => 1);
-             err ($liblocations{$lib}, "`$lib' previously declared here");
+             error ($where, "`$lib' is already going to be installed in "
+                    . "`$instdirs{$lib}'", partial => 1);
+             error ($liblocations{$lib}, "`$lib' previously declared here");
            }
          else
            {
@@ -3684,7 +3684,8 @@
         $outfile = $1;
         if ($outfile =~ /\.(.+)$/ && $1 ne 'info')
           {
-           err "$filename:$.", "output `$outfile' has unrecognized extension";
+           error ("$filename:$.",
+                  "output `$outfile' has unrecognized extension");
             return;
           }
       }
@@ -5338,12 +5339,12 @@
        }
       elsif ($macro eq 'AM_AUTOMAKE_VERSION')
         {
-         err ($where,
-              "version mismatch.  This is Automake $VERSION,\n" .
-              "but the definition used by this AM_INIT_AUTOMAKE\n" .
-              "comes from Automake $args[1].  You should recreate\n" .
-              "aclocal.m4 with aclocal and run automake again.\n")
-           if ($VERSION ne $args[1]);
+         error ($where,
+                "version mismatch.  This is Automake $VERSION,\n" .
+                "but the definition used by this AM_INIT_AUTOMAKE\n" .
+                "comes from Automake $args[1].  You should recreate\n" .
+                "aclocal.m4 with aclocal and run automake again.\n")
+           if $VERSION ne $args[1];
 
          $seen_automake_version = 1;
         }
@@ -5426,18 +5427,18 @@
       {
        if (-f 'aclocal.m4')
          {
-           err ($seen_init_automake || $me,
-                "your implementation of AM_INIT_AUTOMAKE comes from " .
-                "an\nold Automake version.  You should recreate " .
-                "aclocal.m4\nwith aclocal and run automake again.\n");
+           error ($seen_init_automake || $me,
+                  "your implementation of AM_INIT_AUTOMAKE comes from " .
+                  "an\nold Automake version.  You should recreate " .
+                  "aclocal.m4\nwith aclocal and run automake again.\n");
          }
        else
          {
-           err ($seen_init_automake || $me,
-                "no proper implementation of AM_INIT_AUTOMAKE was " .
-                "found,\nprobably because aclocal.m4 is missing...\n" .
-                "You should run aclocal to create this file, then\n" .
-                "run automake again.\n");
+           error ($seen_init_automake || $me,
+                  "no proper implementation of AM_INIT_AUTOMAKE was " .
+                  "found,\nprobably because aclocal.m4 is missing...\n" .
+                  "You should run aclocal to create this file, then\n" .
+                  "run automake again.\n");
          }
       }
 
@@ -6030,7 +6031,7 @@
 {
   my ($negate, $cond, $where) = @_;
 
-  err $where, "$cond does not appear in AM_CONDITIONAL"
+  error $where, "$cond does not appear in AM_CONDITIONAL"
     if ! $configure_cond{$cond} && $cond !~ /^TRUE|FALSE$/;
 
   push (@cond_stack, make_conditional_string ($negate, $cond));
@@ -6048,7 +6049,7 @@
 
   if (! @cond_stack)
     {
-      err $where, "else without if";
+      error $where, "else without if";
       return;
     }
 
@@ -6060,8 +6061,8 @@
     {
       $cond = make_conditional_string ($negate, $cond);
 
-      err ($where, "else reminder ($negate$cond) incompatible with "
-          . "current conditional: $cond_stack[$#cond_stack]")
+      error ($where, "else reminder ($negate$cond) incompatible with "
+            . "current conditional: $cond_stack[$#cond_stack]")
        if $cond_stack[$#cond_stack] ne $cond;
     }
 
@@ -6079,7 +6080,7 @@
 
   if (! @cond_stack)
     {
-      err $where, "endif without if: $negate$cond";
+      error $where, "endif without if: $negate$cond";
       return;
     }
 
@@ -6088,8 +6089,8 @@
     {
       $cond = make_conditional_string ($negate, $cond);
 
-      err ($where, "endif reminder ($negate$cond) incompatible with "
-          . "current conditional: $cond_stack[$#cond_stack]")
+      error ($where, "endif reminder ($negate$cond) incompatible with "
+            . "current conditional: $cond_stack[$#cond_stack]")
        if $cond_stack[$#cond_stack] ne $cond;
     }
 
@@ -6246,7 +6247,7 @@
   # We will adjust the owner of this variable unless told otherwise.
   my $adjust_owner = 1;
 
-  err $where, "bad characters in variable name `$var'"
+  error $where, "bad characters in variable name `$var'"
     if $var !~ /$MACRO_PATTERN/o;
 
   # NEWS-OS 4.2R complains if a Makefile variable begins with `_'.
@@ -6272,15 +6273,15 @@
          && exists $var_type{$var}{$cond}
          && $var_type{$var}{$cond} ne $type)
        {
-         err ($where, "$var was set with `$var_type{$var}=' "
-              . "and is now set with `$type='");
+         error ($where, "$var was set with `$var_type{$var}=' "
+                . "and is now set with `$type='");
        }
     }
   else
     {
       if (!exists $var_type{$var} && $type eq '+')
        {
-         err $where, "$var must be set with `=' before using `+='";
+         error $where, "$var must be set with `=' before using `+='";
        }
     }
   $var_type{$var}{$cond} = $type;
@@ -6367,13 +6368,13 @@
          my $undef_cond = variable_not_always_defined_in_cond $var, $cond;
          if (! $undef_cond->false)
            {
-             err ($where,
-                  "Cannot apply `+=' because `$var' is not defined "
-                  . "in\nthe following conditions:\n  "
-                  . join ("\n  ", map { $_->human } $undef_cond->conds)
-                  . "\nEither define `$var' in these conditions,"
-                  . " or use\n`+=' in the same conditions as"
-                  . " the definitions.");
+             error ($where,
+                    "Cannot apply `+=' because `$var' is not defined "
+                    . "in\nthe following conditions:\n  "
+                    . join ("\n  ", map { $_->human } $undef_cond->conds)
+                    . "\nEither define `$var' in these conditions,"
+                    . " or use\n`+=' in the same conditions as"
+                    . " the definitions.");
            }
          else
            {
@@ -7626,7 +7627,7 @@
        }
        elsif (/$WHITE_PATTERN/o)
        {
-           err $where, "blank line following trailing backslash"
+           error $where, "blank line following trailing backslash"
              if $saw_bk;
            # Stick a single white line before the incoming macro or rule.
            $spacing = "\n";
@@ -7689,7 +7690,7 @@
        {
            # Stick a single white line before the incoming macro or rule.
            $spacing = "\n";
-           err $where, "blank line following trailing backslash"
+           error $where, "blank line following trailing backslash"
              if $saw_bk;
        }
        elsif (/$COMMENT_PATTERN/o)
@@ -7697,7 +7698,7 @@
            # Stick comments before the incoming macro or rule.
            $comment .= $spacing . $_;
            $spacing = '';
-           err $where, "comment following trailing backslash"
+           error $where, "comment following trailing backslash"
              if $saw_bk && $comment eq '';
            $prev_state = IN_COMMENT;
        }
@@ -7843,7 +7844,7 @@
            $output_trailer .= $cond->subst_string;
            $output_trailer .= $_;
            $comment = $spacing = '';
-           err $where, "`#' comment at start of rule is unportable"
+           error $where, "`#' comment at start of rule is unportable"
              if $_ =~ /^\t\s*\#/;
        }
 
@@ -7853,8 +7854,8 @@
 
     $output_trailer .= $comment;
 
-    err ($where, (@cond_stack ? "unterminated conditionals: @cond_stack"
-                 : "too many conditionals closed in include file"))
+    error ($where, (@cond_stack ? "unterminated conditionals: @cond_stack"
+                   : "too many conditionals closed in include file"))
       if "@saved_cond_stack" ne "@cond_stack";
 }
 
@@ -8076,9 +8077,9 @@
         $where->set ($file);
 
         # Sanity checks.
-       err $where, "blank line following trailing backslash:\n$_"
+       error $where, "blank line following trailing backslash:\n$_"
          if /\\$/;
-       err $where, "comment following trailing backslash:\n$_"
+       error $where, "comment following trailing backslash:\n$_"
          if /\\#/;
 
        if (/^$/)
@@ -8199,7 +8200,7 @@
        elsif (/$ASSIGNMENT_PATTERN/mso)
        {
            my ($var, $type, $val) = ($1, $2, $3);
-           err $where, "variable `$var' with trailing backslash"
+           error $where, "variable `$var' with trailing backslash"
              if /\\$/;
 
            $is_rule = 0;
@@ -8235,9 +8236,9 @@
        }
     }
 
-    err ($where, @cond_stack ?
-        "unterminated conditionals: @cond_stack" :
-        "too many conditionals closed in include file")
+    error ($where, @cond_stack ?
+          "unterminated conditionals: @cond_stack" :
+          "too many conditionals closed in include file")
       if "@saved_cond_stack" ne "@cond_stack";
 
     return ($comment, $result_vars, $result_rules);
@@ -8526,9 +8527,9 @@
                {
                  if ($nodir_name eq 'EXTRA')
                    {
-                     err ($where,
-                          "`$one_name' contains configure substitution, "
-                          . "but shouldn't");
+                     error ($where,
+                            "`$one_name' contains configure substitution, "
+                            . "but shouldn't");
                    }
                  # Check here to make sure variables defined in
                  # configure.ac do not imply that EXTRA_PRIMARY
@@ -9053,7 +9054,7 @@
            . "`autoconf' again.";
        }
 
-      err $where, $text, uniq_scope => US_GLOBAL;
+      error $where, $text, uniq_scope => US_GLOBAL;
     }
   return $res;
 }

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]