mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Don't trip over incomplete structs (again:P)
This commit is contained in:
parent
12d8658ece
commit
54c8a10fe4
1 changed files with 7 additions and 5 deletions
|
@ -409,11 +409,13 @@ print_type_str (dstring_t *str, type_t *type)
|
|||
{
|
||||
const char *tag = "struct";
|
||||
|
||||
if (type->t.symtab->type == stab_union)
|
||||
tag = "union";
|
||||
else if (type->t.symtab->type == stab_union)
|
||||
tag = "enum";
|
||||
dasprintf (str, " %s %s", tag, type->name);//FIXME
|
||||
if (type->t.symtab) {//FIXME
|
||||
if (type->t.symtab->type == stab_union)
|
||||
tag = "union";
|
||||
else if (type->t.symtab->type == stab_union)
|
||||
tag = "enum";
|
||||
}
|
||||
dasprintf (str, " %s %s", tag, type->name);
|
||||
}
|
||||
break;
|
||||
case ty_array:
|
||||
|
|
Loading…
Reference in a new issue