Mercurial > vim
diff src/vim9compile.c @ 25567:0082503ff2ff v8.2.3320
patch 8.2.3320: some local functions are not static
Commit: https://github.com/vim/vim/commit/8ee52affe7fd4daa03e002bc06611f0a8c3bcd5b
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Aug 9 19:59:06 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Aug 2021 20:00:06 +0200 |
parents | 446f478d6fb1 |
children | 9f691e8a74e3 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1012,7 +1012,7 @@ generate_SETTYPE( * 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 @@ theend: * 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;