Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
5f132b93
Commit
5f132b93
authored
Dec 27, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: various C nits, found by plan 9 compiler.
reported by erik quanstrom. R=ken2
https://golang.org/cl/181071
parent
316cb50d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
6 deletions
+4
-6
src/cmd/gc/go.h
src/cmd/gc/go.h
+1
-2
src/cmd/gc/reflect.c
src/cmd/gc/reflect.c
+1
-1
src/cmd/gc/subr.c
src/cmd/gc/subr.c
+1
-1
src/cmd/gc/unsafe.c
src/cmd/gc/unsafe.c
+0
-1
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+1
-1
No files found.
src/cmd/gc/go.h
View file @
5f132b93
...
...
@@ -724,7 +724,7 @@ int yyparse(void);
void
addidir
(
char
*
);
void
importfile
(
Val
*
,
int
line
);
void
cannedimports
(
char
*
,
char
*
);
void
unimportfile
();
void
unimportfile
(
void
);
int32
yylex
(
void
);
void
typeinit
(
void
);
void
lexinit
(
void
);
...
...
@@ -1174,7 +1174,6 @@ void cgen_ret(Node *n);
int
isfat
(
Type
*
);
void
clearfat
(
Node
*
n
);
void
cgen
(
Node
*
,
Node
*
);
struct
Prog
;
void
gused
(
Node
*
);
void
gdata
(
Node
*
,
Node
*
,
int
);
void
gdatastring
(
Node
*
,
Strlit
*
);
...
...
src/cmd/gc/reflect.c
View file @
5f132b93
...
...
@@ -584,7 +584,7 @@ typename(Type *t)
return
n
;
}
Sym
*
static
Sym
*
dtypesym
(
Type
*
t
)
{
int
ot
,
n
;
...
...
src/cmd/gc/subr.c
View file @
5f132b93
...
...
@@ -2085,7 +2085,7 @@ frame(int context)
case
ONAME
:
if
(
flag
)
print
(
"--- %s frame ---
\n
"
,
p
);
print
(
"%O %S G%ld T
\n
"
,
n
->
op
,
n
->
sym
,
n
->
vargen
,
n
->
type
);
print
(
"%O %S G%ld
%
T
\n
"
,
n
->
op
,
n
->
sym
,
n
->
vargen
,
n
->
type
);
flag
=
0
;
break
;
...
...
src/cmd/gc/unsafe.c
View file @
5f132b93
...
...
@@ -30,7 +30,6 @@ unsafenmagic(Node *fn, NodeList *args)
}
r
=
args
->
n
;
n
=
nod
(
OLITERAL
,
N
,
N
);
if
(
strcmp
(
s
->
name
,
"Sizeof"
)
==
0
)
{
typecheck
(
&
r
,
Erv
);
tr
=
r
->
type
;
...
...
src/cmd/gc/walk.c
View file @
5f132b93
...
...
@@ -1072,7 +1072,7 @@ ret:
*
np
=
n
;
}
Node
*
static
Node
*
makenewvar
(
Type
*
t
,
NodeList
**
init
,
Node
**
nstar
)
{
Node
*
nvar
,
*
nas
;
...
...
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