diff options
author | Michal Krol <michal@vmware.com> | 2009-09-22 12:52:53 +0200 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-09-22 12:52:53 +0200 |
commit | cd41395073839365b79e6b1cca2e35e08a57bf7b (patch) | |
tree | 72dcc967b870385453d791f80204ccab2279e2d6 /src/mesa/shader/grammar/grammar.c | |
parent | 125691dda3d261d3115bf85265428e28d2bbf6c8 (diff) |
grammar: Differentiate between uints and floats.
Diffstat (limited to 'src/mesa/shader/grammar/grammar.c')
-rw-r--r-- | src/mesa/shader/grammar/grammar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c index eb58e0cddd..b83920a089 100644 --- 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 { |