Mercurial > vim
diff src/dict.c @ 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 | de63593896b3 |
line wrap: on
line diff
--- a/src/dict.c +++ b/src/dict.c @@ -487,7 +487,7 @@ dict_find(dict_T *d, char_u *key, int le * Returns NULL if the entry doesn't exist or out of memory. */ char_u * -get_dict_string(dict_T *d, char_u *key, int save) +dict_get_string(dict_T *d, char_u *key, int save) { dictitem_T *di; char_u *s; @@ -506,7 +506,7 @@ get_dict_string(dict_T *d, char_u *key, * Returns 0 if the entry doesn't exist. */ varnumber_T -get_dict_number(dict_T *d, char_u *key) +dict_get_number(dict_T *d, char_u *key) { dictitem_T *di; @@ -583,7 +583,7 @@ dict2string(typval_T *tv, int copyID, in * Return OK or FAIL. Returns NOTDONE for {expr}. */ int -get_dict_tv(char_u **arg, typval_T *rettv, int evaluate) +dict_get_tv(char_u **arg, typval_T *rettv, int evaluate) { dict_T *d = NULL; typval_T tvkey;