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
e2423823
Commit
e2423823
authored
Nov 22, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use isspace_l in string to number conversion functions.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4357043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
string.c
dlls/msvcrt/string.c
+4
-5
No files found.
dlls/msvcrt/msvcrt.h
View file @
e2423823
...
...
@@ -1066,6 +1066,7 @@ int __cdecl MSVCRT_iswspace(MSVCRT_wint_t);
int
__cdecl
MSVCRT_iswdigit
(
MSVCRT_wint_t
);
int
__cdecl
MSVCRT_isleadbyte
(
int
);
int
__cdecl
MSVCRT__isleadbyte_l
(
int
,
MSVCRT__locale_t
);
int
__cdecl
MSVCRT__isspace_l
(
int
,
MSVCRT__locale_t
);
void
__cdecl
MSVCRT__lock_file
(
MSVCRT_FILE
*
);
void
__cdecl
MSVCRT__unlock_file
(
MSVCRT_FILE
*
);
...
...
dlls/msvcrt/string.c
View file @
e2423823
...
...
@@ -350,9 +350,8 @@ static double strtod_helper(const char *str, char **end, MSVCRT__locale_t locale
else
locinfo
=
locale
->
locinfo
;
/* FIXME: use *_l functions */
p
=
str
;
while
(
isspace
(
*
p
))
while
(
MSVCRT__isspace_l
((
unsigned
char
)
*
p
,
locale
))
p
++
;
if
(
*
p
==
'-'
)
{
...
...
@@ -957,7 +956,7 @@ __int64 CDECL MSVCRT_strtoi64_l(const char *nptr, char **endptr, int base, MSVCR
if
(
!
MSVCRT_CHECK_PMT
(
base
==
0
||
base
>=
2
))
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
base
<=
36
))
return
0
;
while
(
isspace
(
*
nptr
))
nptr
++
;
while
(
MSVCRT__isspace_l
((
unsigned
char
)
*
nptr
,
locale
))
nptr
++
;
if
(
*
nptr
==
'-'
)
{
negative
=
TRUE
;
...
...
@@ -1050,7 +1049,7 @@ int __cdecl MSVCRT_atoi(const char *str)
if
(
!
str
)
return
0
;
while
(
isspace
(
*
str
))
str
++
;
while
(
MSVCRT__isspace_l
((
unsigned
char
)
*
str
,
NULL
))
str
++
;
if
(
*
str
==
'+'
)
{
str
++
;
...
...
@@ -1209,7 +1208,7 @@ unsigned __int64 CDECL MSVCRT_strtoui64_l(const char *nptr, char **endptr, int b
if
(
!
MSVCRT_CHECK_PMT
(
base
==
0
||
base
>=
2
))
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
base
<=
36
))
return
0
;
while
(
isspace
(
*
nptr
))
nptr
++
;
while
(
MSVCRT__isspace_l
((
unsigned
char
)
*
nptr
,
locale
))
nptr
++
;
if
(
*
nptr
==
'-'
)
{
negative
=
TRUE
;
...
...
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