commit 876cfaba62729525ef7bd982ada6a58c281b6989
parent cb37a166adec1d34f3055566010f295af1a4e3fa
Author: m21c <ho*******@gmail.com>
Date: Sat, 5 Feb 2022 13:09:12 +0100
better commenting on Type-struct
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler.c b/compiler.c
@@ -409,7 +409,7 @@ struct Type {
TypeKind kind;
SrcLoc loc;
- Type *target;
+ Type *target; /* pointer, array, tuple-lht, function param-list, ... */
size_t size, align;
@@ -426,7 +426,7 @@ struct Type {
} array;
Node *val;
- Type *rtarget; /* for tuples and function paramlist */
+ Type *rtarget; /* for tuples (rht) and function return-type */
} u;
Decl *module;