diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-31 17:10:36 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-31 17:10:36 -0400 |
commit | 9e55cdb1ea5cd8318a1a0b7a9f64f09e8d8ad692 (patch) | |
tree | dd30665fb9ad6e40f1bead09bda20b53e5a8e184 /toc.c | |
parent | 4322b5897449db33bb8c22bae13726c285708009 (diff) |
a.b as an lvalue
Diffstat (limited to 'toc.c')
-rw-r--r-- | toc.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |