diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-01 18:29:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-01 18:29:55 +0200 |
commit | 9a78e6df17033223ebdf499f2b02b2538601c52d (patch) | |
tree | 9b9e1ed02b97f57c83880b371c2dd4939098032a /src/typval.c | |
parent | e6b5324e3a3d354363f3c48e784c42ce3e77453f (diff) | |
download | vim-git-9a78e6df17033223ebdf499f2b02b2538601c52d.tar.gz |
patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()v8.2.1111
Problem: Inconsistent naming of get_list_tv() and eval_dict().
Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(),
eval_string(), eval_lit_string() and a few others.
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/typval.c b/src/typval.c index ebc51c6af..9d0c6acd4 100644 --- a/src/typval.c +++ b/src/typval.c @@ -992,7 +992,7 @@ tv_equal( * Return OK or FAIL. */ int -get_option_tv( +eval_option( char_u **arg, typval_T *rettv, // when NULL, only check if option exists int evaluate) @@ -1069,7 +1069,7 @@ get_option_tv( * Return OK or FAIL. */ int -get_number_tv( +eval_number( char_u **arg, typval_T *rettv, int evaluate, @@ -1179,7 +1179,7 @@ get_number_tv( * Return OK or FAIL. */ int -get_string_tv(char_u **arg, typval_T *rettv, int evaluate) +eval_string(char_u **arg, typval_T *rettv, int evaluate) { char_u *p; char_u *end; @@ -1297,7 +1297,7 @@ get_string_tv(char_u **arg, typval_T *rettv, int evaluate) { end += extra; if (end >= rettv->vval.v_string + len) - iemsg("get_string_tv() used more space than allocated"); + iemsg("eval_string() used more space than allocated"); break; } } @@ -1323,7 +1323,7 @@ get_string_tv(char_u **arg, typval_T *rettv, int evaluate) * Return OK or FAIL. */ int -get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate) +eval_lit_string(char_u **arg, typval_T *rettv, int evaluate) { char_u *p; char_u *str; @@ -1401,7 +1401,7 @@ tv2string( * Return FAIL if the name is invalid. */ int -get_env_tv(char_u **arg, typval_T *rettv, int evaluate) +eval_env_var(char_u **arg, typval_T *rettv, int evaluate) { char_u *string = NULL; int len; |