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
553c98dc
Commit
553c98dc
authored
Nov 05, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix renamed-package bug in exported names:
always show original name R=ken OCL=18603 CL=18603
parent
11a3f759
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
subr.c
src/cmd/gc/subr.c
+7
-14
No files found.
src/cmd/gc/subr.c
View file @
553c98dc
...
@@ -912,14 +912,13 @@ out:
...
@@ -912,14 +912,13 @@ out:
int
int
Sconv
(
Fmt
*
fp
)
Sconv
(
Fmt
*
fp
)
{
{
char
buf
[
500
];
Sym
*
s
;
Sym
*
s
;
char
*
opk
,
*
pkg
,
*
nam
;
char
*
opk
,
*
pkg
,
*
nam
;
s
=
va_arg
(
fp
->
args
,
Sym
*
);
s
=
va_arg
(
fp
->
args
,
Sym
*
);
if
(
s
==
S
)
{
if
(
s
==
S
)
{
snprint
(
buf
,
sizeof
(
buf
)
,
"<S>"
);
fmtstrcpy
(
fp
,
"<S>"
);
goto
out
;
return
0
;
}
}
pkg
=
"<nil>"
;
pkg
=
"<nil>"
;
...
@@ -934,18 +933,12 @@ Sconv(Fmt *fp)
...
@@ -934,18 +933,12 @@ Sconv(Fmt *fp)
nam
=
s
->
name
;
nam
=
s
->
name
;
if
(
!
(
fp
->
flags
&
FmtShort
))
if
(
!
(
fp
->
flags
&
FmtShort
))
if
(
strcmp
(
pkg
,
package
)
||
strcmp
(
opk
,
package
)
||
(
fp
->
flags
&
FmtLong
))
{
if
(
strcmp
(
opk
,
package
)
||
(
fp
->
flags
&
FmtLong
))
{
if
(
strcmp
(
opk
,
pkg
)
==
0
)
{
fmtprint
(
fp
,
"%s.%s"
,
opk
,
nam
);
snprint
(
buf
,
sizeof
(
buf
),
"%s.%s"
,
pkg
,
nam
);
return
0
;
goto
out
;
}
snprint
(
buf
,
sizeof
(
buf
),
"(%s)%s.%s"
,
opk
,
pkg
,
nam
);
goto
out
;
}
}
snprint
(
buf
,
sizeof
(
buf
),
"%s"
,
nam
);
fmtstrcpy
(
fp
,
nam
);
return
0
;
out:
return
fmtstrcpy
(
fp
,
buf
);
}
}
static
char
*
static
char
*
...
...
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