diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-03 21:59:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-03 21:59:57 +0200 |
commit | d77a8525d5438cae49f670eb473ef60d87ca5f54 (patch) | |
tree | 410151fe0b7d58ac8b8c24e5fa653c25f28644b2 /src/structs.h | |
parent | 5259275347667a90fb88d8ea74331f88ad68edfc (diff) |
patch 8.2.0508: Vim9: func and partial types not done yetv8.2.0508
Problem: Vim9: func and partial types not done yet
Solution: Fill in details about func declaration, drop a separate partial
declaration.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 9f3628e3ce..efc74da175 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1342,10 +1342,14 @@ typedef struct type_S type_T; struct type_S { vartype_T tt_type; short tt_argcount; // for func, partial, -1 for unknown + short tt_flags; // TTFLAG_ values type_T *tt_member; // for list, dict, func return type - type_T *tt_args; // func arguments + type_T **tt_args; // func arguments, allocated }; +#define TTFLAG_VARARGS 1 // func args ends with "..." +#define TTFLAG_OPTARG 2 // func arg type with "?" + /* * Structure to hold an internal variable without a name. */ |