projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d091ef
)
Simplify eat() macro.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 14 Dec 2008 10:42:40 +0000
(10:42 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 14 Dec 2008 10:42:40 +0000
(10:42 +0000)
[r24653]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
c5a9e8e
..
fb9f02d
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-749,7
+749,7
@@
static void eat_block(void)
next_token();
}
-#define eat(token_type)
do { assert(token.type == (token_type)); next_token(); } while (0
)
+#define eat(token_type)
(assert(token.type == (token_type)), next_token()
)
/**
* Report a parse error because an expected token was not found.