diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-04 13:43:16 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-04 13:43:16 -0700 |
commit | 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c (patch) | |
tree | 0155f5209d10487277fee876915eaa954742e66f /type.c | |
parent | a1b0a66e186af524a76747fc990df07b6d325f38 (diff) |
Prepare for supporting architecture-specific va_list type
Diffstat (limited to 'type.c')
-rw-r--r-- | type.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 * |