aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-01 12:43:00 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-01 12:43:00 -0400
commit6583fe9b389a6b4698f9364945885e6783506886 (patch)
tree0464456d177eab051b03f29a74218a45b301f174 /src/ast.c
parent0cfae753aa131f949253f3fba1e3a36c2bde6ac0 (diff)
Convert to using more zero values for `none`
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast.c b/src/ast.c
index 80127cf7..a5d0ba81 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -358,7 +358,7 @@ void visit_topologically(ast_list_t *asts, Closure_t fn) {
// - visiting typedefs' dependencies first
// - then function/variable declarations
- Table_t definitions = {};
+ Table_t definitions = EMPTY_TABLE;
for (ast_list_t *stmt = asts; stmt; stmt = stmt->next) {
if (stmt->ast->tag == StructDef) {
DeclareMatch(def, stmt->ast, StructDef);
@@ -373,7 +373,7 @@ void visit_topologically(ast_list_t *asts, Closure_t fn) {
}
void (*visit)(void *, ast_t *) = (void *)fn.fn;
- Table_t visited = {};
+ Table_t visited = EMPTY_TABLE;
// First: 'use' statements in order:
for (ast_list_t *stmt = asts; stmt; stmt = stmt->next) {
if (stmt->ast->tag == Use) visit(fn.userdata, stmt->ast);