+2002-07-01 Aldy Hernandez <aldyh@redhat.com>
+
+ * tree.c (build_function_type_list): Update function comment.
+ Rename first argument to return_type.
+
2002-07-01 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
return t;
}
-/* Like build_function_type, but take a vararg list of nodes. The
- list of nodes should end with a NULL_TREE. This is typically used
- for creating function types for builtins. */
+/* Build a function type. The RETURN_TYPE is the type retured by the
+ function. If additional arguments are provided, they are
+ additional argument types. The list of argument types must always
+ be terminated by NULL_TREE. */
tree
-build_function_type_list VPARAMS ((tree first, ...))
+build_function_type_list VPARAMS ((tree return_type, ...))
{
tree t, args, last;
- VA_OPEN (p, first);
- VA_FIXEDARG (p, tree, first);
+ VA_OPEN (p, return_type);
+ VA_FIXEDARG (p, tree, return_type);
t = va_arg (p, tree);
for (args = NULL_TREE; t != NULL_TREE; t = va_arg (p, tree))
last = args;
args = nreverse (args);
TREE_CHAIN (last) = void_list_node;
- args = build_function_type (first, args);
+ args = build_function_type (return_type, args);
VA_CLOSE (p);
return args;