ast2firm: Implement casting from complex to real types.
[cparser] / walk.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
4  */
5 #ifndef WALK_STATEMENTS_H
6 #define WALK_STATEMENTS_H
7
8 #include "ast.h"
9
10 typedef void (*statement_callback)(statement_t*, void *env);
11 typedef void (*expression_callback)(expression_t*, void *env);
12 typedef void (*declaration_callback)(entity_t*, void *env);
13
14 void walk_translation_unit(translation_unit_t *unit,
15                            declaration_callback,
16                                                    statement_callback,
17                                                    expression_callback,
18                                                    void *env);
19
20 void walk_statements(statement_t*, statement_callback, void *env);
21
22 #endif