diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
| commit | 6583fe9b389a6b4698f9364945885e6783506886 (patch) | |
| tree | 0464456d177eab051b03f29a74218a45b301f174 /src/ast.c | |
| parent | 0cfae753aa131f949253f3fba1e3a36c2bde6ac0 (diff) | |
Convert to using more zero values for `none`
Diffstat (limited to 'src/ast.c')
| -rw-r--r-- | src/ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
