summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-05-07 22:34:49 +0000
committerRoland McGrath <roland@redhat.com>1993-05-07 22:34:49 +0000
commit369bb2a60965ba8f77df97ac8268e071e91d40e9 (patch)
treea0f8202772375a2289a2181399d186629b0b1412 /function.c
parent5c82e72caa5e42dea807fe4ba9a6fb9b441e2b39 (diff)
downloadgunmake-369bb2a60965ba8f77df97ac8268e071e91d40e9.tar.gz
Formerly function.c.~25~
Diffstat (limited to 'function.c')
-rw-r--r--function.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/function.c b/function.c
index 6c394da..8ba2662 100644
--- a/function.c
+++ b/function.c
@@ -1119,6 +1119,11 @@ handle_function (op, stringp)
break;
}
+ if (count >= 0)
+ makefile_fatal (reading_filename, *reading_lineno_ptr,
+ "unterminated call to function `%s': missing `%c'",
+ function_table[code].name, closeparen);
+
/* We found the end; expand the function call. */
*op = expand_function (*op, function_table[code].function, argbeg, p);