From a3b3237dadefa3b9bed18ab35c4a1dae2ec354bc Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 14 Mar 2003 20:51:06 -0700 Subject: Start binding typedefs. More work needed, but this parses correctly: typedef int a; a b = 0; Use new 'add_symbol()' infrastructure. --- parse.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'parse.h') diff --git a/parse.h b/parse.h index 302d8ff8..8aa16000 100644 --- a/parse.h +++ b/parse.h @@ -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 */ -- cgit 1.2.3-korg