summaryrefslogtreecommitdiff
path: root/switch.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-12-30 23:13:42 -0500
committerSøren Sandmann <sandmann@redhat.com>2007-12-30 23:13:42 -0500
commitda52cfb008ef6f773fb45f82771e072f3bc440e2 (patch)
treeb171e83750abf73fc3f6ea55f0156ae1f50ad6ff /switch.c
parentbd4f7c3b1ee826e1d47a9d807861e5796698c8cb (diff)
More definition expression work
Diffstat (limited to 'switch.c')
-rw-r--r--switch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/switch.c b/switch.c
index 4a921c4..46c9afc 100644
--- a/switch.c
+++ b/switch.c
@@ -62,6 +62,11 @@ constant_expression (ast_expression_t *expr,
case AST_INDEX_EXPRESSION:
return FALSE;
break;
+
+ case AST_DEFINITION_EXPRESSION:
+ /* FIXME: It might actually be useful to allow this */
+ return FALSE;
+ break;
case AST_UNARY_EXPRESSION:
if (!constant_expression (expr->unary.expr, &result))