aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-08 13:08:39 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-08 13:08:39 +0100
commit2b96be0ae8b74e6081a00d740dfcbe205f76fb22 (patch)
tree780289c3b3e5e72b3f96409c290007498bcec84e /src/check_decl.cpp
parent2a89d8021cf95f4a4d7dab269a262a1d2237f71b (diff)
Remove unnecessary `typedef` usage
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 1e7e23398..356cd488b 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -58,7 +58,7 @@ Type *check_init_variable(Checker *c, Entity *e, Operand *operand, String contex
return e->type;
}
-void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, AstNodeArray inits, String context_name) {
+void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, Array<AstNode *> inits, String context_name) {
if ((lhs == NULL || lhs_count == 0) && inits.count == 0) {
return;
}
@@ -431,7 +431,7 @@ void check_var_decl(Checker *c, Entity *e, Entity **entities, isize entity_count
}
}
- AstNodeArray inits;
+ Array<AstNode *> inits;
array_init(&inits, c->allocator, 1);
array_add(&inits, init_expr);
check_init_variables(c, entities, entity_count, inits, str_lit("variable declaration"));