0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0003: functions are global while they could be local

Problem:    Functions are global while they could be local.
Solution:   Add "static".  Add a few tests. (Yegappan Lakshmanan,
            closes #10612)
This commit is contained in:
Yegappan Lakshmanan
2022-06-29 12:55:36 +01:00
committed by Bram Moolenaar
parent c207fd2535
commit ee47eaceaa
16 changed files with 40 additions and 20 deletions

View File

@@ -32,6 +32,7 @@ static funccall_T *previous_funccal = NULL;
static void funccal_unref(funccall_T *fc, ufunc_T *fp, int force);
static void func_clear(ufunc_T *fp, int force);
static int func_free(ufunc_T *fp, int force);
static char_u *untrans_function_name(char_u *name);
void
func_init()
@@ -4073,7 +4074,7 @@ theend:
* This can be used to first search for a script-local function and fall back
* to the global function if not found.
*/
char_u *
static char_u *
untrans_function_name(char_u *name)
{
char_u *p;