aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-17 15:17:13 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-17 15:17:13 -0400
commitaaa51fc734dde35ab8109bad04e478cdf4fff950 (patch)
tree94b8d8e0d38ae055ff6aa009763c63c1b1b92c48 /ast.h
parent2d5c8c3124dfe82c983bc91b62ed4b69be3fc647 (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 54a96d34..8a5839cb 100644
--- a/ast.h
+++ b/ast.h
@@ -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