From a5ee3af901408a5d0578360aaecfba7e27cc0954 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 10 Aug 2015 17:31:53 +0100 Subject: Ensure the number of parameters is correct for operations For normal operations (not special, overloaded or varadic) check the number of parameters passed is correct and add default values if necessary. This means every normal operation will always have a complete set of parameters and throw an error if there are too few non optional arguments. --- src/interface-map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interface-map.h') diff --git a/src/interface-map.h b/src/interface-map.h index 5f1926e..079ed96 100644 --- a/src/interface-map.h +++ b/src/interface-map.h @@ -13,13 +13,13 @@ struct genbind_node; struct webidl_node; /** - *map entry for each argument of an overload on an operation + * map entry for each argument of an overload on an operation */ struct interface_map_operation_argument_entry { const char *name; - int optionalc; /**< Number of parameters that are optional */ - int elipsisc; /**< Number of elipsis parameters */ + int optionalc; /**< 1 if the argument is optional */ + int elipsisc; /**< 1 if the argument is an elipsis */ struct webidl_node *node; }; -- cgit v1.2.3