glsl/glcpp: Abstract a bit of common code for returning string tokens
authorCarl Worth <cworth@cworth.org>
Fri, 20 Jun 2014 22:30:21 +0000 (15:30 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Jul 2014 22:11:49 +0000 (15:11 -0700)
commit09b4e12900ae496cbbc2a8864b721eefffb9d74a
tree750e38ae7d1348fbf91b404be21e3370e10196ee
parent828686d4ebe055d1c6583192bc57742e101ff931
glsl/glcpp: Abstract a bit of common code for returning string tokens

Now that we have a common macro for returning tokens, it makes sense to
perform some of the common work there, (such as copying string values).

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/glcpp/glcpp-lex.l