From c6ea883724ed389143dbed1806916aa09157b655 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 06:20:24 +0200 Subject: switch capture by ref --- bootstrap/all.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bootstrap/all.h') 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; }; -- cgit v1.2.3