parser: drop %name-prefix, use -p yacc argument instead
authorRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 21:24:50 +0000 (00:24 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 28 Sep 2013 21:24:50 +0000 (00:24 +0300)
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>
Makefile.am
src/xkbcomp/parser.y

index ad30a68..0d13625 100644 (file)
@@ -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 = \
index 1d7f827..4f69545 100644 (file)
@@ -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 }