Mercurial > vim
comparison src/proto/typval.pro @ 23786:0512923e54e1 v8.2.2434
patch 8.2.2434: Vim9: no error when compiling str2nr() with a number
Commit: https://github.com/vim/vim/commit/f2b26bcf8f498fed72759af4aa768fb2aab3118c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 23:05:11 2021 +0100
patch 8.2.2434: Vim9: no error when compiling str2nr() with a number
Problem: Vim9: no error when compiling str2nr() with a number.
Solution: Add argument type checks. (closes https://github.com/vim/vim/issues/7759)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jan 2021 23:15:06 +0100 |
parents | 5c094273c015 |
children | d12ef361d9de |
comparison
equal
deleted
inserted
replaced
23785:186b22ebe68d | 23786:0512923e54e1 |
---|---|
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(typval_T *tv); | 12 int check_for_string(typval_T *tv); |
13 int check_for_nonempty_string(typval_T *tv); | 13 int check_for_nonempty_string(typval_T *tv); |
14 char_u *tv_get_string(typval_T *varp); | 14 char_u *tv_get_string(typval_T *varp); |
15 char_u *tv_get_string_strict(typval_T *varp); | |
15 char_u *tv_get_string_buf(typval_T *varp, char_u *buf); | 16 char_u *tv_get_string_buf(typval_T *varp, char_u *buf); |
16 char_u *tv_get_string_chk(typval_T *varp); | 17 char_u *tv_get_string_chk(typval_T *varp); |
17 char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf); | 18 char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf); |
19 char_u *tv_get_string_buf_chk_strict(typval_T *varp, char_u *buf, int strict); | |
18 char_u *tv_stringify(typval_T *varp, char_u *buf); | 20 char_u *tv_stringify(typval_T *varp, char_u *buf); |
19 int tv_check_lock(typval_T *tv, char_u *name, int use_gettext); | 21 int tv_check_lock(typval_T *tv, char_u *name, int use_gettext); |
20 void copy_tv(typval_T *from, typval_T *to); | 22 void copy_tv(typval_T *from, typval_T *to); |
21 int typval_compare(typval_T *typ1, typval_T *typ2, exprtype_T type, int ic); | 23 int typval_compare(typval_T *typ1, typval_T *typ2, exprtype_T type, int ic); |
22 char_u *typval_tostring(typval_T *arg); | 24 char_u *typval_tostring(typval_T *arg); |