projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed26f7
)
Correct precedence of call expressions for printing.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 12 Sep 2008 18:19:48 +0000
(18:19 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 12 Sep 2008 18:19:48 +0000
(18:19 +0000)
[r21903]
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index
191f186
..
3e7f862
100644
(file)
--- a/
ast.c
+++ b/
ast.c
@@
-109,7
+109,7
@@
static unsigned get_expression_precedence(expression_kind_t kind)
[EXPR_STRING_LITERAL] = PREC_PRIM,
[EXPR_WIDE_STRING_LITERAL] = PREC_PRIM,
[EXPR_COMPOUND_LITERAL] = PREC_UNARY,
- [EXPR_CALL] = PREC_
PRIM
,
+ [EXPR_CALL] = PREC_
ACCESS
,
[EXPR_CONDITIONAL] = PREC_COND,
[EXPR_SELECT] = PREC_ACCESS,
[EXPR_ARRAY_ACCESS] = PREC_ACCESS,