mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Fix bug in typedef guys.
This commit is contained in:
parent
79f2723f25
commit
733e9d3977
3 changed files with 10 additions and 2 deletions
|
@ -74,6 +74,7 @@ int dwarf2acid(struct Dwarf*, Biobuf*);
|
|||
int stabs2acid(struct Stab*, Biobuf*);
|
||||
|
||||
Type *newtype(void);
|
||||
Type *defer(Type*);
|
||||
char *nameof(Type*, int);
|
||||
void freetypes(void);
|
||||
|
||||
|
|
|
@ -113,7 +113,6 @@ ds2acid(Dwarf *d, DwarfSym *s, Biobuf *b, char *fn)
|
|||
t->sub = typebynum(s->attrs.type, 0);
|
||||
break;
|
||||
|
||||
|
||||
case TagConstType:
|
||||
case TagVolatileType:
|
||||
t = xnewtype(Defer, s);
|
||||
|
@ -175,6 +174,14 @@ ds2acid(Dwarf *d, DwarfSym *s, Biobuf *b, char *fn)
|
|||
t->n++;
|
||||
}
|
||||
break;
|
||||
|
||||
case TagFormalParameter:
|
||||
case TagVariable:
|
||||
fprint(2, "var %s %lud\n", s->attrs.name, (ulong)s->attrs.type);
|
||||
if(s->attrs.name==nil || s->attrs.type==0)
|
||||
break;
|
||||
addsymx(fn, s->attrs.name, typebynum(s->attrs.type, 0));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ renumber(TypeList *tl, uint n1)
|
|||
}
|
||||
}
|
||||
|
||||
static Type*
|
||||
Type*
|
||||
defer(Type *t)
|
||||
{
|
||||
Type *u, *oldt;
|
||||
|
|
Loading…
Reference in a new issue