diff options
author | Roland McGrath <roland@redhat.com> | 1993-05-12 19:44:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-05-12 19:44:41 +0000 |
commit | 534926ac7a327eefa74de83bd6cd12c613aa862c (patch) | |
tree | 94ec34fba95df839d0c2d4adfde7947a5abc16e6 /function.c | |
parent | 55802662228944b9f4206a96c3031be81797726f (diff) | |
download | gunmake-534926ac7a327eefa74de83bd6cd12c613aa862c.tar.gz |
Formerly function.c.~26~
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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. */ |