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
b8fb66c7
Commit
b8fb66c7
authored
Sep 15, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Separate declaration and initialisation for indirect arguments.
parent
bf011b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
typegen.c
tools/widl/typegen.c
+4
-2
No files found.
tools/widl/typegen.c
View file @
b8fb66c7
...
...
@@ -344,8 +344,11 @@ void print(FILE *file, int indent, const char *format, va_list va)
static
void
write_var_init
(
FILE
*
file
,
int
indent
,
const
type_t
*
t
,
const
char
*
n
,
const
char
*
local_var_prefix
)
{
if
(
decl_indirect
(
t
))
{
print_file
(
file
,
indent
,
"MIDL_memset(&%s%s, 0, sizeof(%s%s));
\n
"
,
local_var_prefix
,
n
,
local_var_prefix
,
n
);
print_file
(
file
,
indent
,
"%s_p_%s = &%s%s;
\n
"
,
local_var_prefix
,
n
,
local_var_prefix
,
n
);
}
else
if
(
is_ptr
(
t
)
||
is_array
(
t
))
print_file
(
file
,
indent
,
"%s%s = 0;
\n
"
,
local_var_prefix
,
n
);
}
...
...
@@ -3204,8 +3207,7 @@ void declare_stub_args( FILE *file, int indent, const func_t *func )
fprintf
(
file
,
";
\n
"
);
if
(
decl_indirect
(
var
->
type
))
print_file
(
file
,
indent
,
"void *_p_%s = &%s;
\n
"
,
var
->
name
,
var
->
name
);
print_file
(
file
,
indent
,
"void *_p_%s;
\n
"
,
var
->
name
);
}
}
}
...
...
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