Alexandre Julliard : Make.rules:
Set the default prefix for bison files from the file basename.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 12 07:30:06 CDT 2006
Module: wine
Branch: master
Commit: bcdc5fb55f51e6708185b1e0d223c6b5a41c2138
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bcdc5fb55f51e6708185b1e0d223c6b5a41c2138
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Sep 11 21:47:49 2006 +0200
Make.rules: Set the default prefix for bison files from the file basename.
---
Make.rules.in | 4 ++--
programs/winedbg/dbg.y | 2 ++
tools/widl/parser.y | 2 ++
tools/wmc/mcy.y | 1 +
tools/wrc/parser.y | 2 ++
5 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Make.rules.in b/Make.rules.in
index cc6d13c..894c377 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -127,10 +127,10 @@ # Implicit rules
$(AS) -o $@ $<
.y.tab.c:
- $(BISON) $(BISONFLAGS) -o $@ $<
+ $(BISON) $(BISONFLAGS) -p $*_ -o $@ $<
.y.tab.h:
- $(BISON) $(BISONFLAGS) -o $*.tab.c -d $<
+ $(BISON) $(BISONFLAGS) -p $*_ -o $*.tab.c -d $<
.l.yy.c:
$(LEX) $(LEXFLAGS) -t $< >$@ || ($(RM) $@ && exit 1)
diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y
index b7d83d8..56efb94 100644
--- a/programs/winedbg/dbg.y
+++ b/programs/winedbg/dbg.y
@@ -40,6 +40,8 @@ int yyerror(const char*);
%}
+%name-prefix="yy"
+
%union
{
struct dbg_lvalue lvalue;
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 63e4c6d..922df4d 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -126,6 +126,8 @@ #define tsUNION 3
unsigned int num;
}
+%name-prefix="yy"
+
%token <str> aIDENTIFIER
%token <str> aKNOWNTYPE
%token <num> aNUM aHEXNUM
diff --git a/tools/wmc/mcy.y b/tools/wmc/mcy.y
index 32458be..abe5d02 100644
--- a/tools/wmc/mcy.y
+++ b/tools/wmc/mcy.y
@@ -95,6 +95,7 @@ static cp_xlat_t *find_cpxlat(int lan);
%}
+%name-prefix="yy"
%union {
WCHAR *str;
diff --git a/tools/wrc/parser.y b/tools/wrc/parser.y
index bc7409e..4297a19 100644
--- a/tools/wrc/parser.y
+++ b/tools/wrc/parser.y
@@ -282,6 +282,8 @@ static int rsrcid_to_token(int lookahead
ani_any_t *ani;
}
+%name-prefix="yy"
+
%token tNL
%token <num> tNUMBER tLNUMBER
%token <str> tSTRING tIDENT tFILENAME
More information about the wine-cvs
mailing list