aboutsummaryrefslogtreecommitdiff
path: root/src/cffc.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-16 09:19:33 +0200
committerlemon <lsof@mailbox.org>2022-08-16 09:19:33 +0200
commit1ca77f60626666fba792db407dd11ea9b597d9cf (patch)
tree0e5ea52e457474899ad5f0076bbe658e67626925 /src/cffc.hff
parent04c7892134d49f3b295a51cc741affe9f02e374d (diff)
binary operators and more stuff
Diffstat (limited to 'src/cffc.hff')
-rw-r--r--src/cffc.hff3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cffc.hff b/src/cffc.hff
index 3ff78c4..8cdf655 100644
--- a/src/cffc.hff
+++ b/src/cffc.hff
@@ -90,6 +90,7 @@ struct Parser {
tokloc Loc,
curloc Loc,
eof bool,
+ is_header bool,
peekchr Option<int>,
peektok Option<Tok>,
}
@@ -242,7 +243,7 @@ fn mkarrtype(len i64, konst bool, child *const Type) *const Type {
fn mkptrtype(child *const Type) *const Type {
return interntype({
g_targ.ptrsize,
- .u: :Ptr child
+ .u: :Ptr(child)
});
}
extern fn isnumtype(ty *const Type) bool;