summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_token.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-22 12:51:08 +0200
committerMichal Krol <[email protected]>2009-09-22 12:51:08 +0200
commit0481e85af7195e13c30580afba233a80feeee740 (patch)
tree6c9d69005a67424d41b6a1a04c9ab1dee087b796 /src/glsl/pp/sl_pp_token.h
parentbb32b0908ff0d3a99758abd46356676fc1ec2369 (diff)
glsl/pp: Differentiate between integer and floating-point number tokens.
Diffstat (limited to 'src/glsl/pp/sl_pp_token.h')
-rw-r--r--src/glsl/pp/sl_pp_token.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/pp/sl_pp_token.h b/src/glsl/pp/sl_pp_token.h
index 4131be6bdad..2a7b79ea3f7 100644
--- a/src/glsl/pp/sl_pp_token.h
+++ b/src/glsl/pp/sl_pp_token.h
@@ -82,7 +82,8 @@ enum sl_pp_token {
SL_PP_IDENTIFIER,
- SL_PP_NUMBER,
+ SL_PP_UINT,
+ SL_PP_FLOAT,
SL_PP_OTHER,
@@ -102,7 +103,8 @@ enum sl_pp_token {
union sl_pp_token_data {
int identifier;
- int number;
+ int _uint;
+ int _float;
char other;
int pragma;
int extension;