glsl: Mark _mesa_glsl_parse_state::is_version() as const.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Aug 2013 08:07:37 +0000 (01:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 18:46:51 +0000 (11:46 -0700)
commitd403a105735f2b56e24092b1c25e2d3d108e15bc
tree5da8d312ed3162c8c8661cecad409158e22c4d24
parent4b0bac0dce31ab6c5c36fc35347e6e0e3b2ecc2a
glsl: Mark _mesa_glsl_parse_state::is_version() as const.

This promises the method won't modify the contents of the object.
This allows us to call it even with a const pointer to the state.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/glsl_parser_extras.h