projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e6e0e2
)
Do not throw away declaration modifiers parsed in parse_inner_declarator().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 25 Aug 2008 05:54:40 +0000
(
05:54
+0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 25 Aug 2008 05:54:40 +0000
(
05:54
+0000)
[r21424]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
217b92b
..
d0683ad
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-3766,7
+3766,7
@@
static construct_type_t *parse_inner_declarator(declaration_t *declaration,
construct_type_t *last = NULL;
gnu_attribute_t *attributes = NULL;
- decl
_modifiers_t modifiers
= parse_attributes(&attributes);
+ decl
aration->modifiers |
= parse_attributes(&attributes);
/* pointers */
while (token.type == '*') {
@@
-3781,7
+3781,7
@@
static construct_type_t *parse_inner_declarator(declaration_t *declaration,
}
/* TODO: find out if this is correct */
- modifiers |= parse_attributes(&attributes);
+
declaration->
modifiers |= parse_attributes(&attributes);
}
construct_type_t *inner_types = NULL;