aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-04 13:43:16 -0700
committerMichael Forney <mforney@mforney.org>2021-09-04 13:43:16 -0700
commit16c718729adfaf40cf22aa4efeafb0d92ef5ee3c (patch)
tree0155f5209d10487277fee876915eaa954742e66f /type.c
parenta1b0a66e186af524a76747fc990df07b6d325f38 (diff)
Prepare for supporting architecture-specific va_list type
Diffstat (limited to 'type.c')
-rw-r--r--type.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/type.c b/type.c
index f58247a..a97175a 100644
--- a/type.c
+++ b/type.c
@@ -39,17 +39,13 @@ struct type typefloat = FLTTYPE(TYPEFLOAT, 4);
struct type typedouble = FLTTYPE(TYPEDOUBLE, 8);
struct type typeldouble = FLTTYPE(TYPELDOUBLE, 16);
-static struct type typevaliststruct = {
- .kind = TYPESTRUCT, .size = 32, .align = 8,
- .prop = PROPOBJECT|PROPAGGR,
-};
struct type typevalist = {
- .kind = TYPEARRAY, .size = 32, .align = 8, .array = {1}, .base = &typevaliststruct,
+ .kind = TYPEARRAY, .size = 32, .align = 8, .array = {1},
.prop = PROPOBJECT|PROPDERIVED|PROPAGGR,
-};
-struct type typevalistptr = {
- .kind = TYPEPOINTER, .size = 8, .align = 8, .base = &typevaliststruct,
- .prop = PROPOBJECT|PROPDERIVED|PROPSCALAR,
+ .base = &(struct type){
+ .kind = TYPESTRUCT, .size = 32, .align = 8,
+ .prop = PROPOBJECT|PROPAGGR,
+ },
};
struct type *