Made use of ... varargs result in failure, as we don't currently seem

to support it.
This commit is contained in:
mccabe%netscape.com 1999-08-06 10:25:16 +00:00
parent f11a8d5735
commit 761823a1f3
2 changed files with 12 additions and 0 deletions

View File

@ -470,6 +470,12 @@ op_dcl(TreeState *state)
gboolean op_notxpcom =
(IDL_tree_property_get(op->ident, "notxpcom") != NULL);
IDL_tree iter;
if (op->f_varargs) {
/* We don't currently support varargs. */
IDL_tree_error(state->tree, "varargs are not currently supported\n");
return FALSE;
}
xpidl_write_comment(state, 2);

View File

@ -859,6 +859,12 @@ typelib_op_dcl(TreeState *state)
uint8 op_flags = 0;
gboolean op_notxpcom = !!IDL_tree_property_get(op->ident, "notxpcom");
gboolean op_noscript = !!IDL_tree_property_get(op->ident, "noscript");
if (op->f_varargs) {
/* We don't currently support varargs. */
IDL_tree_error(state->tree, "varargs are not currently supported\n");
return FALSE;
}
if (!XPT_InterfaceDescriptorAddMethods(id, 1))
return FALSE;