Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
19915:882299cf6a38 | 19916:dcec86d796bc |
---|---|
11 void list_unref(list_T *l); | 11 void list_unref(list_T *l); |
12 int list_free_nonref(int copyID); | 12 int list_free_nonref(int copyID); |
13 void list_free_items(int copyID); | 13 void list_free_items(int copyID); |
14 void list_free(list_T *l); | 14 void list_free(list_T *l); |
15 listitem_T *listitem_alloc(void); | 15 listitem_T *listitem_alloc(void); |
16 void list_free_item(list_T *l, listitem_T *item); | |
17 void listitem_free(list_T *l, listitem_T *item); | 16 void listitem_free(list_T *l, listitem_T *item); |
18 void listitem_remove(list_T *l, listitem_T *item); | 17 void listitem_remove(list_T *l, listitem_T *item); |
19 long list_len(list_T *l); | 18 long list_len(list_T *l); |
20 int list_equal(list_T *l1, list_T *l2, int ic, int recursive); | 19 int list_equal(list_T *l1, list_T *l2, int ic, int recursive); |
21 listitem_T *list_find(list_T *l, long n); | 20 listitem_T *list_find(list_T *l, long n); |
40 void f_join(typval_T *argvars, typval_T *rettv); | 39 void f_join(typval_T *argvars, typval_T *rettv); |
41 int get_list_tv(char_u **arg, typval_T *rettv, int evaluate, int do_error); | 40 int get_list_tv(char_u **arg, typval_T *rettv, int evaluate, int do_error); |
42 int write_list(FILE *fd, list_T *list, int binary); | 41 int write_list(FILE *fd, list_T *list, int binary); |
43 void init_static_list(staticList10_T *sl); | 42 void init_static_list(staticList10_T *sl); |
44 void f_list2str(typval_T *argvars, typval_T *rettv); | 43 void f_list2str(typval_T *argvars, typval_T *rettv); |
45 void list_remove(typval_T *argvars, typval_T *rettv, char_u *arg_errmsg); | |
46 void f_sort(typval_T *argvars, typval_T *rettv); | 44 void f_sort(typval_T *argvars, typval_T *rettv); |
47 void f_uniq(typval_T *argvars, typval_T *rettv); | 45 void f_uniq(typval_T *argvars, typval_T *rettv); |
48 void f_filter(typval_T *argvars, typval_T *rettv); | 46 void f_filter(typval_T *argvars, typval_T *rettv); |
49 void f_map(typval_T *argvars, typval_T *rettv); | 47 void f_map(typval_T *argvars, typval_T *rettv); |
50 void f_add(typval_T *argvars, typval_T *rettv); | 48 void f_add(typval_T *argvars, typval_T *rettv); |