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
c1db191d
Commit
c1db191d
authored
Jan 25, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add interface inheritance.
parent
0f18bb0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
write_msft.c
tools/widl/write_msft.c
+15
-0
No files found.
tools/widl/write_msft.c
View file @
c1db191d
...
...
@@ -1502,6 +1502,18 @@ static HRESULT add_var_desc(msft_typeinfo_t *typeinfo, UINT index, var_t* var)
return
S_OK
;
}
static
HRESULT
add_impl_type
(
msft_typeinfo_t
*
typeinfo
,
type_t
*
ref
)
{
if
(
ref
->
typelib_idx
==
-
1
)
add_interface_typeinfo
(
typeinfo
->
typelib
,
ref
);
if
(
ref
->
typelib_idx
==
-
1
)
error
(
"add_impl_type: unable to add inherited interface
\n
"
);
typeinfo
->
typeinfo
->
datatype1
=
typeinfo
->
typelib
->
typelib_typeinfo_offsets
[
ref
->
typelib_idx
];
typeinfo
->
typeinfo
->
cImplTypes
++
;
return
S_OK
;
}
static
msft_typeinfo_t
*
create_msft_typeinfo
(
msft_typelib_t
*
typelib
,
enum
type_kind
kind
,
char
*
name
,
attr_t
*
attr
,
int
idx
)
{
...
...
@@ -1603,6 +1615,9 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
typelib
->
typelib_header
.
nrtypeinfos
);
msft_typeinfo
->
typeinfo
->
size
=
4
;
if
(
interface
->
ref
)
add_impl_type
(
msft_typeinfo
,
interface
->
ref
);
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
while
(
cur
)
{
if
(
add_func_desc
(
msft_typeinfo
,
cur
,
idx
)
==
S_OK
)
...
...
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