Revert "Bison: use %name-prefix directive rather than -p option"
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 7 Feb 2014 09:09:56 +0000 (10:09 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 7 Feb 2014 09:09:56 +0000 (10:09 +0100)
This reverts commit 6fd59c085f99d8b823cd1d24d3110411c452cb87.
Fixes YAZ-734.

src/Makefile.am
src/cql.y
win/makefile

index 92961ae..cdccb09 100644 (file)
@@ -31,7 +31,7 @@ libyaz_server_la_LIBADD = libyaz.la
 libyaz_icu_la_CPPFLAGS = $(AM_CPPFLAGS) $(ICU_CPPFLAGS) -I$(top_srcdir)/libstemmer_c/include
 libyaz_icu_la_LIBADD = libyaz.la $(ICU_LIBS)
 
-AM_YFLAGS=
+AM_YFLAGS=-p cql_
 
 # MARC8->UTF8 conversion is generated from codetables.xml
 marc8.c: charconv.tcl codetables.xml
index 324c3e7..cf85690 100644 (file)
--- a/src/cql.y
+++ b/src/cql.y
@@ -55,7 +55,6 @@ int yyerror(void *lval, char *msg);
 %}
 
 
-%name-prefix "cql_"
 %lex-param {void *parm}
 %parse-param {void *parm}
 %pure-parser
index b1b346f..35d0515 100644 (file)
@@ -878,7 +878,7 @@ $(INCLDIR)\yaz\yaz-version.h: $(ROOTDIR)/IDMETA
 !if $(HAVE_BISON)
 $(SRCDIR)\cql.c: $(SRCDIR)\cql.y
        @cd $(SRCDIR)
-       $(BISON) -y -o cql.c cql.y
+       $(BISON) -y -p cql_ -o cql.c cql.y
 
 !endif