aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorNihal Jere <nihal@nihaljere.xyz>2021-04-22 21:04:55 -0500
committerMichael Forney <mforney@mforney.org>2021-09-13 16:17:48 -0700
commit38d906288b70102cf869a9cbb433ddc1fbf23efb (patch)
tree47437a897703bf65fb51401ff366d3041bbe734a /cc.h
parent4e9690b6cb07de9f5a1927ec0b1a8d0c99ddbbe8 (diff)
qbe, init: Handle prefixed string literals
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cc.h b/cc.h
index beb448e..7a61cf3 100644
--- a/cc.h
+++ b/cc.h
@@ -331,7 +331,11 @@ struct expr {
double f;
} constant;
struct {
- unsigned char *data;
+ union {
+ unsigned char *data;
+ uint_least16_t *data16;
+ uint_least32_t *data32;
+ };
size_t size;
} string;
struct {