diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-17 15:17:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-17 15:17:13 -0400 |
| commit | aaa51fc734dde35ab8109bad04e478cdf4fff950 (patch) | |
| tree | 94b8d8e0d38ae055ff6aa009763c63c1b1b92c48 /ast.h | |
| parent | 2d5c8c3124dfe82c983bc91b62ed4b69be3fc647 (diff) | |
Perform topological ordering when compiling typedefs so users don't need
to think about ordering their definitions.
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8,6 +8,7 @@ #include <stdlib.h> #include <printf.h> +#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 |
