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
0cba5b06
Commit
0cba5b06
authored
Jun 13, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use the local function as proxy entry for callas interpreted functions.
parent
e620869d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
proxy.c
tools/widl/proxy.c
+8
-18
No files found.
tools/widl/proxy.c
View file @
0cba5b06
...
...
@@ -554,24 +554,14 @@ static int write_proxy_methods(type_t *iface, int skip)
STATEMENTS_FOR_EACH_FUNC
(
stmt
,
type_iface_get_stmts
(
iface
))
{
const
var_t
*
func
=
stmt
->
u
.
var
;
if
(
!
is_callas
(
func
->
attrs
))
{
int
missing
=
0
;
const
char
*
fname
=
get_name
(
func
);
if
(
is_local
(
func
->
attrs
))
{
const
statement_t
*
callas_source
=
get_callas_source
(
iface
,
func
);
if
(
!
callas_source
)
missing
=
1
;
else
fname
=
get_name
(
callas_source
->
u
.
var
);
}
if
(
skip
||
missing
)
print_proxy
(
"0, /* %s::%s */
\n
"
,
iface
->
name
,
get_name
(
func
));
else
if
(
is_interpreted_func
(
iface
,
func
))
{
if
(
!
is_local
(
func
->
attrs
)
&&
type_iface_get_inherit
(
iface
))
print_proxy
(
"(void *)-1, /* %s::%s */
\n
"
,
iface
->
name
,
get_name
(
func
));
else
print_proxy
(
"%s_%s_Proxy,
\n
"
,
iface
->
name
,
fname
);
}
else
print_proxy
(
"%s_%s_Proxy,
\n
"
,
iface
->
name
,
get_name
(
func
));
if
(
skip
||
(
is_local
(
func
->
attrs
)
&&
!
get_callas_source
(
iface
,
func
)))
print_proxy
(
"0, /* %s::%s */
\n
"
,
iface
->
name
,
get_name
(
func
));
else
if
(
is_interpreted_func
(
iface
,
func
)
&&
!
is_local
(
func
->
attrs
)
&&
type_iface_get_inherit
(
iface
))
print_proxy
(
"(void *)-1, /* %s::%s */
\n
"
,
iface
->
name
,
get_name
(
func
));
else
print_proxy
(
"%s_%s_Proxy,
\n
"
,
iface
->
name
,
get_name
(
func
));
i
++
;
}
}
...
...
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