Make.rules: Set the default prefix for bison files from the file basename.

This commit is contained in:
Alexandre Julliard 2006-09-11 21:47:49 +02:00
parent 145a0ba508
commit bcdc5fb55f
5 changed files with 9 additions and 2 deletions

View File

@ -127,10 +127,10 @@ LINTS = $(C_SRCS:.c=.ln)
$(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)

View File

@ -40,6 +40,8 @@ int yyerror(const char*);
%}
%name-prefix="yy"
%union
{
struct dbg_lvalue lvalue;

View File

@ -126,6 +126,8 @@ static void check_arg(var_t *arg);
unsigned int num;
}
%name-prefix="yy"
%token <str> aIDENTIFIER
%token <str> aKNOWNTYPE
%token <num> aNUM aHEXNUM

View File

@ -95,6 +95,7 @@ static cp_xlat_t *find_cpxlat(int lan);
%}
%name-prefix="yy"
%union {
WCHAR *str;

View File

@ -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