diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-31 13:13:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-31 13:13:52 -0800 |
commit | 3199700ab667063556470bdd45bfce0905465974 (patch) | |
tree | bf845cddf803ca13a3bb7ee2da02098369de7e3d /expression.h | |
parent | [PATCH] fix sparse warnings (diff) | |
download | sparse-3199700ab667063556470bdd45bfce0905465974.tar.gz sparse-3199700ab667063556470bdd45bfce0905465974.tar.bz2 sparse-3199700ab667063556470bdd45bfce0905465974.zip |
Make local declarations be statements of their own
This removes the list of symbols for block statements, and instead makes
a declaration be a statement of its own.
This is necessary to correctly handle the case of mixed statements and
declarations correctly, since the order of declarations and statements
is meaningful.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'expression.h')
-rw-r--r-- | expression.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/expression.h b/expression.h index bd81d37..ea6ab34 100644 --- a/expression.h +++ b/expression.h @@ -143,7 +143,7 @@ extern void evaluate_symbol_list(struct symbol_list *list); extern struct symbol *evaluate_statement(struct statement *stmt); extern struct symbol *evaluate_expression(struct expression *); -extern void expand_symbol(struct symbol *); +extern int expand_symbol(struct symbol *); static inline struct expression *alloc_expression(struct position pos, int type) { |