From 5f1827beb3199a9f4cec44de5001d599be55cfc8 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Aug 2022 12:52:29 +0200 Subject: EUSwitch and #tag --- src/cffc.hff | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/cffc.hff') diff --git a/src/cffc.hff b/src/cffc.hff index c8c90ac..131b3d9 100644 --- a/src/cffc.hff +++ b/src/cffc.hff @@ -184,6 +184,16 @@ struct ISwitchCase { t [#]Stmt } +struct EUSwitchCase { + capt *const u8, + captptr bool, + captid int, + variant int, + captty *const Type, + fld *AggField, + t [#]Stmt +} + struct Stmt { loc Loc, u enum union { @@ -202,7 +212,8 @@ struct Stmt { Return Option, Expr Expr, Decl *Decl, - ISwitch struct { ex Expr, cs [#]ISwitchCase, f [#]Stmt } + ISwitch struct { ex Expr, cs [#]ISwitchCase, f [#]Stmt }, + EUSwitch struct { ex Expr, cs [#]EUSwitchCase, f [#]Stmt }, } } -- cgit v1.2.3