projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7925c93
)
Add { as anchor while parsing k&r declaration list.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 17 Sep 2008 21:49:45 +0000
(21:49 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 17 Sep 2008 21:49:45 +0000
(21:49 +0000)
[r22059]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d05873e
..
68e6670
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-4760,6
+4760,8
@@
static void parse_kr_declaration_list(declaration_t *declaration)
if (!type->function.kr_style_parameters)
return;
if (!type->function.kr_style_parameters)
return;
+ add_anchor_token('{');
+
/* push function parameters */
int top = environment_top();
scope_t *last_scope = scope;
/* push function parameters */
int top = environment_top();
scope_t *last_scope = scope;
@@
-4838,6
+4840,8
@@
static void parse_kr_declaration_list(declaration_t *declaration)
}
declaration->type = type;
}
declaration->type = type;
+
+ rem_anchor_token('{');
}
static bool first_err = true;
}
static bool first_err = true;