diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-04 13:21:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-04 13:21:56 -0400 |
| commit | 6b9055db7c03c09654c0605b96a37d50bf563fa9 (patch) | |
| tree | ca6ee66251fe1ba0beceff21bca52be2953b0573 /parse.c | |
| parent | 8f346b48aa49ac0590c9c77edb75c63560398e1a (diff) | |
Deprecate readonly pointers for now
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |
