From: Roland McGrath Date: Wed, 12 May 1993 19:44:41 +0000 (+0000) Subject: Formerly function.c.~26~ X-Git-Tag: 3.70.2~287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=534926ac7a327eefa74de83bd6cd12c613aa862c;p=thirdparty%2Fmake.git Formerly function.c.~26~ --- diff --git a/function.c b/function.c index 8ba26625..76fb73d1 100644 --- a/function.c +++ b/function.c @@ -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. */