diff options
Diffstat (limited to 'src/nvim/eval_defs.h')
-rw-r--r-- | src/nvim/eval_defs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/eval_defs.h b/src/nvim/eval_defs.h index a81348d124..ffaeb14e22 100644 --- a/src/nvim/eval_defs.h +++ b/src/nvim/eval_defs.h @@ -184,7 +184,7 @@ struct ufunc { int uf_tml_execed; ///< line being timed was executed scid_T uf_script_ID; ///< ID of script where function was defined, // used for s: variables - int uf_refcount; ///< for numbered function: reference count + int uf_refcount; ///< reference count, see func_name_refcount() funccall_T *uf_scoped; ///< l: local variables for closure char_u uf_name[1]; ///< name of function (actually longer); can // start with <SNR>123_ (<SNR> is K_SPECIAL @@ -218,9 +218,11 @@ struct funccall_S { int level; // top nesting level of executed function proftime_T prof_child; // time spent in a child funccall_T *caller; // calling function or NULL - int fc_refcount; + int fc_refcount; // number of user functions that reference + // this funccal int fc_copyID; // for garbage collection - garray_T fc_funcs; // list of ufunc_T* which refer this + garray_T fc_funcs; // list of ufunc_T* which keep a reference + // to "func" }; // structure used by trans_function_name() |