From f6feab51a8537815a941fce7aea6f338e0695c20 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 4 Nov 2008 14:28:10 +0000 Subject: [PATCH] Tell the ast printer a thing ot two about EXPR_REFERENCE_ENUM_VALUE. [r23430] --- ast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ast.c b/ast.c index 21f8028..5c70076 100644 --- a/ast.c +++ b/ast.c @@ -95,6 +95,7 @@ static unsigned get_expression_precedence(expression_kind_t kind) [EXPR_UNKNOWN] = PREC_PRIMARY, [EXPR_INVALID] = PREC_PRIMARY, [EXPR_REFERENCE] = PREC_PRIMARY, + [EXPR_REFERENCE_ENUM_VALUE] = PREC_PRIMARY, [EXPR_CHARACTER_CONSTANT] = PREC_PRIMARY, [EXPR_WIDE_CHARACTER_CONSTANT] = PREC_PRIMARY, [EXPR_CONST] = PREC_PRIMARY, @@ -802,6 +803,7 @@ static void print_expression_prec(const expression_t *expression, unsigned top_p print_binary_expression(&expression->binary); break; case EXPR_REFERENCE: + case EXPR_REFERENCE_ENUM_VALUE: print_reference_expression(&expression->reference); break; case EXPR_ARRAY_ACCESS: -- 2.20.1