diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-24 21:36:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-24 21:36:12 +0000 |
commit | d787e40fdbe6f4d8bf47d36186c1d9d51c29b853 (patch) | |
tree | 7d55c1381d9d0ab309fec50c463e33b281c05d1e /src/proto/evalvars.pro | |
parent | e7f4abd38b6e05100c699900c8f87281e363beb2 (diff) |
patch 8.2.3890: Vim9: type check for using v: variables is basicv8.2.3890
Problem: Vim9: type check for using v: variables is basic.
Solution: Specify a more precise type.
Diffstat (limited to 'src/proto/evalvars.pro')
-rw-r--r-- | src/proto/evalvars.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/evalvars.pro b/src/proto/evalvars.pro index 778506f88d..9fb2c77b52 100644 --- a/src/proto/evalvars.pro +++ b/src/proto/evalvars.pro @@ -38,6 +38,7 @@ void set_vim_var_type(int idx, vartype_T type); void set_vim_var_nr(int idx, varnumber_T val); char *get_vim_var_name(int idx); typval_T *get_vim_var_tv(int idx); +type_T *get_vim_var_type(int idx, garray_T *type_list); int set_vim_var_tv(int idx, typval_T *tv); varnumber_T get_vim_var_nr(int idx); char_u *get_vim_var_str(int idx); @@ -71,7 +72,7 @@ void vars_clear(hashtab_T *ht); void vars_clear_ext(hashtab_T *ht, int free_val); void delete_var(hashtab_T *ht, hashitem_T *hi); void set_var(char_u *name, typval_T *tv, int copy); -void set_var_const(char_u *name, type_T *type, typval_T *tv_arg, int copy, int flags_arg, int var_idx); +void set_var_const(char_u *name, type_T *type_arg, typval_T *tv_arg, int copy, int flags_arg, int var_idx); int var_check_permission(dictitem_T *di, char_u *name); int var_check_ro(int flags, char_u *name, int use_gettext); int var_check_lock(int flags, char_u *name, int use_gettext); |