aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/userfunc.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-07 09:08:05 +0200
committerGitHub <noreply@github.com>2022-09-07 09:08:05 +0200
commitff9d2b17fb0f538b2b6d58c33c1568c699b0bb0e (patch)
tree263d5b6960716d35dbb7800f9e5180130d668fc8 /src/nvim/eval/userfunc.h
parentfd1595514b747d8b083f78007579d869ccfbe89c (diff)
parentdb9b8b08e74ae8cfb08960eca0a7273538ebcdf1 (diff)
downloadrneovim-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/userfunc.h')
-rw-r--r--src/nvim/eval/userfunc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/eval/userfunc.h b/src/nvim/eval/userfunc.h
index 4b7007aae9..9811f2afb3 100644
--- a/src/nvim/eval/userfunc.h
+++ b/src/nvim/eval/userfunc.h
@@ -9,6 +9,20 @@
#define HIKEY2UF(p) ((ufunc_T *)(p - offsetof(ufunc_T, uf_name)))
#define HI2UF(hi) HIKEY2UF((hi)->hi_key)
+// flags used in uf_flags
+#define FC_ABORT 0x01 // abort function on error
+#define FC_RANGE 0x02 // function accepts range
+#define FC_DICT 0x04 // Dict function, uses "self"
+#define FC_CLOSURE 0x08 // closure, uses outer scope variables
+#define FC_DELETED 0x10 // :delfunction used while uf_refcount > 0
+#define FC_REMOVED 0x20 // function redefined while uf_refcount > 0
+#define FC_SANDBOX 0x40 // function defined in the sandbox
+#define FC_DEAD 0x80 // function kept only for reference to dfunc
+#define FC_EXPORT 0x100 // "export def Func()"
+#define FC_NOARGS 0x200 // no a: variables in lambda
+#define FC_VIM9 0x400 // defined in vim9 script file
+#define FC_LUAREF 0x800 // luaref callback
+
///< Structure used by trans_function_name()
typedef struct {
dict_T *fd_dict; ///< Dictionary used.