diff options
author | Michael Forney <mforney@mforney.org> | 2019-03-13 18:51:25 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-03-13 18:51:25 -0700 |
commit | 1bc3f5f9bdf956e50cb38046f41bf5f61b49d306 (patch) | |
tree | 82b2996e72756bb9e8526e97c5111720a467871d /decl.c | |
parent | 9d3c8863100040175c56d7ba53ca98a9ad637e57 (diff) |
Drop base parameter from mktype
Diffstat (limited to 'decl.c')
-rw-r--r-- | decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -176,7 +176,7 @@ tagspec(struct scope *s) if (t->kind != kind) error(&tok.loc, "redeclaration of tag '%s' with different kind", tag); } else { - t = mktype(kind, NULL); + t = mktype(kind); if (kind == TYPEBASIC) { *t = typeint; t->basic.kind = BASICENUM; @@ -463,7 +463,7 @@ declaratortypes(struct scope *s, struct list *result, char **name, bool allowabs case TLPAREN: /* function declarator */ next(); func: - t = mktype(TYPEFUNC, NULL); + t = mktype(TYPEFUNC); t->func.isprototype = false; t->func.isvararg = false; t->func.isnoreturn = false; |