aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
Diffstat (limited to 'type.c')
-rw-r--r--type.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/type.c b/type.c
index b3453b9..563b3bf 100644
--- a/type.c
+++ b/type.c
@@ -8,14 +8,14 @@
#define INTTYPE(k, n, s, p) { \
.kind = k, .size = n, .align = n, .u.basic.issigned = s, \
- .prop = PROPOBJECT|PROPSCALAR|PROPARITH|PROPREAL|PROPINT|p, \
+ .prop = PROPSCALAR|PROPARITH|PROPREAL|PROPINT|p, \
}
#define FLTTYPE(k, n) { \
.kind = k, .size = n, .align = n, \
- .prop = PROPOBJECT|PROPSCALAR|PROPARITH|PROPREAL|PROPFLOAT, \
+ .prop = PROPSCALAR|PROPARITH|PROPREAL|PROPFLOAT, \
}
-struct type typevoid = {.kind = TYPEVOID, .prop = PROPOBJECT, .incomplete = true};
+struct type typevoid = {.kind = TYPEVOID, .incomplete = true};
struct type typebool = INTTYPE(TYPEBOOL, 1, false, 0);
@@ -61,7 +61,7 @@ mkpointertype(struct type *base, enum typequal qual)
{
struct type *t;
- t = mktype(TYPEPOINTER, PROPOBJECT|PROPDERIVED|PROPSCALAR);
+ t = mktype(TYPEPOINTER, PROPSCALAR);
t->base = base;
t->qual = qual;
t->size = 8;
@@ -75,7 +75,7 @@ mkarraytype(struct type *base, enum typequal qual, unsigned long long len)
{
struct type *t;
- t = mktype(TYPEARRAY, PROPOBJECT|PROPDERIVED|PROPAGGR);
+ t = mktype(TYPEARRAY, 0);
t->base = base;
t->qual = qual;
t->u.array.length = len;