patch 8.1.0615: get_tv function names are not consistent
Problem: Get_tv function names are not consistent.
Solution: Rename to tv_get.
diff --git a/src/dict.c b/src/dict.c
index 9ba0231..34ba3e0 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -495,7 +495,7 @@
di = dict_find(d, key, -1);
if (di == NULL)
return NULL;
- s = get_tv_string(&di->di_tv);
+ s = tv_get_string(&di->di_tv);
if (save && s != NULL)
s = vim_strsave(s);
return s;
@@ -513,7 +513,7 @@
di = dict_find(d, key, -1);
if (di == NULL)
return 0;
- return get_tv_number(&di->di_tv);
+ return tv_get_number(&di->di_tv);
}
/*
@@ -630,10 +630,10 @@
}
if (evaluate)
{
- key = get_tv_string_buf_chk(&tvkey, buf);
+ key = tv_get_string_buf_chk(&tvkey, buf);
if (key == NULL)
{
- /* "key" is NULL when get_tv_string_buf_chk() gave an errmsg */
+ /* "key" is NULL when tv_get_string_buf_chk() gave an errmsg */
clear_tv(&tvkey);
goto failret;
}