Make.rules: Set the default prefix for bison files from the file basename.
This commit is contained in:
parent
145a0ba508
commit
bcdc5fb55f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue