diff options
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 * |