aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/cc.h b/cc.h
index 263b209..6f2a193 100644
--- a/cc.h
+++ b/cc.h
@@ -271,15 +271,19 @@ struct decl {
char *asmname;
_Bool defined;
- /* link in list of tentative object definitions */
- struct list tentative;
- /* alignment of object storage (may be stricter than type requires) */
- int align;
-
- /* the function might have an "inline definition" (C11 6.7.4p7) */
- _Bool inlinedefn;
-
- enum builtinkind builtin;
+ union {
+ struct {
+ /* link in list of tentative object definitions */
+ struct list tentative;
+ /* alignment of object storage (may be stricter than type requires) */
+ int align;
+ } obj;
+ struct {
+ /* the function might have an "inline definition" (C11 6.7.4p7) */
+ _Bool inlinedefn;
+ } func;
+ enum builtinkind builtin;
+ } u;
};
struct scope {