[PATCH 4/5] widl: Use C name when writing UUID declarations.
Rémi Bernon
rbernon at codeweavers.com
Fri Feb 19 05:04:00 CST 2021
From: Steve Lhomme <robux4 at ycbcr.xyz>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
tools/widl/header.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tools/widl/header.c b/tools/widl/header.c
index e1dcab9b75b..82aad0f11ca 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -135,15 +135,13 @@ static void write_guid(FILE *f, const char *guid_prefix, const char *name, const
static void write_uuid_decl(FILE *f, type_t *type, const UUID *uuid)
{
- char *name = format_namespace(type->namespace, "", "::", type->name, use_abi_namespace ? "ABI" : NULL);
fprintf(f, "#ifdef __CRT_UUID_DECL\n");
fprintf(f, "__CRT_UUID_DECL(%s, 0x%08x, 0x%04x, 0x%04x, 0x%02x,0x%02x, 0x%02x,"
"0x%02x,0x%02x,0x%02x,0x%02x,0x%02x)\n",
- name, uuid->Data1, uuid->Data2, uuid->Data3, uuid->Data4[0], uuid->Data4[1],
+ type->c_name, uuid->Data1, uuid->Data2, uuid->Data3, uuid->Data4[0], uuid->Data4[1],
uuid->Data4[2], uuid->Data4[3], uuid->Data4[4], uuid->Data4[5], uuid->Data4[6],
uuid->Data4[7]);
fprintf(f, "#endif\n");
- free(name);
}
static const char *uuid_string(const UUID *uuid)
--
2.30.0
More information about the wine-devel
mailing list