projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef481ac
)
Minor simplification.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 2 Sep 2009 06:21:16 +0000
(06:21 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 2 Sep 2009 06:21:16 +0000
(06:21 +0000)
[r26466]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
dc94f49
..
6e2685b
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-2521,11
+2521,7
@@
static void append_entity(scope_t *scope, entity_t *entity)
static compound_t *parse_compound_type_specifier(bool is_struct)
{
- if (is_struct) {
- eat(T_struct);
- } else {
- eat(T_union);
- }
+ eat(is_struct ? T_struct : T_union);
symbol_t *symbol = NULL;
compound_t *compound = NULL;