comparison src/proto/dict.pro @ 11418:162bcd0debd7 v8.0.0593

patch 8.0.0593: duplication of code for adding a list or dict return value commit https://github.com/vim/vim/commit/45cf6e910c6d162775ca9d470fac4b6db844001f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 30 20:25:19 2017 +0200 patch 8.0.0593: duplication of code for adding a list or dict return value Problem: Duplication of code for adding a list or dict return value. Solution: Add rettv_dict_set() and rettv_list_set(). (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Apr 2017 20:30:04 +0200
parents 3e96d9ed2ca1
children 6e81a68d63a1
comparison
equal deleted inserted replaced
11417:47bfa931b0e7 11418:162bcd0debd7
1 /* dict.c */ 1 /* dict.c */
2 dict_T *dict_alloc(void); 2 dict_T *dict_alloc(void);
3 int rettv_dict_alloc(typval_T *rettv); 3 int rettv_dict_alloc(typval_T *rettv);
4 void rettv_dict_set(typval_T *rettv, dict_T *d);
4 void dict_unref(dict_T *d); 5 void dict_unref(dict_T *d);
5 int dict_free_nonref(int copyID); 6 int dict_free_nonref(int copyID);
6 void dict_free_items(int copyID); 7 void dict_free_items(int copyID);
7 dictitem_T *dictitem_alloc(char_u *key); 8 dictitem_T *dictitem_alloc(char_u *key);
8 void dictitem_remove(dict_T *dict, dictitem_T *item); 9 void dictitem_remove(dict_T *dict, dictitem_T *item);