projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab8e21
)
Fix parse error when parsing functions returning function pointers: The parameter...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 27 Aug 2008 17:38:25 +0000
(17:38 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 27 Aug 2008 17:38:25 +0000
(17:38 +0000)
[r21523]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
3f93c10
..
e702ca8
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-3819,6
+3819,8
@@
static construct_type_t *parse_inner_declarator(declaration_t *declaration,
next_token();
add_anchor_token(')');
inner_types = parse_inner_declarator(declaration, may_be_abstract);
+ /* All later declarators only modify the return type, not declaration */
+ declaration = NULL;
rem_anchor_token(')');
expect(')');
break;