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
25732276
Commit
25732276
authored
Jan 21, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[local] functions should not be written to the typelib.
parent
0c238856
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
write_msft.c
tools/widl/write_msft.c
+13
-8
No files found.
tools/widl/write_msft.c
View file @
25732276
...
...
@@ -1139,11 +1139,11 @@ static HRESULT set_custdata(msft_typelib_t *typelib, REFGUID guid,
return
S_OK
;
}
static
HRESULT
add_func_desc
(
msft_typeinfo_t
*
typeinfo
,
func_t
*
func
)
static
HRESULT
add_func_desc
(
msft_typeinfo_t
*
typeinfo
,
func_t
*
func
,
int
index
)
{
int
offset
;
int
*
typedata
;
int
i
,
i
ndex
=
func
->
idx
,
i
d
;
int
i
,
id
;
int
decoded_size
,
extra_attr
=
0
;
int
num_params
=
0
,
num_defaults
=
0
;
var_t
*
arg
,
*
last_arg
=
NULL
;
...
...
@@ -1155,8 +1155,15 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, func_t *func)
id
=
((
0x6000
|
typeinfo
->
typeinfo
->
cImplTypes
)
<<
16
)
|
index
;
chat
(
"(%p,%d)
\n
"
,
typeinfo
,
index
);
chat
(
"add_func_desc(%p,%d)
\n
"
,
typeinfo
,
index
);
for
(
attr
=
func
->
def
->
attrs
;
attr
;
attr
=
NEXT_LINK
(
attr
))
{
if
(
attr
->
type
==
ATTR_LOCAL
)
{
chat
(
"add_func_desc: skipping local function
\n
"
);
return
S_FALSE
;
}
}
if
(
!
typeinfo
->
typedata
)
{
typeinfo
->
typedata
=
xmalloc
(
0x2000
);
typeinfo
->
typedata
[
0
]
=
0
;
...
...
@@ -1950,10 +1957,8 @@ int create_msft_typelib(typelib_t *typelib)
func_t
*
cur
=
entry
->
u
.
interface
->
funcs
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
while
(
cur
)
{
if
(
cur
->
idx
==
-
1
)
cur
->
idx
=
idx
;
else
if
(
cur
->
idx
!=
idx
)
error
(
"method index mismatch
\n
"
);
add_func_desc
(
msft_typeinfo
,
cur
);
idx
++
;
if
(
add_func_desc
(
msft_typeinfo
,
cur
,
idx
)
==
S_OK
)
idx
++
;
cur
=
PREV_LINK
(
cur
);
}
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