aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parse.h
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-14 20:51:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:17 -0700
commita3b3237dadefa3b9bed18ab35c4a1dae2ec354bc (patch)
treecec622110b65c7a5d27ee82a8a52513bb5fdf37b /parse.h
parentdbf7bd47a40b7430f090d3872071522d937ef7f7 (diff)
downloadsparse-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.h5
1 files changed, 3 insertions, 2 deletions
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 */