aboutsummaryrefslogtreecommitdiff
path: root/cc.h
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 /cc.h
parent7d6efdd8626fd3a654a8f231fc1ddc481352af6a (diff)
Use struct decl for function parameters
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h12
1 files changed, 1 insertions, 11 deletions
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;