]> granicus.if.org Git - postgis/commitdiff
Use -p call in bison instead of name-prefix in .y file
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Feb 2018 17:52:29 +0000 (17:52 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Feb 2018 17:52:29 +0000 (17:52 +0000)
to allow ancient versions of bison to build parser

git-svn-id: http://svn.osgeo.org/postgis/trunk@16379 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/Makefile.in
liblwgeom/lwin_wkt_parse.y

index b058a8e2e8486e1de66cf6f01adb03f33cabc327..d14dc6b3622a21db07fa85d94dd5014679e176ab 100644 (file)
@@ -209,7 +209,7 @@ $(LT_NM_OBJS): %.lo: %.c
        $(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
index 359725f0b348340f529c7f4d940367f6119520b6..c693ab278c37d6f92b172c6069319e4b27143d68 100644 (file)
@@ -103,7 +103,6 @@ int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int pars
 
 %locations
 %error-verbose
-%name-prefix "wkt_yy"
 
 %union {
        int integervalue;