aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-30 14:02:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-30 14:02:34 -0400
commitfb683a2b1b962da4f00eb86c57b9c75fbcdf9908 (patch)
treeb8d3cb84bcc1d0255cba900f32e037d6f575a3d0 /tomo.c
parentbdca4fc6e1d3a9ce1306313528067f012a60341b (diff)
Organize typedef headers so the typedefs come before the namespace
members
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tomo.c b/tomo.c
index 632b4e83..1832c29a 100644
--- a/tomo.c
+++ b/tomo.c
@@ -203,10 +203,12 @@ static void _compile_statement_header_for_library(libheader_info_t *info, ast_t
Text_t path = Text$from_str(use->path);
if (!Table$get(*info->used_imports, &path, Table$info(&Path$info, &Path$info))) {
Table$set(info->used_imports, &path, &path, Table$info(&Text$info, &Text$info));
- CORD_put(compile_statement_header(info->env, ast), info->output);
+ CORD_put(compile_statement_type_header(info->env, ast), info->output);
+ CORD_put(compile_statement_namespace_header(info->env, ast), info->output);
}
} else {
- CORD_put(compile_statement_header(info->env, ast), info->output);
+ CORD_put(compile_statement_type_header(info->env, ast), info->output);
+ CORD_put(compile_statement_namespace_header(info->env, ast), info->output);
}
}