comparison src/proto/typval.pro @ 25272:712e867f9721 v8.2.3173

patch 8.2.3173: Vim9: argument types are not checked at compile time Commit: https://github.com/vim/vim/commit/a9a7c0c602b231dc37c4b0f62ade0421c84fca03 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jul 17 19:11:07 2021 +0200 patch 8.2.3173: Vim9: argument types are not checked at compile time Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8581)
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Jul 2021 19:15:05 +0200
parents acda780ffc3e
children 4d3c68196d05
comparison
equal deleted inserted replaced
25271:51a7e859b0de 25272:712e867f9721
10 varnumber_T tv_get_bool_chk(typval_T *varp, int *denote); 10 varnumber_T tv_get_bool_chk(typval_T *varp, int *denote);
11 float_T tv_get_float(typval_T *varp); 11 float_T tv_get_float(typval_T *varp);
12 int check_for_string_arg(typval_T *args, int idx); 12 int check_for_string_arg(typval_T *args, int idx);
13 int check_for_nonempty_string_arg(typval_T *args, int idx); 13 int check_for_nonempty_string_arg(typval_T *args, int idx);
14 int check_for_number_arg(typval_T *args, int idx); 14 int check_for_number_arg(typval_T *args, int idx);
15 int check_for_bool_arg(typval_T *args, int idx);
16 int check_for_list_arg(typval_T *args, int idx);
15 int check_for_dict_arg(typval_T *args, int idx); 17 int check_for_dict_arg(typval_T *args, int idx);
16 char_u *tv_get_string(typval_T *varp); 18 char_u *tv_get_string(typval_T *varp);
17 char_u *tv_get_string_strict(typval_T *varp); 19 char_u *tv_get_string_strict(typval_T *varp);
18 char_u *tv_get_string_buf(typval_T *varp, char_u *buf); 20 char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
19 char_u *tv_get_string_chk(typval_T *varp); 21 char_u *tv_get_string_chk(typval_T *varp);