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
cde0c0d1
Commit
cde0c0d1
authored
Sep 02, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output code to clear OUT variables in proxy code.
parent
3aab64de
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 @
cde0c0d1
...
@@ -62,6 +62,23 @@ static void init_proxy(void)
...
@@ -62,6 +62,23 @@ static void init_proxy(void)
write_stubdesc
();
write_stubdesc
();
}
}
static
void
clear_output_vars
(
var_t
*
arg
)
{
if
(
arg
)
{
while
(
NEXT_LINK
(
arg
))
arg
=
NEXT_LINK
(
arg
);
}
while
(
arg
)
{
if
(
is_attr
(
arg
->
attrs
,
ATTR_OUT
))
{
fprintf
(
proxy
,
" if(%s)
\n
"
,
arg
->
name
);
fprintf
(
proxy
,
" MIDL_memset( %s, 0, sizeof( "
,
arg
->
name
);
write_type
(
proxy
,
arg
->
type
,
arg
,
arg
->
tname
);
fprintf
(
proxy
,
" ));
\n
"
);
}
arg
=
PREV_LINK
(
arg
);
}
}
static
void
gen_proxy
(
type_t
*
iface
,
func_t
*
cur
,
int
idx
)
static
void
gen_proxy
(
type_t
*
iface
,
func_t
*
cur
,
int
idx
)
{
{
var_t
*
def
=
cur
->
def
;
var_t
*
def
=
cur
->
def
;
...
@@ -85,7 +102,7 @@ static void gen_proxy(type_t *iface, func_t *cur, int idx)
...
@@ -85,7 +102,7 @@ static void gen_proxy(type_t *iface, func_t *cur, int idx)
fprintf
(
proxy
,
"
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
/* FIXME: trace */
/* FIXME: trace */
/* FIXME: clear output vars? */
clear_output_vars
(
cur
->
args
);
fprintf
(
proxy
,
" NdrProxyInitialize(This, &_Msg, &_StubMsg, &Object_StubDesc, %d);
\n
"
,
idx
);
fprintf
(
proxy
,
" NdrProxyInitialize(This, &_Msg, &_StubMsg, &Object_StubDesc, %d);
\n
"
,
idx
);
...
...
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