summaryrefslogtreecommitdiff
path: root/toc.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-31 17:10:36 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-31 17:10:36 -0400
commit9e55cdb1ea5cd8318a1a0b7a9f64f09e8d8ad692 (patch)
treedd30665fb9ad6e40f1bead09bda20b53e5a8e184 /toc.c
parent4322b5897449db33bb8c22bae13726c285708009 (diff)
a.b as an lvalue
Diffstat (limited to 'toc.c')
-rw-r--r--toc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/toc.c b/toc.c
index 62ffc0b..243baaa 100644
--- a/toc.c
+++ b/toc.c
@@ -22,6 +22,14 @@
#include "tokenizer.c"
#include "parse.c"
#include "scope.c"
+
+
+static Type *type_inner(Type *t) {
+ while (t->kind == TYPE_USER)
+ t = ident_typeval(t->user.name);
+ return t;
+}
+
#include "eval.c"
#include "types.c"
static bool cgen_decls_file(CGenerator *g, ParsedFile *f);