aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.h
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-09-06 14:02:31 +0900
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-22 09:16:41 -0500
commit66b0ab088344c746fe266b8098a3b3559cdc79e2 (patch)
tree30133b4e43486b94ef547817e94aff0a198ee571 /src/nvim/eval/typval.h
parent7bcac75f30f3ed56ebced817aff281b68854f363 (diff)
downloadrneovim-66b0ab088344c746fe266b8098a3b3559cdc79e2.tar.gz
rneovim-66b0ab088344c746fe266b8098a3b3559cdc79e2.tar.bz2
rneovim-66b0ab088344c746fe266b8098a3b3559cdc79e2.zip
vim-patch:8.1.1310: named function arguments are never optional
Problem: Named function arguments are never optional. Solution: Support optional function arguments with a default value. (Andy Massimino, closes vim/vim#3952) https://github.com/vim/vim/commit/42ae78cfff171fbd7412306083fe200245d7a7a6
Diffstat (limited to 'src/nvim/eval/typval.h')
-rw-r--r--src/nvim/eval/typval.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h
index d8ede1e3ba..6fcb01aace 100644
--- a/src/nvim/eval/typval.h
+++ b/src/nvim/eval/typval.h
@@ -315,6 +315,7 @@ struct ufunc {
int uf_calls; ///< nr of active calls
bool uf_cleared; ///< func_clear() was already called
garray_T uf_args; ///< arguments
+ garray_T uf_def_args; ///< default argument expressions
garray_T uf_lines; ///< function lines
int uf_profiling; ///< true when func is being profiled
int uf_prof_initialized;