aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-08 23:03:06 +0200
committerlemon <lsof@mailbox.org>2025-10-08 23:03:06 +0200
commit6436f4c576b65dd8220db7dcd0e7a21f33ac4933 (patch)
tree7c06011b48019761151192f63140921610d2f036 /c.h
parentde0ff34465d9c6a34a359b0b05af1f5c34905c6c (diff)
initial implementation of run-time array/aggregate initializers
Diffstat (limited to 'c.h')
-rw-r--r--c.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/c.h b/c.h
index dc6ae32..3b301a3 100644
--- a/c.h
+++ b/c.h
@@ -43,11 +43,14 @@ struct expr {
};
struct init {
- uint n;
- struct bitset *zero;
- uint *offs;
- struct { uchar off, siz; } *bitf;
- struct expr **ex;
+ uint nzero;
+ struct bitset *zero; /* bytes to zero out */
+ struct initval {
+ struct initval *next;
+ uint off;
+ uchar bitoff, bitsiz;
+ struct expr ex;
+ } *vals, **tail;
};
enum storageclass {