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
0a6d8356
Commit
0a6d8356
authored
May 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print uint64 as uint64.
R=ken OCL=29568 CL=29570
parent
e2613711
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
builtin.c.boot
src/cmd/gc/builtin.c.boot
+1
-0
sys.go
src/cmd/gc/sys.go
+1
-0
walk.c
src/cmd/gc/walk.c
+3
-0
No files found.
src/cmd/gc/builtin.c.boot
View file @
0a6d8356
...
@@ -8,6 +8,7 @@ char *sysimport =
...
@@ -8,6 +8,7 @@ char *sysimport =
"func sys.printbool (? bool)\n"
"func sys.printbool (? bool)\n"
"func sys.printfloat (? float64)\n"
"func sys.printfloat (? float64)\n"
"func sys.printint (? int64)\n"
"func sys.printint (? int64)\n"
"func sys.printuint (? uint64)\n"
"func sys.printstring (? string)\n"
"func sys.printstring (? string)\n"
"func sys.printpointer (? any)\n"
"func sys.printpointer (? any)\n"
"func sys.printiface (? any)\n"
"func sys.printiface (? any)\n"
...
...
src/cmd/gc/sys.go
View file @
0a6d8356
...
@@ -16,6 +16,7 @@ func panicl(int32);
...
@@ -16,6 +16,7 @@ func panicl(int32);
func
printbool
(
bool
);
func
printbool
(
bool
);
func
printfloat
(
float64
);
func
printfloat
(
float64
);
func
printint
(
int64
);
func
printint
(
int64
);
func
printuint
(
uint64
);
func
printstring
(
string
);
func
printstring
(
string
);
func
printpointer
(
any
);
func
printpointer
(
any
);
func
printiface
(
any
);
func
printiface
(
any
);
...
...
src/cmd/gc/walk.c
View file @
0a6d8356
...
@@ -2290,6 +2290,9 @@ loop:
...
@@ -2290,6 +2290,9 @@ loop:
on
=
syslook
(
"printarray"
,
1
);
on
=
syslook
(
"printarray"
,
1
);
argtype
(
on
,
l
->
type
);
// any-1
argtype
(
on
,
l
->
type
);
// any-1
}
else
if
(
isint
[
et
])
{
}
else
if
(
isint
[
et
])
{
if
(
et
==
TUINT64
)
on
=
syslook
(
"printuint"
,
0
);
else
on
=
syslook
(
"printint"
,
0
);
on
=
syslook
(
"printint"
,
0
);
}
else
if
(
isfloat
[
et
])
{
}
else
if
(
isfloat
[
et
])
{
on
=
syslook
(
"printfloat"
,
0
);
on
=
syslook
(
"printfloat"
,
0
);
...
...
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