From 5304dbcf4df1fc211b5099f4d6eb7f23dfa8c454 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 14 Nov 2023 13:19:13 +0200 Subject: save a little bit of memory --- src/actualize.c | 1 - src/parser.y | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/actualize.c b/src/actualize.c index cc7d117..aa4d409 100644 --- a/src/actualize.c +++ b/src/actualize.c @@ -497,7 +497,6 @@ static void actualize_trait_types(struct ast_node *params, { /** @todo replace trait types with arg types, should probably be merged * */ - /* TODO: this might not hold in variadic functions... */ assert(!args && !params); } diff --git a/src/parser.y b/src/parser.y index ad08cf8..433a5ab 100644 --- a/src/parser.y +++ b/src/parser.y @@ -610,6 +610,7 @@ proc : id func_sign body { $$ = gen_proc($1, $2, $3); ast_set_flags($$, $2->flags); + ast_set_flags($3, AST_FLAG_UNHYGIENIC); } | "extern" id func_sign { /* todo check that we don't have a variadic function */ -- cgit v1.3