Mesa (glsl-pp-rework-1): glsl/apps: Print out the number of tokens eaten in version test.

Michał Król michal at kemper.freedesktop.org
Mon Jun 15 07:50:55 UTC 2009


Module: Mesa
Branch: glsl-pp-rework-1
Commit: 2c90b5f6163be176b4965b185a709505ef12d336
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c90b5f6163be176b4965b185a709505ef12d336

Author: Michal Krol <michal at vmware.com>
Date:   Sat Jun 13 19:42:11 2009 +0200

glsl/apps: Print out the number of tokens eaten in version test.

---

 src/glsl/apps/version.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/glsl/apps/version.c b/src/glsl/apps/version.c
index e774c4a..b49395b 100644
--- a/src/glsl/apps/version.c
+++ b/src/glsl/apps/version.c
@@ -102,7 +102,10 @@ main(int argc,
       return 1;
    }
 
-   fprintf(out, "%u\n", version);
+   fprintf(out,
+           "%u\n%u\n",
+           version,
+           tokens_eaten);
 
    fclose(out);
 




More information about the mesa-commit mailing list