patch 8.2.3320: some local functions are not static
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c08aad6..6bb1090 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1012,7 +1012,7 @@
* Return TRUE if "actual" could be "expected" and a runtime typecheck is to be
* used. Return FALSE if the types will never match.
*/
- int
+ static int
use_typecheck(type_T *actual, type_T *expected)
{
if (actual->tt_type == VAR_ANY
@@ -3579,7 +3579,7 @@
* Return a pointer to just after the name. Equal to "arg" if there is no
* valid name.
*/
- char_u *
+ static char_u *
to_name_end(char_u *arg, int use_namespace)
{
char_u *p;