diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-12 00:58:35 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-12 01:03:04 -0700 |
commit | 053705b0ebc25a355c10ea46b3df18a84a5b842e (patch) | |
tree | c8e59307bd5b25f5ff210676ab2466d81d905a70 /type.c | |
parent | 7d6efdd8626fd3a654a8f231fc1ddc481352af6a (diff) |
Use struct decl for function parameters
Diffstat (limited to 'type.c')
-rw-r--r-- | type.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -112,7 +112,7 @@ bool typecompatible(struct type *t1, struct type *t2) { struct type *tmp; - struct param *p1, *p2; + struct decl *p1, *p2; if (t1 == t2) return true; @@ -276,17 +276,3 @@ typehasint(struct type *t, unsigned long long i, bool sign) return t->u.basic.issigned && i >= -1ull << (t->size << 3) - 1; return i <= 0xffffffffffffffffull >> (8 - t->size << 3) + t->u.basic.issigned; } - -struct param * -mkparam(char *name, struct type *t, enum typequal tq) -{ - struct param *p; - - p = xmalloc(sizeof(*p)); - p->name = name; - p->type = t; - p->qual = tq; - p->next = NULL; - - return p; -} |