Mercurial > vim
diff src/proto/list.pro @ 19916:dcec86d796bc v8.2.0514
patch 8.2.0514: several global functions are used in only one file
Commit: https://github.com/vim/vim/commit/bdff012f4416c75e65950a19688533c4def5abf6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 5 18:56:05 2020 +0200
patch 8.2.0514: several global functions are used in only one file
Problem: Several global functions are used in only one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5884)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Apr 2020 19:00:37 +0200 |
parents | 94eda51ba9ba |
children | 1fa0ace0ba65 |
line wrap: on
line diff
--- a/src/proto/list.pro +++ b/src/proto/list.pro @@ -13,7 +13,6 @@ int list_free_nonref(int copyID); void list_free_items(int copyID); void list_free(list_T *l); listitem_T *listitem_alloc(void); -void list_free_item(list_T *l, listitem_T *item); void listitem_free(list_T *l, listitem_T *item); void listitem_remove(list_T *l, listitem_T *item); long list_len(list_T *l); @@ -42,7 +41,6 @@ int get_list_tv(char_u **arg, typval_T * int write_list(FILE *fd, list_T *list, int binary); void init_static_list(staticList10_T *sl); void f_list2str(typval_T *argvars, typval_T *rettv); -void list_remove(typval_T *argvars, typval_T *rettv, char_u *arg_errmsg); void f_sort(typval_T *argvars, typval_T *rettv); void f_uniq(typval_T *argvars, typval_T *rettv); void f_filter(typval_T *argvars, typval_T *rettv);