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
3c5f3a86
Commit
3c5f3a86
authored
Jan 26, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print(map) and print(chan) as pointers.
R=ken OCL=23520 CL=23520
parent
646b3b5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
sys.go
src/cmd/gc/sys.go
+1
-1
sysimport.c
src/cmd/gc/sysimport.c
+1
-1
walk.c
src/cmd/gc/walk.c
+3
-3
No files found.
src/cmd/gc/sys.go
View file @
3c5f3a86
...
...
@@ -16,7 +16,7 @@ func printbool(bool);
func
printfloat
(
float64
);
func
printint
(
int64
);
func
printstring
(
string
);
func
printpointer
(
*
any
);
func
printpointer
(
any
);
func
printinter
(
any
);
func
printarray
(
any
);
func
printnl
();
...
...
src/cmd/gc/sysimport.c
View file @
3c5f3a86
...
...
@@ -8,7 +8,7 @@ char *sysimport =
"func sys.printfloat (? float64)
\n
"
"func sys.printint (? int64)
\n
"
"func sys.printstring (? string)
\n
"
"func sys.printpointer (?
*
any)
\n
"
"func sys.printpointer (? any)
\n
"
"func sys.printinter (? any)
\n
"
"func sys.printarray (? any)
\n
"
"func sys.printnl ()
\n
"
...
...
src/cmd/gc/walk.c
View file @
3c5f3a86
...
...
@@ -1983,9 +1983,9 @@ loop:
argtype
(
on
,
l
->
type
);
// any-1
break
;
}
if
(
isptr
[
l
->
type
->
etype
])
{
if
(
isptr
[
l
->
type
->
etype
]
||
l
->
type
->
etype
==
TCHAN
||
l
->
type
->
etype
==
TMAP
)
{
on
=
syslook
(
"printpointer"
,
1
);
argtype
(
on
,
l
->
type
->
type
);
// any-1
argtype
(
on
,
l
->
type
);
// any-1
break
;
}
if
(
isslice
(
l
->
type
))
{
...
...
@@ -1993,7 +1993,7 @@ loop:
argtype
(
on
,
l
->
type
);
// any-1
break
;
}
badtype
(
n
->
op
,
l
->
type
,
T
);
badtype
(
OPRINT
,
l
->
type
,
T
);
l
=
listnext
(
&
save
);
goto
loop
;
...
...
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