aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-12-31 13:13:52 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-31 13:13:52 -0800
commit3199700ab667063556470bdd45bfce0905465974 (patch)
treebf845cddf803ca13a3bb7ee2da02098369de7e3d /expression.h
parent[PATCH] fix sparse warnings (diff)
downloadsparse-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.h2
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)
{