glsl: Use (const char *) in AST nodes rather than plain (char *).
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Mar 2012 06:17:31 +0000 (23:17 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:30:34 +0000 (14:30 -0700)
commitb2c0df2b60a77b043d461f265c85d8b5b066a008
tree6158f2c308c626139bbfd6444bf52cbb7c57a8f3
parent68b99be409eb2d4f20198cfdb2c8fea75d754e0b
glsl: Use (const char *) in AST nodes rather than plain (char *).

Nothing actually relied on them being mutable, and there was at least
one cast which discarded const qualifiers.  The next patch would have
introduced many more.

Casting away const qualifiers should be avoided if at all possible.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast.h
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp