aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.h
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-20 19:32:13 +0100
committer lemon<lsof@mailbox.org>2025-12-20 19:32:13 +0100
commit9721d6ba4036c325a7bdecbf867927566f78e81e (patch)
treef122f18c10b1a420585cb4e4127cdf05069d1942 /c/c.h
parente6fbab42185f4fb4e3a3b1e3e93eaa5d3d81b7c7 (diff)
some static assertions for packed type sizes
Diffstat (limited to 'c/c.h')
-rw-r--r--c/c.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/c/c.h b/c/c.h
index 787db5d..45ce509 100644
--- a/c/c.h
+++ b/c/c.h
@@ -25,16 +25,18 @@ enum exprkind {
struct expr {
uchar t;
uchar qual;
- ushort narg; /* ECALL */
union type ty;
struct span span;
union {
struct {
- struct expr *sub;
- struct exgetfld {
- ushort off;
- uchar bitsiz, bitoff;
- } fld; /* EGETF */
+ struct expr *sub; /* child(ren) */
+ union {
+ struct exgetfld {
+ ushort off;
+ uchar bitsiz, bitoff;
+ } fld; /* EGETF */
+ ushort narg; /* ECALL */
+ };
};
uvlong u; vlong i; double f; /* ENUMLIT */
struct {