1
0
mirror of https://github.com/golang/go synced 2024-11-24 15:30:13 -07:00

gc: rune is now an alias for int32

R=ken2
CC=golang-dev
https://golang.org/cl/5467049
This commit is contained in:
Russ Cox 2011-12-09 00:12:07 -05:00
parent d7f050a73e
commit 012798a325
3 changed files with 4 additions and 8 deletions

View File

@ -828,8 +828,6 @@ EXTERN int funcdepth;
EXTERN int typecheckok;
EXTERN int compiling_runtime;
EXTERN int rune32;
/*
* y.tab.c
*/

View File

@ -37,7 +37,7 @@ static struct {
char *name;
int *val;
} exper[] = {
{"rune32", &rune32},
// {"rune32", &rune32},
};
static void
@ -1842,10 +1842,7 @@ lexinit1(void)
// rune alias
s = lookup("rune");
s->lexical = LNAME;
if(rune32)
runetype = typ(TINT32);
else
runetype = typ(TINT);
runetype->sym = s;
s1 = pkglookup("rune", builtinpkg);
s1->lexical = LNAME;

View File

@ -14,8 +14,9 @@ var (
r4 = 'a'/2
r5 = 'a'<<1
r6 = 'b'<<2
r7 int32
r = []rune{r0, r1, r2, r3, r4, r5, r6}
r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
)
var (