diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-18 03:59:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-18 03:59:58 +0900 |
| commit | 991245b69c53b1e2f708af34b6f829182ebf5cf2 (patch) | |
| tree | 59ac5aa154ed0c60d036bacba1fdb9171f18fb94 /parse.c | |
| parent | 2a7e1667f70c5381d3b939324cc647e51134b15c (diff) | |
| download | ducc-991245b69c53b1e2f708af34b6f829182ebf5cf2.tar.gz ducc-991245b69c53b1e2f708af34b6f829182ebf5cf2.tar.zst ducc-991245b69c53b1e2f708af34b6f829182ebf5cf2.zip | |
refactor: define va_start() as macro instead of special form
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ Parser* parser_new(TokenArray* tokens) { p->typedefs = calloc(64, sizeof(AstNode)); p->str_literals = calloc(1024, sizeof(char*)); - p->funcs[p->n_funcs].name = "va_start"; + p->funcs[p->n_funcs].name = "__ducc_va_start"; p->funcs[p->n_funcs].ty = calloc(1, sizeof(Type)); p->funcs[p->n_funcs].ty->kind = TypeKind_void; ++p->n_funcs; @@ -285,7 +285,7 @@ AstNode* parse_primary_expr(Parser* p) { AstNode* e = parse_expr(p); expect(p, TokenKind_paren_r); return e; - } else if (t->kind == TokenKind_ident || t->kind == TokenKind_va_start) { + } else if (t->kind == TokenKind_ident) { const char* name = t->value.string; if (peek_token(p)->kind == TokenKind_paren_l) { |
