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
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+3
-17
src/cmd/gc/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