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 3fb44ac..1578a8e 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 0d9a754..cc5f28f 100644 (file)
@@ -31,6 +31,7 @@
 
 %option reentrant noyywrap
 %option extra-type="glcpp_parser_t *"
+%option prefix="glcpp_"
 
 SPACE          [[:space:]]
 NONSPACE       [^[:space:]]