projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a42bc7a
)
Correct off-by-one-token error in parse_namespace_definition().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 20 May 2012 06:15:04 +0000
(08:15 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 20 May 2012 06:24:03 +0000
(08:24 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
704c310
..
25d0b9c
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-9639,8
+9639,6
@@
static void parse_namespace_definition(void)
if (token.kind == T_IDENTIFIER) {
symbol = token.base.symbol;
- next_token();
-
entity = get_entity(symbol, NAMESPACE_NORMAL);
if (entity != NULL
&& entity->kind != ENTITY_NAMESPACE
@@
-9650,6
+9648,7
@@
static void parse_namespace_definition(void)
}
entity = NULL;
}
+ eat(T_IDENTIFIER);
}
if (entity == NULL) {