projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcbbb46
)
Eliminate a reduce/reduce conflict in the function-like macro production.
author
Carl Worth
<cworth@cworth.org>
Fri, 14 May 2010 15:47:32 +0000
(08:47 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 14 May 2010 15:47:32 +0000
(08:47 -0700)
Previously, an empty argument could be parsed as either an "argument_list"
directly or first as an "argument" and then an "argument_list".
We fix this by removing the possibility of an empty "argument_list"
directly.
glcpp-parse.y
patch
|
blob
|
history
diff --git
a/glcpp-parse.y
b/glcpp-parse.y
index
2e40db5
..
66725db
100644
(file)
--- a/
glcpp-parse.y
+++ b/
glcpp-parse.y
@@
-121,10
+121,7
@@
macro:
;
argument_list:
- /* empty */ {
- $$ = _list_create (parser);
- }
-| argument {
+ argument {
$$ = _list_create (parser);
_list_append_list ($$, $1);
}