From aaa51fc734dde35ab8109bad04e478cdf4fff950 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 17 Sep 2024 15:17:13 -0400 Subject: Perform topological ordering when compiling typedefs so users don't need to think about ordering their definitions. --- ast.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 54a96d34..8a5839cb 100644 --- a/ast.h +++ b/ast.h @@ -8,6 +8,7 @@ #include #include +#include "stdlib/datatypes.h" #include "stdlib/files.h" #include "stdlib/util.h" @@ -315,5 +316,6 @@ CORD type_ast_to_xml(type_ast_t *ast); int printf_ast(FILE *stream, const struct printf_info *info, const void *const args[]); ast_list_t *get_ast_children(ast_t *ast); PUREFUNC bool is_idempotent(ast_t *ast); +void visit_topologically(ast_list_t *ast, Closure_t fn); // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3