diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-05-01 14:40:06 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-05-01 14:40:06 +0300 |
| commit | 7a68d1106b37e16c24e58bc77ce49fc6beadce9c (patch) | |
| tree | b0a3bb0b0124294b213cdfd3ae7b214bc32b19f5 /src/scope.c | |
| parent | 48cd04e1a57f076287fb6ecdd0a4236e191ff7d3 (diff) | |
| download | fwd-7a68d1106b37e16c24e58bc77ce49fc6beadce9c.tar.gz fwd-7a68d1106b37e16c24e58bc77ce49fc6beadce9c.zip | |
run formatter
+ Should really get this done automatically somehow
Diffstat (limited to 'src/scope.c')
| -rw-r--r-- | src/scope.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |
