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 /cc.h | |
parent | 7d6efdd8626fd3a654a8f231fc1ddc481352af6a (diff) |
Use struct decl for function parameters
Diffstat (limited to 'cc.h')
-rw-r--r-- | cc.h | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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; |