Specify %option prefix="glcpp_" in the source code, not the Makefile.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jun 2010 18:51:43 +0000 (11:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Jun 2010 18:25:30 +0000 (11:25 -0700)
glcpp/Makefile
glcpp/glcpp-lex.l

index 3fb44ac3b2ed88a5ffcd4918519f2693e075a2fb..1578a8ee308c81ee5a3f35f3f4a0618740940874 100644 (file)
@@ -13,7 +13,7 @@ glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o xtalloc.o
        bison --debug --defines=$*.h --output=$*.c $^
 
 %.c: %.l
-       flex --prefix=glcpp_ --outfile=$@ $<
+       flex --outfile=$@ $<
 
 glcpp-lex.c: glcpp-parse.h
 
index 0d9a75415a3e62f981823e179bfc86c0e05319d3..cc5f28f8f869b590b65694d051f6b96b1ce45303 100644 (file)
@@ -31,6 +31,7 @@
 
 %option reentrant noyywrap
 %option extra-type="glcpp_parser_t *"
+%option prefix="glcpp_"
 
 SPACE          [[:space:]]
 NONSPACE       [^[:space:]]