patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()
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.
diff --git a/src/typval.c b/src/typval.c
index ebc51c6..9d0c6ac 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -992,7 +992,7 @@
* 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 @@
* Return OK or FAIL.
*/
int
-get_number_tv(
+eval_number(
char_u **arg,
typval_T *rettv,
int evaluate,
@@ -1179,7 +1179,7 @@
* 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 @@
{
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 @@
* 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 @@
* 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;