diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-01 11:32:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:00 -0700 |
| commit | 52529deaae75bdd3d385847a6f9e024479bf358a (patch) | |
| tree | af51c2e2ac57a196342fa93a669b9ef991dca8b9 /expression.h | |
| parent | 125e408d04a5b8a90fe324c7a65099c9406c6a1c (diff) | |
| download | sparse-dev-52529deaae75bdd3d385847a6f9e024479bf358a.tar.gz | |
Change the evaluate functions to return the type of the result
(or NULL) rather than just 1 (or 0).
Make "examine_symbol_type()" follow 'typeof's, and return the result.
Diffstat (limited to 'expression.h')
| -rw-r--r-- | expression.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/expression.h b/expression.h index 2cc05e57..74ffc36e 100644 --- a/expression.h +++ b/expression.h @@ -105,10 +105,10 @@ struct token *primary_expression(struct token *token, struct expression **tree); struct token *parens_expression(struct token *token, struct expression **expr, const char *where); struct token *assignment_expression(struct token *token, struct expression **tree); -extern int evaluate_symbol(struct symbol *sym); -extern int evaluate_statement(struct statement *stmt); -extern int evaluate_expression(struct expression *); -extern int evaluate_initializer(struct symbol *, struct expression *); +extern struct symbol *evaluate_symbol(struct symbol *sym); +extern struct symbol *evaluate_statement(struct statement *stmt); +extern struct symbol *evaluate_expression(struct expression *); +extern struct symbol *evaluate_initializer(struct symbol *, struct expression *); static inline struct expression *alloc_expression(struct position pos, int type) { |
