Commit 012798a3 authored by Russ Cox's avatar Russ Cox

gc: rune is now an alias for int32

R=ken2
CC=golang-dev
https://golang.org/cl/5467049
parent d7f050a7
...@@ -828,8 +828,6 @@ EXTERN int funcdepth; ...@@ -828,8 +828,6 @@ EXTERN int funcdepth;
EXTERN int typecheckok; EXTERN int typecheckok;
EXTERN int compiling_runtime; EXTERN int compiling_runtime;
EXTERN int rune32;
/* /*
* y.tab.c * y.tab.c
*/ */
......
...@@ -37,7 +37,7 @@ static struct { ...@@ -37,7 +37,7 @@ static struct {
char *name; char *name;
int *val; int *val;
} exper[] = { } exper[] = {
{"rune32", &rune32}, // {"rune32", &rune32},
}; };
static void static void
...@@ -1842,10 +1842,7 @@ lexinit1(void) ...@@ -1842,10 +1842,7 @@ lexinit1(void)
// rune alias // rune alias
s = lookup("rune"); s = lookup("rune");
s->lexical = LNAME; s->lexical = LNAME;
if(rune32) runetype = typ(TINT32);
runetype = typ(TINT32);
else
runetype = typ(TINT);
runetype->sym = s; runetype->sym = s;
s1 = pkglookup("rune", builtinpkg); s1 = pkglookup("rune", builtinpkg);
s1->lexical = LNAME; s1->lexical = LNAME;
......
...@@ -14,8 +14,9 @@ var ( ...@@ -14,8 +14,9 @@ var (
r4 = 'a'/2 r4 = 'a'/2
r5 = 'a'<<1 r5 = 'a'<<1
r6 = 'b'<<2 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 ( var (
......
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