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
069d7b02
Commit
069d7b02
authored
Nov 07, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Support async interfaces in headers generation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b467f2de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
header.c
tools/widl/header.c
+13
-2
No files found.
tools/widl/header.c
View file @
069d7b02
...
@@ -1611,8 +1611,13 @@ static void write_forward_decls(FILE *header, const statement_list_t *stmts)
...
@@ -1611,8 +1611,13 @@ static void write_forward_decls(FILE *header, const statement_list_t *stmts)
case
STMT_TYPE
:
case
STMT_TYPE
:
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_INTERFACE
)
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_INTERFACE
)
{
{
if
(
is_object
(
stmt
->
u
.
type
)
||
is_attr
(
stmt
->
u
.
type
->
attrs
,
ATTR_DISPINTERFACE
))
type_t
*
iface
=
stmt
->
u
.
type
;
write_forward
(
header
,
stmt
->
u
.
type
);
if
(
is_object
(
iface
)
||
is_attr
(
iface
->
attrs
,
ATTR_DISPINTERFACE
))
{
write_forward
(
header
,
iface
);
if
(
iface
->
details
.
iface
->
async_iface
)
write_forward
(
header
,
iface
->
details
.
iface
->
async_iface
);
}
}
}
else
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_COCLASS
)
else
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_COCLASS
)
write_coclass_forward
(
header
,
stmt
->
u
.
type
);
write_coclass_forward
(
header
,
stmt
->
u
.
type
);
...
@@ -1647,12 +1652,18 @@ static void write_header_stmts(FILE *header, const statement_list_t *stmts, cons
...
@@ -1647,12 +1652,18 @@ static void write_header_stmts(FILE *header, const statement_list_t *stmts, cons
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_INTERFACE
)
if
(
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_INTERFACE
)
{
{
type_t
*
iface
=
stmt
->
u
.
type
;
type_t
*
iface
=
stmt
->
u
.
type
;
type_t
*
async_iface
=
iface
->
details
.
iface
->
async_iface
;
if
(
is_object
(
iface
))
is_object_interface
++
;
if
(
is_object
(
iface
))
is_object_interface
++
;
if
(
is_attr
(
stmt
->
u
.
type
->
attrs
,
ATTR_DISPINTERFACE
)
||
is_object
(
stmt
->
u
.
type
))
if
(
is_attr
(
stmt
->
u
.
type
->
attrs
,
ATTR_DISPINTERFACE
)
||
is_object
(
stmt
->
u
.
type
))
{
{
write_com_interface_start
(
header
,
iface
);
write_com_interface_start
(
header
,
iface
);
write_header_stmts
(
header
,
type_iface_get_stmts
(
iface
),
stmt
->
u
.
type
,
TRUE
);
write_header_stmts
(
header
,
type_iface_get_stmts
(
iface
),
stmt
->
u
.
type
,
TRUE
);
write_com_interface_end
(
header
,
iface
);
write_com_interface_end
(
header
,
iface
);
if
(
async_iface
)
{
write_com_interface_start
(
header
,
async_iface
);
write_com_interface_end
(
header
,
async_iface
);
}
}
}
else
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