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:
committed by
Bram Moolenaar
parent
c207fd2535
commit
ee47eaceaa
@@ -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;
|
||||
|
Reference in New Issue
Block a user