projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9b0e5e
)
glcpp: Remove 2 shift/reduce conflicts from the grammar.
author
Carl Worth
<cworth@cworth.org>
Wed, 28 Jul 2010 18:07:46 +0000
(11:07 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 28 Jul 2010 18:07:46 +0000
(11:07 -0700)
Since we have productions to turn "defined FOO" and "defined ( FOO )"
into a conditional_token we don't need to list DEFINED as an operator
as well. Doing so just introduces the shift/reduce ambiguity with no
benefit.
src/glsl/glcpp/glcpp-parse.y
patch
|
blob
|
history
diff --git
a/src/glsl/glcpp/glcpp-parse.y
b/src/glsl/glcpp/glcpp-parse.y
index 5b7467836d7258540fbf21462834a26a3847ed41..3322db06ed374341dc04898222ac880f4e07a572 100644
(file)
--- a/
src/glsl/glcpp/glcpp-parse.y
+++ b/
src/glsl/glcpp/glcpp-parse.y
@@
-478,7
+478,6
@@
operator:
| ',' { $$ = ','; }
| '=' { $$ = '='; }
| PASTE { $$ = PASTE; }
-| DEFINED { $$ = DEFINED; }
;
%%