Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cccbb4eb
Commit
cccbb4eb
authored
Jul 31, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Properly handle namespaces in write_uuid_decl.
parent
83e197df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
header.c
tools/widl/header.c
+5
-3
No files found.
tools/widl/header.c
View file @
cccbb4eb
...
...
@@ -129,8 +129,9 @@ static void write_guid(FILE *f, const char *guid_prefix, const char *name, const
uuid
->
Data4
[
6
],
uuid
->
Data4
[
7
]);
}
static
void
write_uuid_decl
(
FILE
*
f
,
const
char
*
nam
e
,
const
UUID
*
uuid
)
static
void
write_uuid_decl
(
FILE
*
f
,
type_t
*
typ
e
,
const
UUID
*
uuid
)
{
char
*
name
=
format_namespace
(
type
->
namespace
,
""
,
"::"
,
type
->
name
);
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
"
,
...
...
@@ -138,6 +139,7 @@ static void write_uuid_decl(FILE *f, const char *name, const UUID *uuid)
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
)
...
...
@@ -1314,7 +1316,7 @@ static void write_com_interface_end(FILE *header, type_t *iface)
write_line
(
header
,
0
,
"extern
\"
C
\"
{"
);
}
if
(
uuid
)
write_uuid_decl
(
header
,
iface
->
name
,
uuid
);
write_uuid_decl
(
header
,
iface
,
uuid
);
fprintf
(
header
,
"#else
\n
"
);
/* C interface */
write_line
(
header
,
1
,
"typedef struct %sVtbl {"
,
iface
->
c_name
);
...
...
@@ -1400,7 +1402,7 @@ static void write_coclass(FILE *header, type_t *cocl)
if
(
uuid
)
{
fprintf
(
header
,
"class DECLSPEC_UUID(
\"
%s
\"
) %s;
\n
"
,
uuid_string
(
uuid
),
cocl
->
name
);
write_uuid_decl
(
header
,
cocl
->
name
,
uuid
);
write_uuid_decl
(
header
,
cocl
,
uuid
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment