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
88a1aa8e
Commit
88a1aa8e
authored
May 07, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6g: error messages
part 2; missing files R=ken OCL=28408 CL=28410
parent
b5e212ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
dcl.c
src/cmd/gc/dcl.c
+14
-5
go.h
src/cmd/gc/go.h
+1
-0
No files found.
src/cmd/gc/dcl.c
View file @
88a1aa8e
...
...
@@ -151,14 +151,23 @@ int
listcount
(
Node
*
n
)
{
int
v
;
Iter
s
;
v
=
0
;
while
(
n
!=
N
)
{
for
(
n
=
listfirst
(
&
s
,
&
n
);
n
!=
N
;
n
=
listnext
(
&
s
))
v
++
;
return
v
;
}
int
structcount
(
Type
*
t
)
{
int
v
;
Iter
s
;
v
=
0
;
for
(
t
=
structfirst
(
&
s
,
&
t
);
t
!=
T
;
t
=
structnext
(
&
s
))
v
++
;
if
(
n
->
op
!=
OLIST
)
break
;
n
=
n
->
right
;
}
return
v
;
}
...
...
src/cmd/gc/go.h
View file @
88a1aa8e
...
...
@@ -797,6 +797,7 @@ void dodclconst(Node*, Node*);
void
defaultlit
(
Node
*
,
Type
*
);
void
defaultlit2
(
Node
*
,
Node
*
);
int
listcount
(
Node
*
);
int
structcount
(
Type
*
);
void
addmethod
(
Node
*
,
Type
*
,
int
);
Node
*
methodname
(
Node
*
,
Type
*
);
Sym
*
methodsym
(
Sym
*
,
Type
*
);
...
...
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