aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-03-31 12:33:35 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:55 -0700
commit10572801b6c976889ed0ae322d5a31e2c0b2d28d (patch)
tree747896f01433bda0926584dbd580af24eda75af4 /expression.h
parentMake structure/union declaration printout prettier. (diff)
downloadsparse-10572801b6c976889ed0ae322d5a31e2c0b2d28d.tar.gz
sparse-10572801b6c976889ed0ae322d5a31e2c0b2d28d.tar.bz2
sparse-10572801b6c976889ed0ae322d5a31e2c0b2d28d.zip
Evaluate initializers separately. We'll need this to handle
type discovery (initializers are not independent expressions).
Diffstat (limited to 'expression.h')
-rw-r--r--expression.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/expression.h b/expression.h
index c0d701d..8eb069e 100644
--- a/expression.h
+++ b/expression.h
@@ -110,6 +110,7 @@ struct token *parens_expression(struct token *token, struct expression **expr, c
struct token *assignment_expression(struct token *token, struct expression **tree);
extern int evaluate_expression(struct expression *);
+extern int evaluate_initializer(struct symbol *, struct expression *);
static inline struct expression *alloc_expression(struct position pos, int type)
{