widl: Never use the namespace ABI prefix for global types.
Otherwise we end up with types like ABI::IInspectable. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d89b304eb7
commit
a78053743d
|
@ -105,9 +105,10 @@ static size_t append_namespace(char **buf, size_t *len, size_t pos, struct names
|
||||||
static size_t append_namespaces(char **buf, size_t *len, size_t pos, struct namespace *namespace, const char *prefix,
|
static size_t append_namespaces(char **buf, size_t *len, size_t pos, struct namespace *namespace, const char *prefix,
|
||||||
const char *separator, const char *suffix, const char *abi_prefix)
|
const char *separator, const char *suffix, const char *abi_prefix)
|
||||||
{
|
{
|
||||||
|
int nested = namespace && !is_global_namespace(namespace);
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
n += strappend(buf, len, pos + n, "%s", prefix);
|
n += strappend(buf, len, pos + n, "%s", prefix);
|
||||||
n += append_namespace(buf, len, pos + n, namespace, separator, abi_prefix);
|
if (nested) n += append_namespace(buf, len, pos + n, namespace, separator, abi_prefix);
|
||||||
n += strappend(buf, len, pos + n, "%s", suffix);
|
n += strappend(buf, len, pos + n, "%s", suffix);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue