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
34613835
Commit
34613835
authored
Dec 15, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use ULONG_PTR instead of unsigned long for pointer casts in generated code.
parent
8a658d7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
proxy.c
tools/widl/proxy.c
+1
-1
typegen.c
tools/widl/typegen.c
+8
-8
No files found.
tools/widl/proxy.c
View file @
34613835
...
...
@@ -249,7 +249,7 @@ static void free_variable( const var_t *arg, const char *local_var_prefix )
iid
=
get_attrp
(
arg
->
attrs
,
ATTR_IIDIS
);
if
(
iid
)
{
print_proxy
(
"__frame->_StubMsg.MaxCount = (
unsigned long
) "
);
print_proxy
(
"__frame->_StubMsg.MaxCount = (
ULONG_PTR
) "
);
write_expr
(
proxy
,
iid
,
1
,
1
,
NULL
,
NULL
,
local_var_prefix
);
print_proxy
(
";
\n\n
"
);
}
...
...
tools/widl/typegen.c
View file @
34613835
...
...
@@ -2676,8 +2676,8 @@ void print_phase_basetype(FILE *file, int indent, const char *local_var_prefix,
}
if
(
phase
==
PHASE_MARSHAL
)
print_file
(
file
,
indent
,
"MIDL_memset(__frame->_StubMsg.Buffer, 0, (0x%x - (
long
)__frame->_StubMsg.Buffer) & 0x%x);
\n
"
,
alignment
,
alignment
-
1
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.Buffer = (unsigned char *)(((
long
)__frame->_StubMsg.Buffer + %u) & ~0x%x);
\n
"
,
print_file
(
file
,
indent
,
"MIDL_memset(__frame->_StubMsg.Buffer, 0, (0x%x - (
ULONG_PTR
)__frame->_StubMsg.Buffer) & 0x%x);
\n
"
,
alignment
,
alignment
-
1
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.Buffer = (unsigned char *)(((
ULONG_PTR
)__frame->_StubMsg.Buffer + %u) & ~0x%x);
\n
"
,
alignment
-
1
,
alignment
-
1
);
if
(
phase
==
PHASE_MARSHAL
)
...
...
@@ -2759,14 +2759,14 @@ static void write_parameter_conf_or_var_exprs(FILE *file, int indent, const char
{
if
(
type
->
size_is
)
{
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
unsigned long
)"
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
ULONG_PTR
)"
);
write_expr
(
file
,
type
->
size_is
,
1
,
1
,
NULL
,
NULL
,
local_var_prefix
);
fprintf
(
file
,
";
\n\n
"
);
}
if
(
type
->
length_is
)
{
print_file
(
file
,
indent
,
"__frame->_StubMsg.Offset =
(unsigned long)
0;
\n
"
);
/* FIXME */
print_file
(
file
,
indent
,
"__frame->_StubMsg.ActualCount = (
unsigned long
)"
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.Offset = 0;
\n
"
);
/* FIXME */
print_file
(
file
,
indent
,
"__frame->_StubMsg.ActualCount = (
ULONG_PTR
)"
);
write_expr
(
file
,
type
->
length_is
,
1
,
1
,
NULL
,
NULL
,
local_var_prefix
);
fprintf
(
file
,
";
\n\n
"
);
}
...
...
@@ -2777,7 +2777,7 @@ static void write_parameter_conf_or_var_exprs(FILE *file, int indent, const char
{
if
(
is_conformance_needed_for_phase
(
phase
))
{
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
unsigned long
)"
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
ULONG_PTR
)"
);
write_expr
(
file
,
get_attrp
(
var
->
attrs
,
ATTR_SWITCHIS
),
1
,
1
,
NULL
,
NULL
,
local_var_prefix
);
fprintf
(
file
,
";
\n\n
"
);
}
...
...
@@ -2789,7 +2789,7 @@ static void write_parameter_conf_or_var_exprs(FILE *file, int indent, const char
if
(
is_conformance_needed_for_phase
(
phase
)
&&
(
iid
=
get_attrp
(
var
->
attrs
,
ATTR_IIDIS
)))
{
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
unsigned long
) "
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.MaxCount = (
ULONG_PTR
) "
);
write_expr
(
file
,
iid
,
1
,
1
,
NULL
,
NULL
,
local_var_prefix
);
fprintf
(
file
,
";
\n\n
"
);
}
...
...
@@ -3215,7 +3215,7 @@ int write_expr_eval_routines(FILE *file, const char *iface)
print_file
(
file
,
1
,
"%s *%s = (%s *)(pStubMsg->StackTop - %u);
\n
"
,
name
,
var_name
,
name
,
eval
->
baseoff
);
print_file
(
file
,
1
,
"pStubMsg->Offset = 0;
\n
"
);
/* FIXME */
print_file
(
file
,
1
,
"pStubMsg->MaxCount = (
unsigned long
)"
);
print_file
(
file
,
1
,
"pStubMsg->MaxCount = (
ULONG_PTR
)"
);
write_expr
(
file
,
eval
->
expr
,
1
,
1
,
var_name_expr
,
eval
->
structure
,
""
);
fprintf
(
file
,
";
\n
"
);
print_file
(
file
,
0
,
"}
\n\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