Mercurial > vim
comparison src/vim9script.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 | 70ad00a80185 |
children | 5b267700e6ab |
comparison
equal
deleted
inserted
replaced
27113:93194ce58678 | 27114:98a01021e465 |
---|---|
130 // old imports and script variables are no longer valid | 130 // old imports and script variables are no longer valid |
131 free_imports_and_script_vars(sid); | 131 free_imports_and_script_vars(sid); |
132 } | 132 } |
133 si->sn_state = SN_STATE_HAD_COMMAND; | 133 si->sn_state = SN_STATE_HAD_COMMAND; |
134 | 134 |
135 // Store the prefix with the script. It isused to find exported functions. | 135 // Store the prefix with the script, it is used to find exported functions. |
136 if (si->sn_autoload_prefix == NULL) | 136 if (si->sn_autoload_prefix == NULL) |
137 si->sn_autoload_prefix = get_autoload_prefix(si); | 137 si->sn_autoload_prefix = get_autoload_prefix(si); |
138 | 138 |
139 current_sctx.sc_version = SCRIPT_VERSION_VIM9; | 139 current_sctx.sc_version = SCRIPT_VERSION_VIM9; |
140 si->sn_version = SCRIPT_VERSION_VIM9; | 140 si->sn_version = SCRIPT_VERSION_VIM9; |
710 funcname[0] = K_SPECIAL; | 710 funcname[0] = K_SPECIAL; |
711 funcname[1] = KS_EXTRA; | 711 funcname[1] = KS_EXTRA; |
712 funcname[2] = (int)KE_SNR; | 712 funcname[2] = (int)KE_SNR; |
713 sprintf((char *)funcname + 3, "%ld_%s", (long)sid, name); | 713 sprintf((char *)funcname + 3, "%ld_%s", (long)sid, name); |
714 } | 714 } |
715 *ufunc = find_func(funcname, FALSE, NULL); | 715 *ufunc = find_func(funcname, FALSE); |
716 if (funcname != buffer) | 716 if (funcname != buffer) |
717 vim_free(funcname); | 717 vim_free(funcname); |
718 | 718 |
719 if (*ufunc == NULL) | 719 if (*ufunc == NULL) |
720 { | 720 { |