Mercurial > vim
comparison src/proto/userfunc.pro @ 26445:568f93dcdc62 v8.2.3753
patch 8.2.3753: Vim9: function unreferenced while called is never deleted
Commit: https://github.com/vim/vim/commit/2336c376d5796446d44622b0dfa8fd3fd1a5d22b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 6 15:06:54 2021 +0000
patch 8.2.3753: Vim9: function unreferenced while called is never deleted
Problem: Vim9: function unreferenced while called is never deleted.
Solution: Delete a function when no longer referenced.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Dec 2021 16:15:03 +0100 |
parents | 8aba638e91eb |
children | 4a1d2abc2016 |
comparison
equal
deleted
inserted
replaced
26444:aee00d57234d | 26445:568f93dcdc62 |
---|---|
10 char_u *fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error); | 10 char_u *fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error); |
11 ufunc_T *find_func_even_dead(char_u *name, int is_global, cctx_T *cctx); | 11 ufunc_T *find_func_even_dead(char_u *name, int is_global, cctx_T *cctx); |
12 ufunc_T *find_func(char_u *name, int is_global, cctx_T *cctx); | 12 ufunc_T *find_func(char_u *name, int is_global, cctx_T *cctx); |
13 int func_is_global(ufunc_T *ufunc); | 13 int func_is_global(ufunc_T *ufunc); |
14 int func_name_refcount(char_u *name); | 14 int func_name_refcount(char_u *name); |
15 void func_clear_free(ufunc_T *fp, int force); | |
15 int copy_func(char_u *lambda, char_u *global, ectx_T *ectx); | 16 int copy_func(char_u *lambda, char_u *global, ectx_T *ectx); |
16 int funcdepth_increment(void); | 17 int funcdepth_increment(void); |
17 void funcdepth_decrement(void); | 18 void funcdepth_decrement(void); |
18 int funcdepth_get(void); | 19 int funcdepth_get(void); |
19 void funcdepth_restore(int depth); | 20 void funcdepth_restore(int depth); |