glsl2: Use bison command line option to set prefix
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Aug 2010 00:14:02 +0000 (17:14 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Aug 2010 00:14:02 +0000 (17:14 -0700)
Bison version 2.3 doesn't seem to support %name-prefix in the source.

This should fix bugzilla #29207.

src/glsl/Makefile
src/glsl/glsl_parser.ypp

index 85298d0..a0ab1d6 100644 (file)
@@ -154,7 +154,7 @@ glsl_lexer.cpp: glsl_lexer.lpp
        flex --never-interactive --outfile="$@"  $<
 
 glsl_parser.cpp: glsl_parser.ypp
-       bison -v -o "$@" --defines=glsl_parser.h $<
+       bison -v -o "$@" -p "_mesa_glsl_" --defines=glsl_parser.h $<
 
 glcpp/glcpp-lex.c: glcpp/glcpp-lex.l
        flex --never-interactive --outfile="$@" $<
index 74971cf..7c5dc01 100644 (file)
@@ -48,7 +48,6 @@
 
 %lex-param   {void *scanner}
 %parse-param {struct _mesa_glsl_parse_state *state}
-%name-prefix "_mesa_glsl_"
 
 %union {
    int n;