33,34c33
< proto_param_strings, body_param_strings, body,
< pairs, default_count = 0):
---
> param_strings, body, pairs):
38,39c37
< self.proto_param_strings = proto_param_strings
< self.body_param_strings = body_param_strings
---
> self.param_strings = param_strings
45d42
< self.default_count = default_count
63c60
< ", ".join(self.proto_param_strings))
---
> ", ".join(self.param_strings))
68,89d64
< def checkArguments(self, args):
< if len(args) + self.default_count < len(self.param_types) or \
< len(args) > len(self.param_types):
< self.error("Wrong number of arguments passed to function: '%s'" + \
< " Expected at least: %d, got: %d", self.c_ident,
< len(self.param_types) - self.default_count, len(args))
<
< cvec = []
< type_vec = []
< for expr,expected_type in zip(args, self.param_types):
< # Check the types of the parameter
< actual_type,param_code = expr.inline(True)
< if str(actual_type) != 'OOD' and \
< str(actual_type) != str(expected_type) and \
< str(actual_type["interface"]) != str(expected_type):
< expr.error("Type mismatch: expected: %s actual: %s" % \
< (expected_type, actual_type))
< cvec.append(param_code)
< type_vec.append(expected_type)
<
< return cvec, type_vec
<
98d72
< return_type = self.return_type.c_ident
99a74
> return_type = self.return_type.c_ident
105c80
< params = ', '.join(self.body_param_strings)
---
> params = ', '.join(self.param_strings)