Mercurial > vim
comparison src/dict.c @ 26937:7045e9308ca3 v8.2.3997
patch 8.2.3997: Vim9: not enough testing for extend() and map()
Commit: https://github.com/vim/vim/commit/10d6f18b2f9090d19dd884827c4be59a20b446bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 4 15:54:38 2022 +0000
patch 8.2.3997: Vim9: not enough testing for extend() and map()
Problem: Vim9: not enough testing for extend() and map().
Solution: Add more test cases. Fix uncovered problems. Remove unused type
fields.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 17:00:04 +0100 |
parents | ccb9be1cdd71 |
children | b34ddbca305c |
comparison
equal
deleted
inserted
replaced
26936:6b6a26145714 | 26937:7045e9308ca3 |
---|---|
107 dict_free_contents(dict_T *d) | 107 dict_free_contents(dict_T *d) |
108 { | 108 { |
109 hashtab_free_contents(&d->dv_hashtab); | 109 hashtab_free_contents(&d->dv_hashtab); |
110 free_type(d->dv_type); | 110 free_type(d->dv_type); |
111 d->dv_type = NULL; | 111 d->dv_type = NULL; |
112 free_type(d->dv_decl_type); | |
113 d->dv_decl_type = NULL; | |
114 } | 112 } |
115 | 113 |
116 /* | 114 /* |
117 * Clear hashtab "ht" and dict items it contains. | 115 * Clear hashtab "ht" and dict items it contains. |
118 * If "ht" is not freed then you should call hash_init() next! | 116 * If "ht" is not freed then you should call hash_init() next! |