projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
125691d
)
grammar: Differentiate between uints and floats.
author
Michal Krol
<michal@vmware.com>
Tue, 22 Sep 2009 10:52:53 +0000
(12:52 +0200)
committer
Michal Krol
<michal@vmware.com>
Tue, 22 Sep 2009 10:52:53 +0000
(12:52 +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 eb58e0cddd62e18e01464d6e6c2c0f44d7c7b50d..b83920a089b9d03e32c6f184be5d10d754f07caa 100644
(file)
--- a/
src/mesa/shader/grammar/grammar.c
+++ b/
src/mesa/shader/grammar/grammar.c
@@
-2067,8
+2067,10
@@
static int get_spec (const byte **text, spec **sp, map_str *maps, map_byte *mapb
s->m_token = SL_PP_COLON;
} else if (!strcmp(s->m_string, "@ID")) {
s->m_token = SL_PP_IDENTIFIER;
- } else if (!strcmp(s->m_string, "@NUM")) {
- s->m_token = SL_PP_NUMBER;
+ } else if (!strcmp(s->m_string, "@UINT")) {
+ s->m_token = SL_PP_UINT;
+ } else if (!strcmp(s->m_string, "@FLOAT")) {
+ s->m_token = SL_PP_FLOAT;
} else if (!strcmp(s->m_string, "@EOF")) {
s->m_token = SL_PP_EOF;
} else {