From 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 4 Sep 2021 13:43:16 -0700 Subject: Prepare for supporting architecture-specific va_list type --- type.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'type.c') 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 * -- cgit v1.2.3