]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly function.c.~26~
authorRoland McGrath <roland@redhat.com>
Wed, 12 May 1993 19:44:41 +0000 (19:44 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 12 May 1993 19:44:41 +0000 (19:44 +0000)
function.c

index 8ba26625451633cc8fa0f3c91f59ad87b3819976..76fb73d10c379421a332f8bd6a7a4aca69c95251 100644 (file)
@@ -1120,9 +1120,15 @@ handle_function (op, stringp)
        }
 
       if (count >= 0)
-       makefile_fatal (reading_filename, *reading_lineno_ptr,
-                       "unterminated call to function `%s': missing `%c'",
-                       function_table[code].name, closeparen);
+       {
+         static const char errmsg[]
+           = "unterminated call to function `%s': missing `%c'";
+         if (reading_filename == 0)
+           fatal (errmsg, function_table[code].name, closeparen);
+         else
+           makefile_fatal (reading_filename, *reading_lineno_ptr, errmsg,
+                           function_table[code].name, closeparen);
+       }
 
       /* We found the end; expand the function call.  */