summaryrefslogtreecommitdiff
path: root/src/proto/list.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-30 20:25:19 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-30 20:25:19 +0200
commit45cf6e910c6d162775ca9d470fac4b6db844001f (patch)
treeb0bec5c61e2b92d5deba1e71fb4f20216d1596fe /src/proto/list.pro
parent29ae377ea7039874337bc79ace9ab2b37b9056e5 (diff)
downloadvim-git-45cf6e910c6d162775ca9d470fac4b6db844001f.tar.gz
patch 8.0.0593: duplication of code for adding a list or dict return valuev8.0.0593
Problem: Duplication of code for adding a list or dict return value. Solution: Add rettv_dict_set() and rettv_list_set(). (Yegappan Lakshmanan)
Diffstat (limited to 'src/proto/list.pro')
-rw-r--r--src/proto/list.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/list.pro b/src/proto/list.pro
index 56f0ddc4f..fe54bab2b 100644
--- a/src/proto/list.pro
+++ b/src/proto/list.pro
@@ -4,6 +4,7 @@ void list_rem_watch(list_T *l, listwatch_T *lwrem);
void list_fix_watch(list_T *l, listitem_T *item);
list_T *list_alloc(void);
int rettv_list_alloc(typval_T *rettv);
+void rettv_list_set(typval_T *rettv, list_T *l);
void list_unref(list_T *l);
int list_free_nonref(int copyID);
void list_free_items(int copyID);