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
99d296b6
Commit
99d296b6
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: Declare C++ interfaces in namespaces if needed.
parent
e50866ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
header.c
tools/widl/header.c
+19
-13
No files found.
tools/widl/header.c
View file @
99d296b6
...
...
@@ -1279,34 +1279,40 @@ static void write_com_interface_end(FILE *header, type_t *iface)
/* C++ interface */
fprintf
(
header
,
"#if defined(__cplusplus) && !defined(CINTERFACE)
\n
"
);
if
(
uuid
)
fprintf
(
header
,
"MIDL_INTERFACE(
\"
%s
\"
)
\n
"
,
uuid_string
(
uuid
));
else
if
(
!
is_global_namespace
(
iface
->
namespace
))
{
write_line
(
header
,
0
,
"} /* extern
\"
C
\"
*/"
);
write_namespace_start
(
header
,
iface
->
namespace
);
}
if
(
uuid
)
{
write_line
(
header
,
0
,
"MIDL_INTERFACE(
\"
%s
\"
)"
,
uuid_string
(
uuid
));
indent
(
header
,
0
);
}
else
{
indent
(
header
,
0
);
fprintf
(
header
,
"interface "
);
}
if
(
type_iface_get_inherit
(
iface
))
{
fprintf
(
header
,
"%s : public %s
\n
"
,
iface
->
name
,
type_iface_get_inherit
(
iface
)
->
name
);
fprintf
(
header
,
"{
\n
"
);
write_line
(
header
,
1
,
"{
"
);
}
else
{
fprintf
(
header
,
"%s
\n
"
,
iface
->
name
);
fprintf
(
header
,
"{
\n
"
);
fprintf
(
header
,
" BEGIN_INTERFACE
\n
"
);
fprintf
(
header
,
"
\n
"
);
write_line
(
header
,
1
,
"{
\n
"
);
write_line
(
header
,
0
,
"BEGIN_INTERFACE
\n
"
);
}
/* dispinterfaces don't have real functions, so don't write C++ functions for
* them */
if
(
!
dispinterface
)
{
indentation
++
;
write_cpp_method_def
(
header
,
iface
);
indentation
--
;
}
if
(
!
type_iface_get_inherit
(
iface
))
fprintf
(
header
,
" END_INTERFACE
\n
"
);
fprintf
(
header
,
"};
\n
"
);
write_line
(
header
,
0
,
"END_INTERFACE
\n
"
);
write_line
(
header
,
-
1
,
"};"
);
if
(
!
is_global_namespace
(
iface
->
namespace
))
{
write_namespace_end
(
header
,
iface
->
namespace
);
write_line
(
header
,
0
,
"extern
\"
C
\"
{"
);
}
if
(
uuid
)
write_uuid_decl
(
header
,
iface
->
name
,
uuid
);
fprintf
(
header
,
"#else
\n
"
);
...
...
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