mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
[qwaq] Use append_type in field/pointer/array_type
This fixes the missing alias chain splitter, allowing scheme to compile again.
This commit is contained in:
parent
6f871a8af9
commit
78962cb205
1 changed files with 10 additions and 10 deletions
|
@ -453,9 +453,9 @@ field_type (type_t *aux)
|
|||
new = new_type ();
|
||||
new->type = ev_field;
|
||||
new->alignment = 1;
|
||||
new->t.fldptr.type = aux;
|
||||
if (aux)
|
||||
new = find_type (new);
|
||||
if (aux) {
|
||||
new = find_type (append_type (new, aux));
|
||||
}
|
||||
return new;
|
||||
}
|
||||
|
||||
|
@ -471,9 +471,9 @@ pointer_type (type_t *aux)
|
|||
new = new_type ();
|
||||
new->type = ev_pointer;
|
||||
new->alignment = 1;
|
||||
new->t.fldptr.type = aux;
|
||||
if (aux)
|
||||
new = find_type (new);
|
||||
if (aux) {
|
||||
new = find_type (append_type (new, aux));
|
||||
}
|
||||
return new;
|
||||
}
|
||||
|
||||
|
@ -487,15 +487,15 @@ array_type (type_t *aux, int size)
|
|||
memset (&_new, 0, sizeof (_new));
|
||||
else
|
||||
new = new_type ();
|
||||
new->meta = ty_array;
|
||||
new->type = ev_invalid;
|
||||
if (aux) {
|
||||
new->alignment = aux->alignment;
|
||||
}
|
||||
new->meta = ty_array;
|
||||
new->t.array.type = aux;
|
||||
new->t.array.size = size;
|
||||
if (aux)
|
||||
new = find_type (new);
|
||||
if (aux) {
|
||||
new = find_type (append_type (new, aux));
|
||||
}
|
||||
return new;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue