From c6c7cc727290663e50b8a4d28e92214fa805ca95 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 18 Dec 2024 14:44:37 -0500 Subject: Revert "Deprecate "&" for stack references" This reverts commit 41c0ea851a542bcd7d54b8c5c06d70e1e00095e1. --- ast.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 82d4de03..56876665 100644 --- a/ast.h +++ b/ast.h @@ -99,7 +99,7 @@ struct type_ast_s { } VarTypeAST; struct { type_ast_t *pointed; - bool is_view:1; + bool is_stack:1; } PointerTypeAST; struct { type_ast_t *item; @@ -128,7 +128,7 @@ typedef enum { TextLiteral, TextJoin, PrintStatement, Declare, Assign, BinaryOp, UpdateAssign, - Not, Negative, HeapAllocate, + Not, Negative, HeapAllocate, StackReference, Min, Max, Array, Channel, Set, Table, TableEntry, Comprehension, FunctionDef, Lambda, @@ -194,7 +194,7 @@ struct ast_s { } BinaryOp, UpdateAssign; struct { ast_t *value; - } Not, Negative, HeapAllocate; + } Not, Negative, HeapAllocate, StackReference; struct { ast_t *lhs, *rhs, *key; } Min, Max; -- cgit v1.2.3