diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-07 09:08:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 09:08:05 +0200 |
commit | ff9d2b17fb0f538b2b6d58c33c1568c699b0bb0e (patch) | |
tree | 263d5b6960716d35dbb7800f9e5180130d668fc8 /src/nvim/eval/typval.h | |
parent | fd1595514b747d8b083f78007579d869ccfbe89c (diff) | |
parent | db9b8b08e74ae8cfb08960eca0a7273538ebcdf1 (diff) | |
download | rneovim-ff9d2b17fb0f538b2b6d58c33c1568c699b0bb0e.tar.gz rneovim-ff9d2b17fb0f538b2b6d58c33c1568c699b0bb0e.tar.bz2 rneovim-ff9d2b17fb0f538b2b6d58c33c1568c699b0bb0e.zip |
Merge pull request #20100 from bfredl/luafunc
refactor(typval): change FC_CFUNC abstraction into FC_LUAREF
Diffstat (limited to 'src/nvim/eval/typval.h')
-rw-r--r-- | src/nvim/eval/typval.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h index cf7b04c8ce..6373ead1a3 100644 --- a/src/nvim/eval/typval.h +++ b/src/nvim/eval/typval.h @@ -286,12 +286,6 @@ typedef struct { /// Number of fixed variables used for arguments #define FIXVAR_CNT 12 -/// Callback interface for C function reference> -/// Used for managing functions that were registered with |register_cfunc| -typedef int (*cfunc_T)(int argcount, typval_T *argvars, typval_T *rettv, void *state); // NOLINT -/// Callback to clear cfunc_T and any associated state. -typedef void (*cfunc_free_T)(void *state); - // Structure to hold info for a function that is currently being executed. typedef struct funccall_S funccall_T; @@ -330,10 +324,7 @@ struct ufunc { garray_T uf_lines; ///< function lines int uf_profiling; ///< true when func is being profiled int uf_prof_initialized; - // Managing cfuncs - cfunc_T uf_cb; ///< C function extension callback - cfunc_free_T uf_cb_free; ///< C function extension free callback - void *uf_cb_state; ///< State of C function extension. + LuaRef uf_luaref; ///< lua callback, used if (uf_flags & FC_LUAREF) // Profiling the function as a whole. int uf_tm_count; ///< nr of calls proftime_T uf_tm_total; ///< time spent in function + children |