Commit 02d184b3 authored by Russ Cox's avatar Russ Cox

remove support for *T as an implicit declaration of T

R=ken
OCL=16651
CL=16653
parent e6cd1e44
...@@ -872,21 +872,6 @@ oldtype(Sym *s) ...@@ -872,21 +872,6 @@ oldtype(Sym *s)
return t; 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). * n is a node with a name (or a reversed list of them).
* make it an anonymous declaration of that name's type. * make it an anonymous declaration of that name's type.
...@@ -1120,8 +1105,9 @@ checkwidth(Type *t) ...@@ -1120,8 +1105,9 @@ checkwidth(Type *t)
void void
defercheckwidth(void) defercheckwidth(void)
{ {
if(defercalc) // we get out of sync on syntax errors, so don't be pedantic.
fatal("defercheckwidth"); // if(defercalc)
// fatal("defercheckwidth");
defercalc = 1; defercalc = 1;
} }
......
...@@ -1078,14 +1078,6 @@ Bothertype: ...@@ -1078,14 +1078,6 @@ Bothertype:
{ {
$$ = oldtype($1); $$ = oldtype($1);
} }
| '*' lname /* TODO(rsc): yank */
{
Type *t;
t = dodcltype(newtype($2));
updatetype(t, typ(TFORWSTRUCT));
$$ = ptrto(t);
}
| '[' oexpr ']' Btype | '[' oexpr ']' Btype
{ {
$$ = aindex($2, $4); $$ = aindex($2, $4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment