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
1850b29d
Commit
1850b29d
authored
Oct 30, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
struct annotations in imports.
distribute tag across multiple names. R=ken OCL=18178 CL=18178
parent
f27aaf48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
go.y
src/cmd/gc/go.y
+2
-1
subr.c
src/cmd/gc/subr.c
+3
-1
No files found.
src/cmd/gc/go.y
View file @
1850b29d
...
...
@@ -1892,10 +1892,11 @@ hidden_dcl:
}
hidden_structdcl:
sym1 hidden_type
sym1 hidden_type
oliteral
{
$$ = nod(ODCLFIELD, newname($1), N);
$$->type = $2;
$$->val = $3;
}
| '
?
' hidden_type
{
...
...
src/cmd/gc/subr.c
View file @
1850b29d
...
...
@@ -2192,8 +2192,10 @@ cleanidlist(Node *na)
if
(
last
->
type
==
T
)
fatal
(
"cleanidlist: no type"
);
for
(
n
=
na
;
n
->
op
==
OLIST
;
n
=
n
->
right
)
for
(
n
=
na
;
n
->
op
==
OLIST
;
n
=
n
->
right
)
{
n
->
left
->
type
=
last
->
type
;
n
->
left
->
val
=
last
->
val
;
}
return
na
;
}
...
...
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