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/message.c b/src/message.c
index 5a990ff..f191c78 100644
--- a/src/message.c
+++ b/src/message.c
@@ -4137,7 +4137,7 @@
else
{
++*idxp;
- n = get_tv_number_chk(&tvs[idx], &err);
+ n = tv_get_number_chk(&tvs[idx], &err);
if (err)
n = 0;
}
@@ -4146,7 +4146,7 @@
/*
* Get string argument from "idxp" entry in "tvs". First entry is 1.
- * If "tofree" is NULL get_tv_string_chk() is used. Some types (e.g. List)
+ * If "tofree" is NULL tv_get_string_chk() is used. Some types (e.g. List)
* are not converted to a string.
* If "tofree" is not NULL echo_string() is used. All types are converted to
* a string with the same format as ":echo". The caller must free "*tofree".
@@ -4167,7 +4167,7 @@
if (tofree != NULL)
s = (char *)echo_string(&tvs[idx], tofree, numbuf, get_copyID());
else
- s = (char *)get_tv_string_chk(&tvs[idx]);
+ s = (char *)tv_get_string_chk(&tvs[idx]);
}
return s;
}