comparison src/proto/dict.pro @ 27517:f00a7a2bee21 v8.2.4286

patch 8.2.4286: Vim9: strict type checking after copy() and deepcopy() Commit: https://github.com/vim/vim/commit/381692b6f1c2ec9b73a139500286ddc9347a1c01 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 2 20:01:27 2022 +0000 patch 8.2.4286: Vim9: strict type checking after copy() and deepcopy() Problem: Vim9: strict type checking after copy() and deepcopy(). Solution: Allow type to change after making a copy. (closes https://github.com/vim/vim/issues/9644)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Feb 2022 21:15:03 +0100
parents 2126feddeda6
children 62cc3b60493b
comparison
equal deleted inserted replaced
27516:fdcbdd530e4c 27517:f00a7a2bee21
10 int dict_free_nonref(int copyID); 10 int dict_free_nonref(int copyID);
11 void dict_free_items(int copyID); 11 void dict_free_items(int copyID);
12 dictitem_T *dictitem_alloc(char_u *key); 12 dictitem_T *dictitem_alloc(char_u *key);
13 void dictitem_remove(dict_T *dict, dictitem_T *item); 13 void dictitem_remove(dict_T *dict, dictitem_T *item);
14 void dictitem_free(dictitem_T *item); 14 void dictitem_free(dictitem_T *item);
15 dict_T *dict_copy(dict_T *orig, int deep, int copyID); 15 dict_T *dict_copy(dict_T *orig, int deep, int top, int copyID);
16 int dict_wrong_func_name(dict_T *d, typval_T *tv, char_u *name); 16 int dict_wrong_func_name(dict_T *d, typval_T *tv, char_u *name);
17 int dict_add(dict_T *d, dictitem_T *item); 17 int dict_add(dict_T *d, dictitem_T *item);
18 int dict_add_number(dict_T *d, char *key, varnumber_T nr); 18 int dict_add_number(dict_T *d, char *key, varnumber_T nr);
19 int dict_add_bool(dict_T *d, char *key, varnumber_T nr); 19 int dict_add_bool(dict_T *d, char *key, varnumber_T nr);
20 int dict_add_string(dict_T *d, char *key, char_u *str); 20 int dict_add_string(dict_T *d, char *key, char_u *str);