aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-12 13:50:06 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-12 13:50:06 -0400
commitd143c72b2267883c229a09cc27bbeafcf2c3fd70 (patch)
tree90312f0e4ee553e0588dc3c45f955b5184bf3778 /types.h
parenta20f522fd61698282d3e01931260c588dd7f40b1 (diff)
WIP, but functional interfaces
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 7 insertions, 0 deletions
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;
@@ -99,6 +100,12 @@ struct type_s {
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;
struct env_s *env;