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
2e6bd29a
Commit
2e6bd29a
authored
Jan 24, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for hidden and restricted function attributes.
Add support for odl interface attribute.
parent
a27be2db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
write_msft.c
tools/widl/write_msft.c
+14
-5
No files found.
tools/widl/write_msft.c
View file @
2e6bd29a
...
...
@@ -1180,14 +1180,11 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, func_t *func, int index)
}
}
chat
(
"num of params %d
\n
"
,
num_params
);
chat
(
"
add_func_desc:
num of params %d
\n
"
,
num_params
);
for
(
attr
=
func
->
def
->
attrs
;
attr
;
attr
=
NEXT_LINK
(
attr
))
{
expr_t
*
expr
=
attr
->
u
.
pval
;
switch
(
attr
->
type
)
{
case
ATTR_ID
:
id
=
expr
->
u
.
lval
;
break
;
case
ATTR_HELPCONTEXT
:
extra_attr
=
1
;
help_context
=
expr
->
u
.
lval
;
...
...
@@ -1200,6 +1197,12 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, func_t *func, int index)
extra_attr
=
6
;
help_string_context
=
expr
->
u
.
lval
;
break
;
case
ATTR_HIDDEN
:
funcflags
|=
0x40
;
/* FUNCFLAG_FHIDDEN */
break
;
case
ATTR_ID
:
id
=
expr
->
u
.
lval
;
break
;
case
ATTR_OUT
:
break
;
case
ATTR_PROPGET
:
...
...
@@ -1208,8 +1211,11 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, func_t *func, int index)
case
ATTR_PROPPUT
:
invokekind
=
0x4
;
/* INVOKE_PROPERTYPUT */
break
;
case
ATTR_RESTRICTED
:
funcflags
|=
0x1
;
/* FUNCFLAG_FRESTRICTED */
break
;
default:
warning
(
"ignoring attr %d
\n
"
,
attr
->
type
);
warning
(
"
add_func_desc:
ignoring attr %d
\n
"
,
attr
->
type
);
break
;
}
}
...
...
@@ -1584,6 +1590,9 @@ static msft_typeinfo_t *create_msft_typeinfo(msft_typelib_t *typelib, typelib_en
typeinfo
->
flags
|=
0x10
;
/* TYPEFLAG_FHIDDEN */
break
;
case
ATTR_ODL
:
break
;
case
ATTR_RESTRICTED
:
typeinfo
->
flags
|=
0x200
;
/* TYPEFLAG_FRESTRICTED */
break
;
...
...
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