aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-22 08:58:43 +0100
committerlemon <lsof@mailbox.org>2025-12-22 08:58:43 +0100
commit6bb6fb79350945951b26864d2a8c433053bbca0d (patch)
treeb92f9ea88f5d6aae2b798d6035ce1d066e1ed917 /c/c.h
parent6fc94fd3f7edad42e77426153f9933376b621142 (diff)
c: Fix some dumb uses of initialized stuff
Can't figure out what's wrong with the change to struct expr from 9721d6ba40 but it makes valgrind complain and causes miscompilation of the compiler itself..
Diffstat (limited to 'c/c.h')
-rw-r--r--c/c.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/c/c.h b/c/c.h
index 45ce509..a31a1fd 100644
--- a/c/c.h
+++ b/c/c.h
@@ -25,18 +25,16 @@ enum exprkind {
struct expr {
uchar t;
uchar qual;
+ ushort narg; /* ECALL */
union type ty;
struct span span;
union {
struct {
struct expr *sub; /* child(ren) */
- union {
- struct exgetfld {
- ushort off;
- uchar bitsiz, bitoff;
- } fld; /* EGETF */
- ushort narg; /* ECALL */
- };
+ struct exgetfld {
+ ushort off;
+ uchar bitsiz, bitoff;
+ } fld; /* EGETF */
};
uvlong u; vlong i; double f; /* ENUMLIT */
struct {