[postgis-tickets] r16379 - Use -p call in bison instead of name-prefix in .y file

Paul Ramsey pramsey at cleverelephant.ca
Tue Feb 13 09:52:30 PST 2018


Author: pramsey
Date: 2018-02-13 09:52:29 -0800 (Tue, 13 Feb 2018)
New Revision: 16379

Modified:
   trunk/liblwgeom/Makefile.in
   trunk/liblwgeom/lwin_wkt_parse.y
Log:
Use -p call in bison instead of name-prefix in .y file
to allow ancient versions of bison to build parser


Modified: trunk/liblwgeom/Makefile.in
===================================================================
--- trunk/liblwgeom/Makefile.in	2018-02-13 13:30:33 UTC (rev 16378)
+++ trunk/liblwgeom/Makefile.in	2018-02-13 17:52:29 UTC (rev 16379)
@@ -209,7 +209,7 @@
 	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(NUMERICFLAGS) -c -o $@ $<
 
 lwin_wkt_parse.c lwin_wkt_parse.h: lwin_wkt_parse.y
-	$(YACC) -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
+	$(YACC) -p wkt_yy -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
 
 lwin_wkt_lex.c: lwin_wkt_lex.l
 	$(LEX) -i lwin_wkt_lex.l

Modified: trunk/liblwgeom/lwin_wkt_parse.y
===================================================================
--- trunk/liblwgeom/lwin_wkt_parse.y	2018-02-13 13:30:33 UTC (rev 16378)
+++ trunk/liblwgeom/lwin_wkt_parse.y	2018-02-13 17:52:29 UTC (rev 16379)
@@ -103,7 +103,6 @@
 
 %locations
 %error-verbose
-%name-prefix "wkt_yy"
 
 %union {
 	int integervalue;



More information about the postgis-tickets mailing list