comparison src/evalvars.c @ 27114:98a01021e465 v8.2.4086

patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused Commit: https://github.com/vim/vim/commit/d9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 21:15:21 2022 +0000 patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused Problem: "cctx" argument of find_func_even_dead() is unused. Solution: Remove the argument.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 22:30:05 +0100
parents 62b88e6cd791
children b73e3617c1d6
comparison
equal deleted inserted replaced
27113:93194ce58678 27114:98a01021e465
2725 found = TRUE; 2725 found = TRUE;
2726 } 2726 }
2727 } 2727 }
2728 else if (in_vim9script() && (flags & EVAL_VAR_NO_FUNC) == 0) 2728 else if (in_vim9script() && (flags & EVAL_VAR_NO_FUNC) == 0)
2729 { 2729 {
2730 ufunc_T *ufunc = find_func(name, FALSE, NULL); 2730 ufunc_T *ufunc = find_func(name, FALSE);
2731 2731
2732 // In Vim9 script we can get a function reference by using the 2732 // In Vim9 script we can get a function reference by using the
2733 // function name. 2733 // function name.
2734 if (ufunc != NULL) 2734 if (ufunc != NULL)
2735 { 2735 {
3061 if (name[0] == 'g' && name[1] == ':') 3061 if (name[0] == 'g' && name[1] == ':')
3062 { 3062 {
3063 is_global = TRUE; 3063 is_global = TRUE;
3064 fname = name + 2; 3064 fname = name + 2;
3065 } 3065 }
3066 if (find_func(fname, is_global, NULL) != NULL) 3066 if (find_func(fname, is_global) != NULL)
3067 res = OK; 3067 res = OK;
3068 } 3068 }
3069 } 3069 }
3070 3070
3071 return res; 3071 return res;