From fb683a2b1b962da4f00eb86c57b9c75fbcdf9908 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 30 Oct 2024 14:02:34 -0400 Subject: Organize typedef headers so the typedefs come before the namespace members --- tomo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tomo.c') 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); } } -- cgit v1.2.3