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. --- types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index c496c391..0163c4dc 100644 --- a/types.h +++ b/types.h @@ -102,7 +102,7 @@ struct type_s { } ClosureType; struct { type_t *pointed; - bool is_view:1; + bool is_stack:1; } PointerType; struct { const char *name; @@ -144,7 +144,7 @@ type_t *value_type(type_t *a); typedef enum {NUM_PRECISION_EQUAL, NUM_PRECISION_LESS, NUM_PRECISION_MORE, NUM_PRECISION_INCOMPARABLE} precision_cmp_e; PUREFUNC precision_cmp_e compare_precision(type_t *a, type_t *b); PUREFUNC bool has_heap_memory(type_t *t); -PUREFUNC bool has_view_memory(type_t *t); +PUREFUNC bool has_stack_memory(type_t *t); PUREFUNC bool can_send_over_channel(type_t *t); PUREFUNC bool can_promote(type_t *actual, type_t *needed); PUREFUNC const char *enum_single_value_tag(type_t *enum_type, type_t *t); -- cgit v1.2.3