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
a41de877
Commit
a41de877
authored
Sep 02, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Output NULL for inherited methods in the vtbl.
parent
19cccae2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
proxy.c
tools/widl/proxy.c
+10
-8
No files found.
tools/widl/proxy.c
View file @
a41de877
...
@@ -553,36 +553,38 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
...
@@ -553,36 +553,38 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
print_proxy
(
"
\n
"
);
print_proxy
(
"
\n
"
);
}
}
static
int
write_proxy_methods
(
type_t
*
iface
)
static
int
write_proxy_methods
(
type_t
*
iface
,
int
skip
)
{
{
const
func_t
*
cur
;
const
func_t
*
cur
;
int
i
=
0
;
int
i
=
0
;
if
(
iface
->
ref
)
i
=
write_proxy_methods
(
iface
->
ref
);
if
(
iface
->
ref
)
i
=
write_proxy_methods
(
iface
->
ref
,
iface
->
ref
->
ref
!=
NULL
);
if
(
iface
->
funcs
)
LIST_FOR_EACH_ENTRY
(
cur
,
iface
->
funcs
,
const
func_t
,
entry
)
{
if
(
iface
->
funcs
)
LIST_FOR_EACH_ENTRY
(
cur
,
iface
->
funcs
,
const
func_t
,
entry
)
{
var_t
*
def
=
cur
->
def
;
var_t
*
def
=
cur
->
def
;
if
(
!
is_callas
(
def
->
attrs
))
{
if
(
!
is_callas
(
def
->
attrs
))
{
if
(
i
)
fprintf
(
proxy
,
",
\n
"
);
if
(
i
)
fprintf
(
proxy
,
",
\n
"
);
print_proxy
(
"%s_%s_Proxy"
,
iface
->
name
,
get_name
(
def
));
if
(
skip
)
print_proxy
(
"0 /* %s_%s_Proxy */"
,
iface
->
name
,
get_name
(
def
));
else
print_proxy
(
"%s_%s_Proxy"
,
iface
->
name
,
get_name
(
def
));
i
++
;
i
++
;
}
}
}
}
return
i
;
return
i
;
}
}
static
int
write_stub_methods
(
type_t
*
iface
)
static
int
write_stub_methods
(
type_t
*
iface
,
int
skip
)
{
{
const
func_t
*
cur
;
const
func_t
*
cur
;
int
i
=
0
;
int
i
=
0
;
if
(
iface
->
ref
)
i
=
write_stub_methods
(
iface
->
ref
);
if
(
iface
->
ref
)
i
=
write_stub_methods
(
iface
->
ref
,
TRUE
);
else
return
i
;
/* skip IUnknown */
else
return
i
;
/* skip IUnknown */
if
(
iface
->
funcs
)
LIST_FOR_EACH_ENTRY
(
cur
,
iface
->
funcs
,
const
func_t
,
entry
)
{
if
(
iface
->
funcs
)
LIST_FOR_EACH_ENTRY
(
cur
,
iface
->
funcs
,
const
func_t
,
entry
)
{
var_t
*
def
=
cur
->
def
;
var_t
*
def
=
cur
->
def
;
if
(
!
is_local
(
def
->
attrs
))
{
if
(
!
is_local
(
def
->
attrs
))
{
if
(
i
)
fprintf
(
proxy
,
",
\n
"
);
if
(
i
)
fprintf
(
proxy
,
",
\n
"
);
print_proxy
(
"%s_%s_Stub"
,
iface
->
name
,
get_name
(
def
));
if
(
skip
)
print_proxy
(
"STUB_FORWARDING_FUNCTION"
);
else
print_proxy
(
"%s_%s_Stub"
,
iface
->
name
,
get_name
(
def
));
i
++
;
i
++
;
}
}
}
}
...
@@ -637,7 +639,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
...
@@ -637,7 +639,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
print_proxy
(
"},
\n
"
);
print_proxy
(
"},
\n
"
);
print_proxy
(
"{
\n
"
);
print_proxy
(
"{
\n
"
);
indent
++
;
indent
++
;
write_proxy_methods
(
iface
);
write_proxy_methods
(
iface
,
FALSE
);
fprintf
(
proxy
,
"
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
indent
--
;
indent
--
;
print_proxy
(
"}
\n
"
);
print_proxy
(
"}
\n
"
);
...
@@ -649,7 +651,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
...
@@ -649,7 +651,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
print_proxy
(
"static const PRPC_STUB_FUNCTION %s_table[] =
\n
"
,
iface
->
name
);
print_proxy
(
"static const PRPC_STUB_FUNCTION %s_table[] =
\n
"
,
iface
->
name
);
print_proxy
(
"{
\n
"
);
print_proxy
(
"{
\n
"
);
indent
++
;
indent
++
;
stubs
=
write_stub_methods
(
iface
);
stubs
=
write_stub_methods
(
iface
,
FALSE
);
fprintf
(
proxy
,
"
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
indent
--
;
indent
--
;
fprintf
(
proxy
,
"};
\n
"
);
fprintf
(
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