diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-14 20:51:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:17 -0700 |
| commit | a3b3237dadefa3b9bed18ab35c4a1dae2ec354bc (patch) | |
| tree | cec622110b65c7a5d27ee82a8a52513bb5fdf37b /parse.h | |
| parent | dbf7bd47a40b7430f090d3872071522d937ef7f7 (diff) | |
| download | sparse-dev-a3b3237dadefa3b9bed18ab35c4a1dae2ec354bc.tar.gz | |
Start binding typedefs. More work needed, but this parses correctly:
typedef int a;
a b = 0;
Use new 'add_symbol()' infrastructure.
Diffstat (limited to 'parse.h')
| -rw-r--r-- | parse.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,8 @@ #ifndef PARSE_H #define PARSE_H +#include "symbol.h" + enum expression_type { EXPR_PRIMARY, EXPR_BINOP, @@ -55,7 +57,6 @@ struct statement { extern struct token *parse_expression(struct token *, struct expression **); extern struct token *statement_list(struct token *, struct statement **); extern void show_expression(struct expression *); -extern struct token *translation_unit(struct token *, struct symbol **); -extern struct token * translation_unit(struct token *, struct symbol **); +extern void translation_unit(struct token *, struct symbol_list *); #endif /* PARSE_H */ |
