diff options
author | 2003-04-01 11:32:45 -0700 | |
---|---|---|
committer | 2005-04-07 21:00:00 -0700 | |
commit | 52529deaae75bdd3d385847a6f9e024479bf358a (patch) | |
tree | af51c2e2ac57a196342fa93a669b9ef991dca8b9 /expression.h | |
parent | Evaluate more expression types: conditional expressions, statement (diff) | |
download | sparse-52529deaae75bdd3d385847a6f9e024479bf358a.tar.gz sparse-52529deaae75bdd3d385847a6f9e024479bf358a.tar.bz2 sparse-52529deaae75bdd3d385847a6f9e024479bf358a.zip |
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 2cc05e5..74ffc36 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) { |