spl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2ef2e21f6ba2516ffe0258e9052d4b100ba7a0ff
parent 004a8e3d304725e3e042f6df78802cda96c3136c
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 14 Oct 2023 15:17:58 -0700

compiler0: use t$void consistently

Diffstat:
Mbootstrap/compiler0.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bootstrap/compiler0.c b/bootstrap/compiler0.c @@ -1462,8 +1462,8 @@ void parse_function(void) { s->type->kind == TYPE_STRUCT ? "*" : "", s->name->text, s->next ? ", " : ""); } - emit_decl("%s);\n", ctx.scope->first ? "" : "void"); - emit_impl("%s) {\n", ctx.scope->first ? "" : "void"); + emit_decl("%s);\n", ctx.scope->first ? "" : "t$void"); + emit_impl("%s) {\n", ctx.scope->first ? "" : "t$void"); // TODO: more complete type if needed... Symbol *sym = symbol_make_global(fname, rtype);