comparison src/proto/list.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 172131507c85
children dd3b2ecf91f6
comparison
equal deleted inserted replaced
11417:47bfa931b0e7 11418:162bcd0debd7
2 void list_add_watch(list_T *l, listwatch_T *lw); 2 void list_add_watch(list_T *l, listwatch_T *lw);
3 void list_rem_watch(list_T *l, listwatch_T *lwrem); 3 void list_rem_watch(list_T *l, listwatch_T *lwrem);
4 void list_fix_watch(list_T *l, listitem_T *item); 4 void list_fix_watch(list_T *l, listitem_T *item);
5 list_T *list_alloc(void); 5 list_T *list_alloc(void);
6 int rettv_list_alloc(typval_T *rettv); 6 int rettv_list_alloc(typval_T *rettv);
7 void rettv_list_set(typval_T *rettv, list_T *l);
7 void list_unref(list_T *l); 8 void list_unref(list_T *l);
8 int list_free_nonref(int copyID); 9 int list_free_nonref(int copyID);
9 void list_free_items(int copyID); 10 void list_free_items(int copyID);
10 void list_free(list_T *l); 11 void list_free(list_T *l);
11 listitem_T *listitem_alloc(void); 12 listitem_T *listitem_alloc(void);