From 9721d6ba4036c325a7bdecbf867927566f78e81e Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Dec 2025 19:32:13 +0100 Subject: some static assertions for packed type sizes --- c/c.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'c') 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 { -- cgit v1.2.3