aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-27 19:54:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-27 20:35:12 -0400
commit41c0ea851a542bcd7d54b8c5c06d70e1e00095e1 (patch)
tree6880cd0c58c10545a9723115f712d86e12224347 /types.h
parentdf258c1773adef59994da2e010f74610eb81a1b2 (diff)
Deprecate "&" for stack references
Diffstat (limited to 'types.h')
-rw-r--r--types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.h b/types.h
index 029692ad..96e0b6c5 100644
--- a/types.h
+++ b/types.h
@@ -101,7 +101,7 @@ struct type_s {
} ClosureType;
struct {
type_t *pointed;
- bool is_stack:1;
+ bool is_view:1;
} PointerType;
struct {
const char *name;
@@ -143,7 +143,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_stack_memory(type_t *t);
+PUREFUNC bool has_view_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);