Commit 13da6da0e783c4cf6c151f09d2cb0a0863d2ac79

Ran Benita 2013-09-29T00:24:50

parser: drop %name-prefix, use -p yacc argument instead Even though the %name-prefix is more sensible, byacc doesn't support it, but both bison and byacc support the -p argument. Signed-off-by: Ran Benita <ran234@gmail.com>

diff --git a/Makefile.am b/Makefile.am
index ad30a68..0d13625 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,7 +18,7 @@ AM_CFLAGS = $(BASE_CFLAGS)
 
 AM_LDFLAGS = -no-undefined
 
-AM_YFLAGS = -d
+AM_YFLAGS = -d -p _xkbcommon_
 
 xkbcommonincludedir = $(includedir)/xkbcommon
 xkbcommoninclude_HEADERS = \
diff --git a/src/xkbcomp/parser.y b/src/xkbcomp/parser.y
index 1d7f827..4f69545 100644
--- a/src/xkbcomp/parser.y
+++ b/src/xkbcomp/parser.y
@@ -45,7 +45,6 @@ _xkbcommon_error(struct YYLTYPE *loc, struct parser_param *param, const char *ms
 #define scanner param->scanner
 %}
 
-%name-prefix    "_xkbcommon_"
 %pure-parser
 %locations
 %lex-param      { struct scanner *scanner }