summaryrefslogtreecommitdiffstats
path: root/src/proto/dict.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/dict.pro
parent29ae377ea7039874337bc79ace9ab2b37b9056e5 (diff)
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/dict.pro')
-rw-r--r--src/proto/dict.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/dict.pro b/src/proto/dict.pro
index 61f4dfa5b2..2a7626338e 100644
--- a/src/proto/dict.pro
+++ b/src/proto/dict.pro
@@ -1,6 +1,7 @@
/* dict.c */
dict_T *dict_alloc(void);
int rettv_dict_alloc(typval_T *rettv);
+void rettv_dict_set(typval_T *rettv, dict_T *d);
void dict_unref(dict_T *d);
int dict_free_nonref(int copyID);
void dict_free_items(int copyID);