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
c526c980
Commit
c526c980
authored
Aug 15, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix out-only temporary variable generation.
parent
e77a079b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
proxy.c
tools/widl/proxy.c
+6
-3
No files found.
tools/widl/proxy.c
View file @
c526c980
...
...
@@ -685,8 +685,10 @@ static void gen_proxy(type_t *iface, func_t *cur, int idx)
static
void
stub_write_locals
(
var_t
*
arg
)
{
int
n
=
0
;
END_OF_LIST
(
arg
);
while
(
arg
)
{
int
outptr
=
is_attr
(
arg
->
attrs
,
ATTR_OUT
);
int
outptr
=
is_attr
(
arg
->
attrs
,
ATTR_OUT
)
&&
!
is_attr
(
arg
->
attrs
,
ATTR_IN
);
/* create a temporary variable to store the output */
if
(
outptr
)
{
...
...
@@ -702,7 +704,7 @@ static void stub_write_locals( var_t *arg )
fprintf
(
proxy
,
" "
);
write_name
(
proxy
,
arg
);
fprintf
(
proxy
,
";
\n
"
);
arg
=
NEXT
_LINK
(
arg
);
arg
=
PREV
_LINK
(
arg
);
}
}
...
...
@@ -731,7 +733,8 @@ static void stub_unmarshall( var_t *arg )
print_proxy
(
""
);
write_name
(
proxy
,
arg
);
fprintf
(
proxy
,
" = &_M%d;
\n
"
,
n
);
print_proxy
(
"_M%d = 0;
\n
"
,
n
++
);
print_proxy
(
"MIDL_memset(&_M%d, 0, sizeof _M%d);
\n
"
,
n
,
n
);
++
n
;
break
;
}
}
...
...
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