Lines Matching refs:argcount
167 alloc_func_type(type_T *ret_type, int argcount, garray_T *type_gap) in alloc_func_type() argument
175 type->tt_argcount = argcount; in alloc_func_type()
186 get_func_type(type_T *ret_type, int argcount, garray_T *type_gap) in get_func_type() argument
189 if (argcount <= 0) in get_func_type()
198 if (argcount == 0) in get_func_type()
205 if (argcount == 0) in get_func_type()
212 if (argcount == 0) in get_func_type()
219 if (argcount == 0) in get_func_type()
226 return alloc_func_type(ret_type, argcount, type_gap); in get_func_type()
236 int argcount, in func_type_add_arg_types() argument
243 functype->tt_args = ALLOC_CLEAR_MULT(type_T *, argcount); in func_type_add_arg_types()
262 int argcount = 0; in typval2type_int() local
347 internal_func_get_argcount(idx, &argcount, &min_argcount); in typval2type_int()
385 type->tt_argcount = argcount; in typval2type_int()
611 int argcount, in check_argument_types() argument
619 if (argcount < type->tt_min_argcount - varargs) in check_argument_types()
624 if (!varargs && type->tt_argcount >= 0 && argcount > type->tt_argcount) in check_argument_types()
633 for (i = 0; i < argcount; ++i) in check_argument_types()
821 int argcount = -1; in parse_type() local
835 argcount = 0; in parse_type()
841 first_optional = argcount; in parse_type()
859 arg_type[argcount++] = type; in parse_type()
884 if (argcount == MAX_FUNC_ARGS) in parse_type()
913 if (flags == 0 && first_optional == -1 && argcount <= 0) in parse_type()
914 type = get_func_type(ret_type, argcount, type_gap); in parse_type()
917 type = alloc_func_type(ret_type, argcount, type_gap); in parse_type()
919 if (argcount > 0) in parse_type()
921 type->tt_argcount = argcount; in parse_type()
923 ? argcount : first_optional; in parse_type()
924 if (func_type_add_arg_types(type, argcount, in parse_type()
928 sizeof(type_T *) * argcount); in parse_type()
1074 int argcount = type1->tt_argcount; in common_type() local
1077 *dest = alloc_func_type(common, argcount, type_gap); in common_type()
1080 if (func_type_add_arg_types(*dest, argcount, in common_type()
1082 for (i = 0; i < argcount; ++i) in common_type()