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
799000ea
Commit
799000ea
authored
Jun 13, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Include the parent interfaces in the proc format string offsets for proxies.
parent
0cba5b06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
proxy.c
tools/widl/proxy.c
+36
-1
No files found.
tools/widl/proxy.c
View file @
799000ea
...
...
@@ -543,6 +543,36 @@ static const statement_t * get_callas_source(const type_t * iface, const var_t *
return
NULL
;
}
static
void
write_proxy_procformatstring_offsets
(
const
type_t
*
iface
,
int
skip
)
{
const
statement_t
*
stmt
;
if
(
type_iface_get_inherit
(
iface
))
write_proxy_procformatstring_offsets
(
type_iface_get_inherit
(
iface
),
need_delegation
(
iface
));
else
return
;
STATEMENTS_FOR_EACH_FUNC
(
stmt
,
type_iface_get_stmts
(
iface
)
)
{
const
var_t
*
func
=
stmt
->
u
.
var
;
int
missing
=
0
;
if
(
is_callas
(
func
->
attrs
))
continue
;
if
(
is_local
(
func
->
attrs
))
{
const
statement_t
*
callas_source
=
get_callas_source
(
iface
,
func
);
if
(
!
callas_source
)
missing
=
1
;
else
func
=
callas_source
->
u
.
var
;
}
if
(
skip
||
missing
)
print_proxy
(
"(unsigned short)-1, /* %s::%s */
\n
"
,
iface
->
name
,
get_name
(
func
));
else
print_proxy
(
"%u, /* %s::%s */
\n
"
,
func
->
procstring_offset
,
iface
->
name
,
get_name
(
func
));
}
}
static
int
write_proxy_methods
(
type_t
*
iface
,
int
skip
)
{
const
statement_t
*
stmt
;
...
...
@@ -667,7 +697,12 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
count
=
count_methods
(
iface
);
write_procformatstring_offsets
(
proxy
,
iface
);
print_proxy
(
"static const unsigned short %s_FormatStringOffsetTable[] =
\n
"
,
iface
->
name
);
print_proxy
(
"{
\n
"
);
indent
++
;
write_proxy_procformatstring_offsets
(
iface
,
0
);
indent
--
;
print_proxy
(
"};
\n\n
"
);
/* proxy info */
if
(
get_stub_mode
()
==
MODE_Oif
)
...
...
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