From 761823a1f3d74e91f430383e8c57af9063dce60c Mon Sep 17 00:00:00 2001 From: "mccabe%netscape.com" Date: Fri, 6 Aug 1999 10:25:16 +0000 Subject: [PATCH] Made use of ... varargs result in failure, as we don't currently seem to support it. --- xpcom/typelib/xpidl/xpidl_header.c | 6 ++++++ xpcom/typelib/xpidl/xpidl_typelib.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/xpcom/typelib/xpidl/xpidl_header.c b/xpcom/typelib/xpidl/xpidl_header.c index 9c07ad43f22d..d90092ad5f60 100644 --- a/xpcom/typelib/xpidl/xpidl_header.c +++ b/xpcom/typelib/xpidl/xpidl_header.c @@ -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); diff --git a/xpcom/typelib/xpidl/xpidl_typelib.c b/xpcom/typelib/xpidl/xpidl_typelib.c index d280335ab542..16546b68c5be 100644 --- a/xpcom/typelib/xpidl/xpidl_typelib.c +++ b/xpcom/typelib/xpidl/xpidl_typelib.c @@ -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;