diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-24 16:38:30 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-24 16:38:30 +0300 |
commit | 67fa9e5237526b092c1ac672504e259db7f14126 (patch) | |
tree | a4407429a3b8f3f916c00e69ab9b087afecfb9dd /src/nvim/eval/typval.c | |
parent | ac55558c97d02f18b9a99cf2dd279451481c4a2f (diff) | |
download | rneovim-67fa9e5237526b092c1ac672504e259db7f14126.tar.gz rneovim-67fa9e5237526b092c1ac672504e259db7f14126.tar.bz2 rneovim-67fa9e5237526b092c1ac672504e259db7f14126.zip |
eval: Rename tv_list_remove_items() to tv_list_drop_items()
tv_list_remove_items() may cause confusion with tv_list_item_remove()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 4ebe12104f..4f717250cd 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -71,7 +71,7 @@ listitem_T *tv_list_item_remove(list_T *const l, listitem_T *const item) FUNC_ATTR_NONNULL_ALL { listitem_T *const next_item = TV_LIST_ITEM_NEXT(l, item); - tv_list_remove_items(l, item, item); + tv_list_drop_items(l, item, item); tv_clear(TV_LIST_ITEM_TV(item)); xfree(item); return next_item; @@ -261,8 +261,8 @@ void tv_list_unref(list_T *const l) /// @param[out] l List to remove from. /// @param[in] item First item to remove. /// @param[in] item2 Last item to remove. -void tv_list_remove_items(list_T *const l, listitem_T *const item, - listitem_T *const item2) +void tv_list_drop_items(list_T *const l, listitem_T *const item, + listitem_T *const item2) FUNC_ATTR_NONNULL_ALL { // Notify watchers. @@ -296,7 +296,7 @@ void tv_list_move_items(list_T *const l, listitem_T *const item, const int cnt) FUNC_ATTR_NONNULL_ALL { - tv_list_remove_items(l, item, item2); + tv_list_drop_items(l, item, item2); item->li_prev = tgt_l->lv_last; item2->li_next = NULL; if (tgt_l->lv_last == NULL) { |