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
58810696
Commit
58810696
authored
Jun 13, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use delegation when inheriting from a local interface.
parent
799000ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
proxy.c
tools/widl/proxy.c
+7
-5
No files found.
tools/widl/proxy.c
View file @
58810696
...
...
@@ -142,9 +142,8 @@ int cant_be_null(const var_t *v)
static
int
need_delegation
(
const
type_t
*
iface
)
{
return
type_iface_get_inherit
(
iface
)
&&
type_iface_get_inherit
(
type_iface_get_inherit
(
iface
))
&&
type_iface_get_inherit
(
iface
)
->
ignore
;
const
type_t
*
parent
=
type_iface_get_inherit
(
iface
);
return
parent
&&
type_iface_get_inherit
(
parent
)
&&
(
parent
->
ignore
||
is_local
(
parent
->
attrs
));
}
static
int
get_delegation_indirect
(
const
type_t
*
iface
,
const
type_t
**
delegate_to
)
...
...
@@ -944,7 +943,7 @@ static void write_proxy_routines(const statement_list_t *stmts)
int
expr_eval_routines
;
unsigned
int
proc_offset
=
0
;
char
*
file_id
=
proxy_token
;
int
i
,
count
,
have_baseiid
;
int
i
,
count
,
have_baseiid
=
0
;
type_t
**
interfaces
;
const
type_t
*
delegate_to
;
...
...
@@ -1021,7 +1020,10 @@ static void write_proxy_routines(const statement_list_t *stmts)
fprintf
(
proxy
,
"};
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
if
((
have_baseiid
=
does_any_iface
(
stmts
,
need_delegation_indirect
)))
for
(
i
=
0
;
i
<
count
;
i
++
)
if
((
have_baseiid
=
get_delegation_indirect
(
interfaces
[
i
],
NULL
)))
break
;
if
(
have_baseiid
)
{
fprintf
(
proxy
,
"static const IID * _%s_BaseIIDList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\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