From 7a68d1106b37e16c24e58bc77ce49fc6beadce9c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 14:40:06 +0300 Subject: run formatter + Should really get this done automatically somehow --- src/scope.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/scope.c') diff --git a/src/scope.c b/src/scope.c index e49b828..251edef 100644 --- a/src/scope.c +++ b/src/scope.c @@ -71,7 +71,9 @@ void destroy_scope(struct scope *scope) int scope_add_symbol(struct scope *scope, struct ast *symbol) { assert(symbol->k == AST_VAR_DEF || symbol->k == AST_PROC_DEF); - struct ast **exists = visible_insert(&scope->symbols, symbol->s, symbol); + struct ast **exists = visible_insert(&scope->symbols, symbol->s, + symbol + ); if (!exists) { internal_error("failed inserting symbol into scope"); return -1; @@ -187,7 +189,9 @@ struct ast *file_scope_find_trait(struct scope *scope, char *id) int scope_add_template(struct scope *scope, struct ast *template) { - struct ast **exists = visible_insert(&scope->templates, template->s, template); + struct ast **exists = visible_insert(&scope->templates, template->s, + template + ); if (!exists) { internal_error("failed inserting template into scope"); return -1; -- cgit v1.2.3