Commit bcdc5fb5 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 145a0ba5
......@@ -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)
......
......@@ -40,6 +40,8 @@ int yyerror(const char*);
%}
%name-prefix="yy"
%union
{
struct dbg_lvalue lvalue;
......
......@@ -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
......
......@@ -95,6 +95,7 @@ static cp_xlat_t *find_cpxlat(int lan);
%}
%name-prefix="yy"
%union {
WCHAR *str;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment