From d143c72b2267883c229a09cc27bbeafcf2c3fd70 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 12 May 2024 13:50:06 -0400 Subject: WIP, but functional interfaces --- types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'types.h') diff --git a/types.h b/types.h index df913de5..1de2a94f 100644 --- a/types.h +++ b/types.h @@ -52,6 +52,7 @@ struct type_s { PointerType, StructType, EnumType, + InterfaceType, TypeInfoType, ModuleType, } tag; @@ -98,6 +99,12 @@ struct type_s { bool opaque; struct env_s *env; } EnumType; + struct { + const char *name, *type_parameter; + arg_t *fields; + bool opaque; + struct env_s *env; + } InterfaceType; struct { const char *name; type_t *type; -- cgit v1.2.3