Mercurial > vim
comparison src/proto/evalfunc.pro @ 25126:b825efff9790 v8.2.3100
patch 8.2.3100: Vim9: no error when using type with unknown number of args
Commit: https://github.com/vim/vim/commit/7a40ff00edd35cc4313d74a43e7a7b67cd24372d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 4 15:54:08 2021 +0200
patch 8.2.3100: Vim9: no error when using type with unknown number of args
Problem: Vim9: no error when using type with unknown number of arguments.
Solution: Do not ignore argument count of -1. (closes https://github.com/vim/vim/issues/8492)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Jul 2021 16:00:03 +0200 |
parents | e75971b83263 |
children | dc66d0284518 |
comparison
equal
deleted
inserted
replaced
25125:a3ab834c714c | 25126:b825efff9790 |
---|---|
4 char_u *get_expr_name(expand_T *xp, int idx); | 4 char_u *get_expr_name(expand_T *xp, int idx); |
5 int find_internal_func(char_u *name); | 5 int find_internal_func(char_u *name); |
6 int has_internal_func(char_u *name); | 6 int has_internal_func(char_u *name); |
7 char *internal_func_name(int idx); | 7 char *internal_func_name(int idx); |
8 int internal_func_check_arg_types(type_T **types, int idx, int argcount, cctx_T *cctx); | 8 int internal_func_check_arg_types(type_T **types, int idx, int argcount, cctx_T *cctx); |
9 void internal_func_get_argcount(int idx, int *argcount, int *min_argcount); | |
9 type_T *internal_func_ret_type(int idx, int argcount, type_T **argtypes); | 10 type_T *internal_func_ret_type(int idx, int argcount, type_T **argtypes); |
10 int internal_func_is_map(int idx); | 11 int internal_func_is_map(int idx); |
11 int check_internal_func(int idx, int argcount); | 12 int check_internal_func(int idx, int argcount); |
12 int call_internal_func(char_u *name, int argcount, typval_T *argvars, typval_T *rettv); | 13 int call_internal_func(char_u *name, int argcount, typval_T *argvars, typval_T *rettv); |
13 void call_internal_func_by_idx(int idx, typval_T *argvars, typval_T *rettv); | 14 void call_internal_func_by_idx(int idx, typval_T *argvars, typval_T *rettv); |
19 void execute_common(typval_T *argvars, typval_T *rettv, int arg_off); | 20 void execute_common(typval_T *argvars, typval_T *rettv, int arg_off); |
20 void f_has(typval_T *argvars, typval_T *rettv); | 21 void f_has(typval_T *argvars, typval_T *rettv); |
21 int dynamic_feature(char_u *feature); | 22 int dynamic_feature(char_u *feature); |
22 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); | 23 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); |
23 void range_list_materialize(list_T *list); | 24 void range_list_materialize(list_T *list); |
24 float_T vim_round(float_T f); | |
25 long do_searchpair(char_u *spat, char_u *mpat, char_u *epat, int dir, typval_T *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit); | 25 long do_searchpair(char_u *spat, char_u *mpat, char_u *epat, int dir, typval_T *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit); |
26 void f_string(typval_T *argvars, typval_T *rettv); | 26 void f_string(typval_T *argvars, typval_T *rettv); |
27 /* vim: set ft=c : */ | 27 /* vim: set ft=c : */ |