mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
widl: Use alias qualified names in winrt mode in write_type_left.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55347
This commit is contained in:
parent
4115b2356c
commit
311609f12c
Notes:
Alexandre Julliard
2024-09-16 23:24:05 +02:00
Approved-by: Rémi Bernon (@rbernon) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6496
1 changed files with 3 additions and 7 deletions
|
@ -296,7 +296,7 @@ void write_type_left(FILE *h, const decl_spec_t *ds, enum name_type name_type, b
|
|||
if ((ds->qualifier & TYPE_QUALIFIER_CONST) && (type_is_alias(t) || !is_ptr(t)))
|
||||
fprintf(h, "const ");
|
||||
|
||||
if (!winrt_mode && type_is_alias(t)) fprintf(h, "%s", t->name);
|
||||
if (type_is_alias(t)) fprintf(h, "%s", name);
|
||||
else {
|
||||
switch (type_get_type_detect_alias(t)) {
|
||||
case TYPE_ENUM:
|
||||
|
@ -450,13 +450,9 @@ void write_type_left(FILE *h, const decl_spec_t *ds, enum name_type name_type, b
|
|||
break;
|
||||
}
|
||||
case TYPE_ALIAS:
|
||||
{
|
||||
const decl_spec_t *ds = type_alias_get_aliasee(t);
|
||||
int in_namespace = ds && ds->type && ds->type->namespace && !is_global_namespace(ds->type->namespace);
|
||||
if (!in_namespace) fprintf(h, "%s", t->name);
|
||||
else write_type_left(h, ds, name_type, define, write_callconv);
|
||||
/* handled elsewhere */
|
||||
assert(0);
|
||||
break;
|
||||
}
|
||||
case TYPE_PARAMETERIZED_TYPE:
|
||||
{
|
||||
type_t *iface = type_parameterized_type_get_real_type(t);
|
||||
|
|
Loading…
Reference in a new issue