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 --- cc.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'cc.h') diff --git a/cc.h b/cc.h index e69bad0..5e244f0 100644 --- a/cc.h +++ b/cc.h @@ -181,14 +181,6 @@ enum typeprop { PROPFLOAT = 1<<5 }; -struct param { - char *name; - struct type *type; - enum typequal qual; - struct value *value; - struct param *next; -}; - struct bitfield { short before; /* number of bits in the storage unit before the bit-field */ short after; /* number of bits in the storage unit after the bit-field */ @@ -224,7 +216,7 @@ struct type { } array; struct { bool isprototype, isvararg, isnoreturn, paraminfo; - struct param *params; + struct decl *params; size_t nparam; } func; struct { @@ -443,8 +435,6 @@ enum typeprop typeprop(struct type *); struct member *typemember(struct type *, const char *, unsigned long long *); bool typehasint(struct type *, unsigned long long, bool); -struct param *mkparam(char *, struct type *, enum typequal); - extern struct type typevoid; extern struct type typebool; extern struct type typechar, typeschar, typeuchar; -- cgit v1.2.3