aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-04 13:21:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-04 13:21:56 -0400
commit6b9055db7c03c09654c0605b96a37d50bf563fa9 (patch)
treeca6ee66251fe1ba0beceff21bca52be2953b0573 /parse.c
parent8f346b48aa49ac0590c9c77edb75c63560398e1a (diff)
Deprecate readonly pointers for now
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index def58442..d365fc4b 100644
--- a/parse.c
+++ b/parse.c
@@ -637,11 +637,9 @@ type_ast_t *parse_pointer_type(parse_ctx_t *ctx, const char *pos) {
return NULL;
spaces(&pos);
- bool is_readonly = match(&pos, "%");
- spaces(&pos);
type_ast_t *type = expect(ctx, start, &pos, parse_non_optional_type,
"I couldn't parse a pointer type after this point");
- type_ast_t *ptr_type = NewTypeAST(ctx->file, start, pos, PointerTypeAST, .pointed=type, .is_stack=is_stack, .is_readonly=is_readonly);
+ type_ast_t *ptr_type = NewTypeAST(ctx->file, start, pos, PointerTypeAST, .pointed=type, .is_stack=is_stack);
spaces(&pos);
if (match(&pos, "?"))
return NewTypeAST(ctx->file, start, pos, OptionalTypeAST, .type=ptr_type);