From 053705b0ebc25a355c10ea46b3df18a84a5b842e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 12 Apr 2024 00:58:35 -0700 Subject: Use struct decl for function parameters --- type.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'type.c') diff --git a/type.c b/type.c index 6798105..d8c1a6a 100644 --- a/type.c +++ b/type.c @@ -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; -} -- cgit v1.2.3