mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Give alias types a unique encoding
The encoding is used as the def name and it needs to be different than the alias target or the linker throws it away as an external def.
This commit is contained in:
parent
6bc803c72d
commit
6a70d2e362
1 changed files with 2 additions and 0 deletions
|
@ -654,7 +654,9 @@ encode_type (dstring_t *encoding, const type_t *type)
|
|||
dasprintf (encoding, "]");
|
||||
return;
|
||||
case ty_alias:
|
||||
dasprintf (encoding, "{%s>", type->name);
|
||||
encode_type (encoding, type->t.alias.type);
|
||||
dasprintf (encoding, "}");
|
||||
return;
|
||||
case ty_none:
|
||||
switch (type->type) {
|
||||
|
|
Loading…
Reference in a new issue