Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
012798a3
Commit
012798a3
authored
Dec 09, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: rune is now an alias for int32
R=ken2 CC=golang-dev
https://golang.org/cl/5467049
parent
d7f050a7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
go.h
src/cmd/gc/go.h
+0
-2
lex.c
src/cmd/gc/lex.c
+1
-4
rune.go
test/rune.go
+2
-1
No files found.
src/cmd/gc/go.h
View file @
012798a3
...
...
@@ -828,8 +828,6 @@ EXTERN int funcdepth;
EXTERN
int
typecheckok
;
EXTERN
int
compiling_runtime
;
EXTERN
int
rune32
;
/*
* y.tab.c
*/
...
...
src/cmd/gc/lex.c
View file @
012798a3
...
...
@@ -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
;
...
...
test/rune.go
View file @
012798a3
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment