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
043fd669
Commit
043fd669
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use unsigned int instead of size_t to avoid printf format warnings.
parent
c425045a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
server.c
tools/widl/server.c
+3
-1
typegen.c
tools/widl/typegen.c
+10
-10
No files found.
tools/widl/server.c
View file @
043fd669
...
...
@@ -154,13 +154,15 @@ static void assign_out_args(const func_t *func)
if
(
has_size
)
{
unsigned
int
size
;
type_t
*
type
=
var
->
type
;
while
(
type
->
type
==
0
&&
type
->
ref
)
type
=
type
->
ref
;
fprintf
(
server
,
" = NdrAllocate(&_StubMsg, "
);
write_expr
(
server
,
size_is
,
1
);
fprintf
(
server
,
" * %u);
\n
"
,
get_type_memsize
(
type
));
size
=
get_type_memsize
(
type
);
fprintf
(
server
,
" * %u);
\n
"
,
size
);
}
else
if
(
!
is_string
)
{
...
...
tools/widl/typegen.c
View file @
043fd669
...
...
@@ -596,7 +596,7 @@ size_t get_type_memsize(const type_t *type)
static
int
write_pointers
(
FILE
*
file
,
const
attr_t
*
attrs
,
const
type_t
*
type
,
int
ptr_level
,
const
expr_t
*
array
,
int
level
,
size_
t
*
typestring_offset
)
unsigned
in
t
*
typestring_offset
)
{
int
pointers_written
=
0
;
const
var_t
*
v
;
...
...
@@ -702,7 +702,7 @@ static size_t write_pointer_description(FILE *file, const attr_t *attrs,
static
size_t
write_string_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
const
type_t
*
type
,
const
expr_t
*
array
,
const
char
*
name
,
size_
t
*
typestring_offset
)
const
char
*
name
,
unsigned
in
t
*
typestring_offset
)
{
const
expr_t
*
size_is
=
get_attrp
(
attrs
,
ATTR_SIZEIS
);
int
has_size
=
size_is
&&
(
size_is
->
type
!=
EXPR_VOID
);
...
...
@@ -782,7 +782,7 @@ static size_t write_string_tfs(FILE *file, const attr_t *attrs,
static
size_t
write_array_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
const
type_t
*
type
,
const
expr_t
*
array
,
const
char
*
name
,
size_
t
*
typestring_offset
)
const
char
*
name
,
unsigned
in
t
*
typestring_offset
)
{
const
expr_t
*
length_is
=
get_attrp
(
attrs
,
ATTR_LENGTHIS
);
const
expr_t
*
size_is
=
get_attrp
(
attrs
,
ATTR_SIZEIS
);
...
...
@@ -1050,9 +1050,9 @@ static size_t write_struct_members(FILE *file, const type_t *type)
}
static
size_t
write_struct_tfs
(
FILE
*
file
,
const
type_t
*
type
,
const
char
*
name
,
size_
t
*
typestring_offset
)
const
char
*
name
,
unsigned
in
t
*
typestring_offset
)
{
size_
t
total_size
;
unsigned
in
t
total_size
;
const
var_t
*
array
;
size_t
start_offset
;
size_t
array_offset
;
...
...
@@ -1210,7 +1210,7 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
}
}
static
void
write_pointer_only_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
size_t
offset
,
size_
t
*
typeformat_offset
)
static
void
write_pointer_only_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
size_t
offset
,
unsigned
in
t
*
typeformat_offset
)
{
int
in_attr
,
out_attr
;
unsigned
char
flags
=
0
;
...
...
@@ -1234,14 +1234,14 @@ static void write_pointer_only_tfs(FILE *file, const attr_t *attrs, size_t offse
static
size_t
write_union_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
const
type_t
*
type
,
const
char
*
name
,
size_
t
*
typeformat_offset
)
unsigned
in
t
*
typeformat_offset
)
{
error
(
"write_union_tfs: Unimplemented
\n
"
);
return
*
typeformat_offset
;
}
static
size_t
write_typeformatstring_var
(
FILE
*
file
,
int
indent
,
const
var_t
*
var
,
size_
t
*
typeformat_offset
)
const
var_t
*
var
,
unsigned
in
t
*
typeformat_offset
)
{
const
type_t
*
type
=
var
->
type
;
int
ptr_level
=
var
->
ptr_level
;
...
...
@@ -1350,7 +1350,7 @@ void write_typeformatstring(FILE *file, const ifref_t *ifaces)
{
int
indent
=
0
;
var_t
*
var
;
size_
t
typeformat_offset
;
unsigned
in
t
typeformat_offset
;
const
ifref_t
*
iface
=
ifaces
;
print_file
(
file
,
indent
,
"static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
\n
"
);
...
...
@@ -1855,7 +1855,7 @@ size_t get_size_procformatstring_var(const var_t *var)
size_t
get_size_typeformatstring_var
(
const
var_t
*
var
)
{
size_
t
type_offset
=
0
;
unsigned
in
t
type_offset
=
0
;
write_typeformatstring_var
(
NULL
,
0
,
var
,
&
type_offset
);
return
type_offset
;
}
...
...
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