projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc1eac
)
Fix parsing of K&R style function definitions.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Dec 2007 11:14:04 +0000
(11:14 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Dec 2007 11:14:04 +0000
(11:14 +0000)
[r18777]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
920fa15
..
573f186
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-1805,6
+1805,7
@@
static declaration_t *parse_identifier_list(void)
declaration_t *last_declaration = NULL;
do {
declaration_t *const declaration = allocate_declaration_zero();
+ declaration->type = NULL; /* a K&R parameter list has no types, yet */
declaration->source_position = token.source_position;
declaration->symbol = token.v.symbol;
next_token();