Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
649d5d0e
Commit
649d5d0e
authored
Feb 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Write out TYPEFLAG_FDUAL, TYPEFLAG_FDISPATCHABLE and
TYPEFLAG_FOLEAUTOMATION typelib flags.
parent
69698f9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
write_msft.c
tools/widl/write_msft.c
+18
-0
No files found.
tools/widl/write_msft.c
View file @
649d5d0e
...
...
@@ -1676,6 +1676,11 @@ static msft_typeinfo_t *create_msft_typeinfo(msft_typelib_t *typelib, enum type_
typeinfo
->
datatype1
=
offset
;
break
;
}
case
ATTR_DUAL
:
typeinfo
->
flags
|=
0x40
;
/* TYPEFLAG_FDUAL */
break
;
case
ATTR_HELPCONTEXT
:
{
expr_t
*
expr
=
(
expr_t
*
)
attr
->
u
.
pval
;
...
...
@@ -1706,6 +1711,10 @@ static msft_typeinfo_t *create_msft_typeinfo(msft_typelib_t *typelib, enum type_
case
ATTR_ODL
:
break
;
case
ATTR_OLEAUTOMATION
:
typeinfo
->
flags
|=
0x100
;
/* TYPEFLAG_FOLEAUTOMATION */
break
;
case
ATTR_PUBLIC
:
break
;
...
...
@@ -1824,6 +1833,7 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
msft_typeinfo_t
*
msft_typeinfo
;
int
num_parents
=
0
,
num_funcs
=
0
;
const
attr_t
*
attr
;
const
type_t
*
derived
;
for
(
attr
=
interface
->
attrs
;
attr
;
attr
=
NEXT_LINK
(
attr
))
if
(
attr
->
type
==
ATTR_DISPINTERFACE
)
...
...
@@ -1841,6 +1851,14 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
msft_typeinfo
->
typeinfo
->
size
=
4
;
msft_typeinfo
->
typeinfo
->
typekind
|=
0x2200
;
for
(
derived
=
interface
->
ref
;
derived
;
derived
=
derived
->
ref
)
if
(
derived
->
name
&&
!
strcmp
(
derived
->
name
,
"IDispatch"
))
msft_typeinfo
->
typeinfo
->
flags
|=
0x1000
;
/* TYPEFLAG_FDISPATCHABLE */
/* can't be dual if it doesn't derive from IDispatch */
if
(
!
(
msft_typeinfo
->
typeinfo
->
flags
&
0x1000
))
/* TYPEFLAG_FDISPATCHABLE */
msft_typeinfo
->
typeinfo
->
flags
&=
0x40
;
/* TYPEFLAG_FDUAL */
if
(
interface
->
ref
)
add_impl_type
(
msft_typeinfo
,
interface
->
ref
);
...
...
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