mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Encode param qualifiers in function type
I'm not sure whether I'll stick with the current encoding, but it turns out it's necessary to separate function types on parameter qualifiers (I was half expecting that, though).
This commit is contained in:
parent
22794caf11
commit
01d3c60fe0
1 changed files with 6 additions and 1 deletions
|
@ -1146,8 +1146,13 @@ encode_params (const type_t *type)
|
|||
count = -type->func.num_params - 1;
|
||||
else
|
||||
count = type->func.num_params;
|
||||
for (i = 0; i < count; i++)
|
||||
for (i = 0; i < count; i++) {
|
||||
// in is the default qualifier
|
||||
if (type->func.param_quals[i] != pq_in) {
|
||||
dasprintf (encoding, "%c", "c_Oo"[type->func.param_quals[i]]);
|
||||
}
|
||||
encode_type (encoding, unalias_type (type->func.param_types[i]));
|
||||
}
|
||||
if (type->func.num_params < 0)
|
||||
dasprintf (encoding, ".");
|
||||
|
||||
|
|
Loading…
Reference in a new issue