glsl: Replace sscanf in s_expression reader with strspn and strcspn.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Aug 2010 01:03:22 +0000 (18:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Aug 2010 04:33:18 +0000 (21:33 -0700)
commit365ce61997a28a0c0dad79e7d3f7616e57f105f5
tree78305e51c626e153393a999261d44077ef0feb87
parenta575067d7029c7af3bb6d650d6bd944ac8bb6bb7
glsl: Replace sscanf in s_expression reader with strspn and strcspn.

This seems to give roughly a 20% speedup.
src/glsl/s_expression.cpp
src/glsl/s_expression.h