Mercurial > vim
diff src/proto/dict.pro @ 15146:7903dce131d4 v8.1.0583
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()
commit https://github.com/vim/vim/commit/8f66717a1f835b8194139d158c1e2df8b30c3ef3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 14 15:38:31 2018 +0100
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()
Problem: Using illogical name for get_dict_number()/get_dict_string().
Solution: Rename to start with dict_.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Dec 2018 15:45:06 +0100 |
parents | c338c91086b9 |
children | 762fccd84b7c |
line wrap: on
line diff
--- a/src/proto/dict.pro +++ b/src/proto/dict.pro @@ -19,10 +19,10 @@ int dict_add_list(dict_T *d, char *key, int dict_add_dict(dict_T *d, char *key, dict_T *dict); long dict_len(dict_T *d); dictitem_T *dict_find(dict_T *d, char_u *key, int len); -char_u *get_dict_string(dict_T *d, char_u *key, int save); -varnumber_T get_dict_number(dict_T *d, char_u *key); +char_u *dict_get_string(dict_T *d, char_u *key, int save); +varnumber_T dict_get_number(dict_T *d, char_u *key); char_u *dict2string(typval_T *tv, int copyID, int restore_copyID); -int get_dict_tv(char_u **arg, typval_T *rettv, int evaluate); +int dict_get_tv(char_u **arg, typval_T *rettv, int evaluate); void dict_extend(dict_T *d1, dict_T *d2, char_u *action); dictitem_T *dict_lookup(hashitem_T *hi); int dict_equal(dict_T *d1, dict_T *d2, int ic, int recursive);