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
02d184b3
Commit
02d184b3
authored
Oct 07, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove support for *T as an implicit declaration of T
R=ken OCL=16651 CL=16653
parent
e6cd1e44
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
dcl.c
src/cmd/gc/dcl.c
+3
-17
go.y
src/cmd/gc/go.y
+0
-8
No files found.
src/cmd/gc/dcl.c
View file @
02d184b3
...
...
@@ -872,21 +872,6 @@ oldtype(Sym *s)
return
t
;
}
Type
*
forwdcl
(
Sym
*
s
)
{
Type
*
t
;
// this type has no meaning and
// will cause an error if referenced.
// it will be patched when/if the
// type is ever assigned.
t
=
typ
(
TFORW
);
t
=
ptrto
(
t
);
return
t
;
}
/*
* n is a node with a name (or a reversed list of them).
* make it an anonymous declaration of that name's type.
...
...
@@ -1120,8 +1105,9 @@ checkwidth(Type *t)
void
defercheckwidth
(
void
)
{
if
(
defercalc
)
fatal
(
"defercheckwidth"
);
// we get out of sync on syntax errors, so don't be pedantic.
// if(defercalc)
// fatal("defercheckwidth");
defercalc
=
1
;
}
...
...
src/cmd/gc/go.y
View file @
02d184b3
...
...
@@ -1078,14 +1078,6 @@ Bothertype:
{
$$
=
oldtype
($
1
);
}
|
'*'
lname
/*
TODO
(
rsc
):
yank
*/
{
Type
*
t
;
t
=
dodcltype
(
newtype
($
2
));
updatetype
(
t
,
typ
(
TFORWSTRUCT
));
$$
=
ptrto
(
t
);
}
|
'['
oexpr
']'
Btype
{
$$
=
aindex
($
2
,
$
4
);
...
...
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