mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Give struct types a name.
Use the struct/union's name (minus "tag ") for the type name.
This commit is contained in:
parent
d12cdca758
commit
22ccd41164
1 changed files with 4 additions and 2 deletions
|
@ -82,9 +82,11 @@ find_tag (ty_type_e ty, symbol_t *tag, type_t *type)
|
|||
if (sym->type->ty == ty)
|
||||
return sym;
|
||||
}
|
||||
if (!type)
|
||||
type = new_type ();
|
||||
sym = new_symbol (tag_name);
|
||||
if (!type) {
|
||||
type = new_type ();
|
||||
type->name = sym->name + 4;
|
||||
}
|
||||
sym->type = type;
|
||||
sym->type->type = ev_invalid;
|
||||
sym->type->ty = ty;
|
||||
|
|
Loading…
Reference in a new issue