diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-06 17:51:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-06 17:51:35 +0100 |
commit | 170fcfcf250954d76fca86e3fed088ddfdb49383 (patch) | |
tree | 8bb4fddeecab3a9e4e5f8c0e6917977f72ffaf32 /src/structs.h | |
parent | 6e587dcbf319ea898ef50f7e367c46586a6f408a (diff) |
patch 8.2.0222: Vim9: optional function arguments don't work yetv8.2.0222
Problem: Vim9: optional function arguments don't work yet.
Solution: Implement optional function arguments.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index bb3e72f635..7aff8af201 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1515,6 +1515,8 @@ typedef struct type_T **uf_arg_types; // argument types (count == uf_args.ga_len) type_T *uf_ret_type; // return type garray_T uf_type_list; // types used in arg and return types + int *uf_def_arg_idx; // instruction indexes for evaluating + // uf_def_args; length: uf_def_args.ga_len + 1 char_u *uf_va_name; // name from "...name" or NULL type_T *uf_va_type; // type from "...name: type" or NULL |