aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prc1/parse.h')
-rw-r--r--src/prc1/parse.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/prc1/parse.h b/src/prc1/parse.h
index 8b61d78..f0ae691 100644
--- a/src/prc1/parse.h
+++ b/src/prc1/parse.h
@@ -52,8 +52,15 @@ struct type
enum ttype {U, S, C, P, T, PTR, ARY, BUILTIN} type;
const struct tk *tk;
size_t sz, align;
- int sign;
- struct type *child, *next;
+ int sign, readonly;
+
+ union
+ {
+ const struct type *ro;
+ struct type *rw;
+ } child;
+
+ struct type *next;
union
{