aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-04-12 00:58:35 -0700
committerMichael Forney <mforney@mforney.org>2024-04-12 01:03:04 -0700
commit053705b0ebc25a355c10ea46b3df18a84a5b842e (patch)
treec8e59307bd5b25f5ff210676ab2466d81d905a70 /type.c
parent7d6efdd8626fd3a654a8f231fc1ddc481352af6a (diff)
Use struct decl for function parameters
Diffstat (limited to 'type.c')
-rw-r--r--type.c16
1 files changed, 1 insertions, 15 deletions
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;
-}