aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/all.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-08 06:20:24 +0200
committerlemon <lsof@mailbox.org>2022-08-08 06:20:24 +0200
commitc6ea883724ed389143dbed1806916aa09157b655 (patch)
tree313e42900944d8ec5f0c482db4910ab69959c3e0 /bootstrap/all.h
parent29a059d87af940a232443b59726da900cca83f19 (diff)
switch capture by ref
Diffstat (limited to 'bootstrap/all.h')
-rw-r--r--bootstrap/all.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap/all.h b/bootstrap/all.h
index 6055a07..3145674 100644
--- a/bootstrap/all.h
+++ b/bootstrap/all.h
@@ -403,8 +403,9 @@ struct iswitchcase {
struct euswitchcase {
const char *capt;
- int captid;
- int vval;
+ bool captptr;
+ int captid, vval;
+ const struct type *captty;
struct aggfield *fld;
struct blockstmt t;
};
@@ -436,6 +437,7 @@ struct stmt {
struct expr test;
slice_t(struct euswitchcase) cs;
struct blockstmt *f;
+ bool byptr;
} euswitch;
struct expr *retex;
};