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
5f0fb835
Commit
5f0fb835
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: Replace size_t with MSVCRT_size_t.
parent
37a62a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
file.c
dlls/msvcrt/file.c
+4
-4
mbcs.c
dlls/msvcrt/mbcs.c
+6
-6
No files found.
dlls/msvcrt/file.c
View file @
5f0fb835
...
...
@@ -2925,7 +2925,7 @@ int CDECL MSVCRT_fgetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos)
*/
int
CDECL
MSVCRT_fputs
(
const
char
*
s
,
MSVCRT_FILE
*
file
)
{
size_t
i
,
len
=
strlen
(
s
);
MSVCRT_
size_t
i
,
len
=
strlen
(
s
);
if
(
!
(
MSVCRT_fdesc
[
file
->
_file
].
wxflag
&
WX_TEXT
))
return
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
for
(
i
=
0
;
i
<
len
;
i
++
)
...
...
@@ -2939,7 +2939,7 @@ int CDECL MSVCRT_fputs(const char *s, MSVCRT_FILE* file)
*/
int
CDECL
MSVCRT_fputws
(
const
MSVCRT_wchar_t
*
s
,
MSVCRT_FILE
*
file
)
{
size_t
i
,
len
=
strlenW
(
s
);
MSVCRT_
size_t
i
,
len
=
strlenW
(
s
);
if
(
!
(
MSVCRT_fdesc
[
file
->
_file
].
wxflag
&
WX_TEXT
))
return
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
for
(
i
=
0
;
i
<
len
;
i
++
)
...
...
@@ -3027,7 +3027,7 @@ int CDECL MSVCRT_putchar(int c)
*/
int
CDECL
MSVCRT_puts
(
const
char
*
s
)
{
size_t
len
=
strlen
(
s
);
MSVCRT_
size_t
len
=
strlen
(
s
);
if
(
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
MSVCRT_stdout
)
!=
len
)
return
MSVCRT_EOF
;
return
MSVCRT_fwrite
(
"
\n
"
,
1
,
1
,
MSVCRT_stdout
)
==
1
?
0
:
MSVCRT_EOF
;
}
...
...
@@ -3038,7 +3038,7 @@ int CDECL MSVCRT_puts(const char *s)
int
CDECL
_putws
(
const
MSVCRT_wchar_t
*
s
)
{
static
const
MSVCRT_wchar_t
nl
=
'\n'
;
size_t
len
=
strlenW
(
s
);
MSVCRT_
size_t
len
=
strlenW
(
s
);
if
(
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
MSVCRT_stdout
)
!=
len
)
return
MSVCRT_EOF
;
return
MSVCRT_fwrite
(
&
nl
,
sizeof
(
nl
),
1
,
MSVCRT_stdout
)
==
1
?
0
:
MSVCRT_EOF
;
}
...
...
dlls/msvcrt/mbcs.c
View file @
5f0fb835
...
...
@@ -74,12 +74,12 @@ static MSVCRT_wchar_t msvcrt_mbc_to_wc(unsigned int ch)
return
chW
;
}
static
inline
size_t
u_strlen
(
const
unsigned
char
*
str
)
static
inline
MSVCRT_
size_t
u_strlen
(
const
unsigned
char
*
str
)
{
return
strlen
(
(
const
char
*
)
str
);
}
static
inline
unsigned
char
*
u_strncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
static
inline
unsigned
char
*
u_strncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
MSVCRT_
size_t
len
)
{
return
(
unsigned
char
*
)
strncat
(
(
char
*
)
dst
,
(
const
char
*
)
src
,
len
);
}
...
...
@@ -94,12 +94,12 @@ static inline int u_strcasecmp( const unsigned char *s1, const unsigned char *s2
return
strcasecmp
(
(
const
char
*
)
s1
,
(
const
char
*
)
s2
);
}
static
inline
int
u_strncmp
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
,
size_t
len
)
static
inline
int
u_strncmp
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
,
MSVCRT_
size_t
len
)
{
return
strncmp
(
(
const
char
*
)
s1
,
(
const
char
*
)
s2
,
len
);
}
static
inline
int
u_strncasecmp
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
,
size_t
len
)
static
inline
int
u_strncasecmp
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
,
MSVCRT_
size_t
len
)
{
return
strncasecmp
(
(
const
char
*
)
s1
,
(
const
char
*
)
s2
,
len
);
}
...
...
@@ -124,12 +124,12 @@ static inline unsigned char *u__strset( unsigned char *s, unsigned char c )
return
(
unsigned
char
*
)
_strset
(
(
char
*
)
s
,
c
);
}
static
inline
unsigned
char
*
u__strnset
(
unsigned
char
*
s
,
unsigned
char
c
,
size_t
len
)
static
inline
unsigned
char
*
u__strnset
(
unsigned
char
*
s
,
unsigned
char
c
,
MSVCRT_
size_t
len
)
{
return
(
unsigned
char
*
)
_strnset
(
(
char
*
)
s
,
c
,
len
);
}
static
inline
size_t
u_strcspn
(
const
unsigned
char
*
s
,
const
unsigned
char
*
rej
)
static
inline
MSVCRT_
size_t
u_strcspn
(
const
unsigned
char
*
s
,
const
unsigned
char
*
rej
)
{
return
strcspn
(
(
const
char
*
)
s
,
(
const
char
*
)
rej
);
}
...
...
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