diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-04-18 21:33:27 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-18 21:33:27 +0200 |
commit | 76ba252e6192580d22737708d69dad7c777fb68a (patch) | |
tree | 025ee0c172bef00112a9bb319b8f6d687f83a3b9 /src/globals.h | |
parent | baedc998b0fe3c29e1e88cc426575306b0f5ea44 (diff) |
patch 9.1.0349: Vim9: need static type for typealiasv9.1.0349
Problem: Vim9: need static type for typealias
Solution: Refactor the typval2type() function and add a static type for
typealias (Yegappan Lakshmanan)
closes: #14582
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index 29ad7edd47..2c00e5f99b 100644 --- a/src/globals.h +++ b/src/globals.h @@ -540,7 +540,10 @@ EXTERN int garbage_collect_at_exit INIT(= FALSE); #define t_class (static_types[84]) #define t_const_class (static_types[85]) -EXTERN type_T static_types[86] +#define t_typealias (static_types[86]) +#define t_const_typealias (static_types[87]) + +EXTERN type_T static_types[88] #ifdef DO_INIT = { // 0: t_unknown @@ -714,6 +717,10 @@ EXTERN type_T static_types[86] // 84: t_class {VAR_CLASS, 0, 0, TTFLAG_STATIC, NULL, NULL, NULL}, {VAR_CLASS, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL}, + + // 86: t_typealias + {VAR_TYPEALIAS, 0, 0, TTFLAG_STATIC, NULL, NULL, NULL}, + {VAR_TYPEALIAS, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL}, } #endif ; |