1
0
mirror of https://github.com/golang/go synced 2024-09-25 15:10:11 -06:00

gc: rename %union field name from lint to i

#define lint has special meaning to Bison;
having a field named lint conflicts with that.

R=ken2
CC=golang-dev
https://golang.org/cl/5462044
This commit is contained in:
Russ Cox 2011-12-07 23:38:32 -05:00
parent ef65feda2a
commit f00340f022
2 changed files with 4 additions and 4 deletions

View File

@ -31,13 +31,13 @@ static void fixlbrace(int);
Type* type;
Sym* sym;
struct Val val;
int lint;
int i;
}
// |sed 's/.* //' |9 fmt -l1 |sort |9 fmt -l50 | sed 's/^/%xxx /'
%token <val> LLITERAL
%token <lint> LASOP
%token <i> LASOP
%token <sym> LBREAK LCASE LCHAN LCOLAS LCONST LCONTINUE LDDD
%token <sym> LDEFAULT LDEFER LELSE LFALL LFOR LFUNC LGO LGOTO
%token <sym> LIF LIMPORT LINTERFACE LMAP LNAME
@ -47,7 +47,7 @@ static void fixlbrace(int);
%token LANDAND LANDNOT LBODY LCOMM LDEC LEQ LGE LGT
%token LIGNORE LINC LLE LLSH LLT LNE LOROR LRSH
%type <lint> lbrace import_here
%type <i> lbrace import_here
%type <sym> sym packname
%type <val> oliteral

View File

@ -1098,7 +1098,7 @@ lx:
return c;
asop:
yylval.lint = c; // rathole to hold which asop
yylval.i = c; // rathole to hold which asop
DBG("lex: TOKEN ASOP %c\n", c);
return LASOP;