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
350c93a1
Commit
350c93a1
authored
Jun 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Don't require inline stubs for functions that are never generated.
parent
31475455
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
proxy.c
tools/widl/proxy.c
+18
-1
No files found.
tools/widl/proxy.c
View file @
350c93a1
...
...
@@ -850,6 +850,23 @@ int need_inline_stubs(const type_t *iface)
STATEMENTS_FOR_EACH_FUNC
(
stmt
,
type_iface_get_stmts
(
iface
)
)
{
const
var_t
*
func
=
stmt
->
u
.
var
;
if
(
is_local
(
func
->
attrs
))
continue
;
if
(
!
is_interpreted_func
(
iface
,
func
))
return
1
;
}
return
0
;
}
static
int
need_proxy_and_inline_stubs
(
const
type_t
*
iface
)
{
const
statement_t
*
stmt
;
if
(
!
need_proxy
(
iface
))
return
0
;
if
(
get_stub_mode
()
==
MODE_Os
)
return
1
;
STATEMENTS_FOR_EACH_FUNC
(
stmt
,
type_iface_get_stmts
(
iface
)
)
{
const
var_t
*
func
=
stmt
->
u
.
var
;
if
(
is_local
(
func
->
attrs
))
continue
;
if
(
!
is_interpreted_func
(
iface
,
func
))
return
1
;
}
return
0
;
...
...
@@ -942,7 +959,7 @@ static void write_proxy_routines(const statement_list_t *stmts)
print_proxy
(
"#include
\"
%s
\"\n
"
,
header_name
);
print_proxy
(
"
\n
"
);
if
(
need_inline_stubs_file
(
stmts
))
if
(
does_any_iface
(
stmts
,
need_proxy_and_inline_stubs
))
{
write_exceptions
(
proxy
);
print_proxy
(
"
\n
"
);
...
...
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