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
109f8361
Commit
109f8361
authored
May 27, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Avoid using size_t when not neededed.
parent
5f0fb835
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
cpp.c
dlls/msvcrt/cpp.c
+1
-1
data.c
dlls/msvcrt/data.c
+1
-1
locale.c
dlls/msvcrt/locale.c
+1
-1
undname.c
dlls/msvcrt/undname.c
+9
-9
No files found.
dlls/msvcrt/cpp.c
View file @
109f8361
...
...
@@ -136,7 +136,7 @@ static void EXCEPTION_ctor(exception *_this, const char** name)
_this
->
vtable
=
&
MSVCRT_exception_vtable
;
if
(
*
name
)
{
size_
t
name_len
=
strlen
(
*
name
)
+
1
;
unsigned
in
t
name_len
=
strlen
(
*
name
)
+
1
;
_this
->
name
=
MSVCRT_malloc
(
name_len
);
memcpy
(
_this
->
name
,
*
name
,
name_len
);
_this
->
do_free
=
TRUE
;
...
...
dlls/msvcrt/data.c
View file @
109f8361
...
...
@@ -231,7 +231,7 @@ MSVCRT_wchar_t*** CDECL __p___winitenv(void) { return &MSVCRT___winitenv; }
/* INTERNAL: Create a wide string from an ascii string */
MSVCRT_wchar_t
*
msvcrt_wstrdupa
(
const
char
*
str
)
{
const
size_
t
len
=
strlen
(
str
)
+
1
;
const
unsigned
in
t
len
=
strlen
(
str
)
+
1
;
MSVCRT_wchar_t
*
wstr
=
MSVCRT_malloc
(
len
*
sizeof
(
MSVCRT_wchar_t
));
if
(
!
wstr
)
return
NULL
;
...
...
dlls/msvcrt/locale.c
View file @
109f8361
...
...
@@ -78,7 +78,7 @@ static const char * const _country_synonyms[] =
/* INTERNAL: Map a synonym to an ISO code */
static
void
remap_synonym
(
char
*
name
)
{
size_
t
i
;
unsigned
in
t
i
;
for
(
i
=
0
;
i
<
sizeof
(
_country_synonyms
)
/
sizeof
(
char
*
);
i
+=
2
)
{
if
(
!
strcasecmp
(
_country_synonyms
[
i
],
name
))
...
...
dlls/msvcrt/undname.c
View file @
109f8361
...
...
@@ -113,7 +113,7 @@ struct datatype_t
* where we use a poor-man allocator. It's fast, and since all
* allocation is pool, memory management is easy (esp. freeing).
*/
static
void
*
und_alloc
(
struct
parsed_symbol
*
sym
,
size_
t
len
)
static
void
*
und_alloc
(
struct
parsed_symbol
*
sym
,
unsigned
in
t
len
)
{
void
*
ptr
;
...
...
@@ -233,11 +233,11 @@ static char* str_array_get_ref(struct array* cref, unsigned idx)
*/
static
char
*
str_printf
(
struct
parsed_symbol
*
sym
,
const
char
*
format
,
...)
{
va_list
args
;
size_t
len
=
1
,
i
,
sz
;
char
*
tmp
;
char
*
p
;
char
*
t
;
va_list
args
;
unsigned
int
len
=
1
,
i
,
sz
;
char
*
tmp
;
char
*
p
;
char
*
t
;
va_start
(
args
,
format
);
for
(
i
=
0
;
format
[
i
];
i
++
)
...
...
@@ -587,9 +587,9 @@ static BOOL get_class(struct parsed_symbol* sym)
*/
static
char
*
get_class_string
(
struct
parsed_symbol
*
sym
,
int
start
)
{
int
i
;
size_t
len
,
sz
;
char
*
ret
;
int
i
;
unsigned
int
len
,
sz
;
char
*
ret
;
struct
array
*
a
=
&
sym
->
stack
;
for
(
len
=
0
,
i
=
start
;
i
<
a
->
num
;
i
++
)
...
...
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