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.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ast.c') diff --git a/ast.c b/ast.c index 421f806e..bfd15357 100644 --- a/ast.c +++ b/ast.c @@ -115,6 +115,7 @@ CORD ast_to_xml(ast_t *ast) T(Negative, "%r", ast_to_xml(data.value)) T(Not, "%r", ast_to_xml(data.value)) T(HeapAllocate, "%r", ast_to_xml(data.value)) + T(StackReference, "%r", ast_to_xml(data.value)) T(Min, "%r%r%r", ast_to_xml(data.lhs), ast_to_xml(data.rhs), optional_tagged("key", data.key)) T(Max, "%r%r%r", ast_to_xml(data.lhs), ast_to_xml(data.rhs), optional_tagged("key", data.key)) T(Array, "%r%r", optional_tagged_type("item-type", data.item_type), ast_list_to_xml(data.items)) @@ -177,8 +178,8 @@ CORD type_ast_to_xml(type_ast_t *t) #define T(type, ...) case type: { auto data = t->__data.type; (void)data; return CORD_asprintf(__VA_ARGS__); } T(UnknownTypeAST, "") T(VarTypeAST, "%s", data.name) - T(PointerTypeAST, "%r", - data.is_view ? "yes" : "no", type_ast_to_xml(data.pointed)) + T(PointerTypeAST, "%r", + data.is_stack ? "yes" : "no", type_ast_to_xml(data.pointed)) T(ArrayTypeAST, "%r", type_ast_to_xml(data.item)) T(SetTypeAST, "%r", type_ast_to_xml(data.item)) T(ChannelTypeAST, "%r", type_ast_to_xml(data.item)) -- cgit v1.2.3