projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d06069f
)
grammar: Fix token stripping.
author
Michal Krol
<michal@vmware.com>
Tue, 8 Sep 2009 08:57:39 +0000
(10:57 +0200)
committer
Michal Krol
<michal@vmware.com>
Tue, 8 Sep 2009 08:57:39 +0000
(10:57 +0200)
src/mesa/shader/grammar/grammar.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/grammar/grammar.c
b/src/mesa/shader/grammar/grammar.c
index fdbdcd40c09bde79f747b0aca68670fcc1d10806..36ed9d5603b25865d34177d795f8470b25120c81 100644
(file)
--- a/
src/mesa/shader/grammar/grammar.c
+++ b/
src/mesa/shader/grammar/grammar.c
@@
-3226,11
+3226,15
@@
grammar_fast_check (grammar id,
case SL_PP_IDENTIFIER:
case SL_PP_NUMBER:
*dst++ = *src++;
+ break;
default:
src++;
}
}
+
+ /* The end of stream token. */
+ *dst = *src;
}
}