1 #ifndef WALK_STATEMENTS_H 2 #define WALK_STATEMENTS_H 3 4 #include "ast.h" 5 6 typedef void (*statement_callback)(statement_t*, void *env); 7 typedef void (*expression_callback)(expression_t*, void *env); 8 typedef void (*declaration_callback)(entity_t*, void *env); 9 10 void walk_translation_unit(translation_unit_t *unit, 11 declaration_callback, 12 statement_callback, 13 expression_callback, 14 void *env); 15 16 void walk_statements(statement_t*, statement_callback, void *env); 17 18 #endif 19