glsl/apps: Update after recent pp interface changes.
authorMichal Krol <michal@vmware.com>
Tue, 22 Sep 2009 10:52:21 +0000 (12:52 +0200)
committerMichal Krol <michal@vmware.com>
Tue, 22 Sep 2009 10:52:21 +0000 (12:52 +0200)
src/glsl/apps/process.c
src/glsl/apps/tokenise.c

index 1fdb09670cc1345ceab42ea98baf90cb5838fec0..4fff3570c1a807f0ae983c37725241c31c0f1dc6 100644 (file)
@@ -330,8 +330,12 @@ main(int argc,
          fprintf(out, "%s ", sl_pp_context_cstr(context, outtokens[i].data.identifier));
          break;
 
-      case SL_PP_NUMBER:
-         fprintf(out, "%s ", sl_pp_context_cstr(context, outtokens[i].data.number));
+      case SL_PP_UINT:
+         fprintf(out, "%s ", sl_pp_context_cstr(context, outtokens[i].data._uint));
+         break;
+
+      case SL_PP_FLOAT:
+         fprintf(out, "%s ", sl_pp_context_cstr(context, outtokens[i].data._float));
          break;
 
       case SL_PP_OTHER:
index 2b3ebcf283d42072332c7f552c64e9526b870a55..9f95424f5c89930de6e06573c9292fb3dde069ef 100644 (file)
@@ -314,8 +314,12 @@ main(int argc,
          fprintf(out, "%s ", sl_pp_context_cstr(context, tokens[i].data.identifier));
          break;
 
-      case SL_PP_NUMBER:
-         fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data.number));
+      case SL_PP_UINT:
+         fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data._uint));
+         break;
+
+      case SL_PP_FLOAT:
+         fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data._float));
          break;
 
       case SL_PP_OTHER: