From 7db79f43b431b94d525308699a87a3daeff31d92 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 May 2026 00:29:53 +0200 Subject: Split endless and while loops into `loop` and `while` Signed-off-by: Mel --- boot/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/tree.c') diff --git a/boot/tree.c b/boot/tree.c index 8c00c53..4bac27e 100644 --- a/boot/tree.c +++ b/boot/tree.c @@ -981,8 +981,8 @@ enum Tree_Statement_Loop_Style TREE_STATEMENT_LOOP_STYLE_NONE, TREE_STATEMENT_LOOP_STYLE_C, // for i int = 0; i < 10; ++i {} TREE_STATEMENT_LOOP_STYLE_FOR_EACH, // for x Obj = list {} - TREE_STATEMENT_LOOP_STYLE_WHILE, // while true {} - TREE_STATEMENT_LOOP_STYLE_ENDLESS, // while {} + TREE_STATEMENT_LOOP_STYLE_WHILE, // while cond {} + TREE_STATEMENT_LOOP_STYLE_ENDLESS, // loop {} }; // stands for both `for` and `while` loops. -- cgit 1.4.1