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
2fb08bed
Commit
2fb08bed
authored
Nov 18, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the msvcrt string functions internally.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f48648ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
math.c
dlls/msvcrt/math.c
+2
-2
mbcs.c
dlls/msvcrt/mbcs.c
+2
-2
msvcrt.h
dlls/msvcrt/msvcrt.h
+4
-0
time.c
dlls/msvcrt/time.c
+3
-3
No files found.
dlls/msvcrt/math.c
View file @
2fb08bed
...
...
@@ -2455,7 +2455,7 @@ char * CDECL MSVCRT__ecvt( double number, int ndigits, int *decpt, int *sign )
/* take the exponential "e" out */
data
->
efcvt_buffer
[
prec
]
=
'\0'
;
/* read the exponent */
sscanf
(
data
->
efcvt_buffer
+
prec
+
1
,
"%d"
,
decpt
);
MSVCRT_
sscanf
(
data
->
efcvt_buffer
+
prec
+
1
,
"%d"
,
decpt
);
(
*
decpt
)
++
;
/* adjust for some border cases */
if
(
data
->
efcvt_buffer
[
0
]
==
'0'
)
/* value is zero */
...
...
@@ -2515,7 +2515,7 @@ int CDECL MSVCRT__ecvt_s( char *buffer, MSVCRT_size_t length, double number, int
/* take the exponential "e" out */
result
[
prec
]
=
'\0'
;
/* read the exponent */
sscanf
(
result
+
prec
+
1
,
"%d"
,
decpt
);
MSVCRT_
sscanf
(
result
+
prec
+
1
,
"%d"
,
decpt
);
(
*
decpt
)
++
;
/* adjust for some border cases */
if
(
result
[
0
]
==
'0'
)
/* value is zero */
...
...
dlls/msvcrt/mbcs.c
View file @
2fb08bed
...
...
@@ -124,7 +124,7 @@ static inline MSVCRT_size_t u_strlen( const unsigned char *str )
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
);
return
(
unsigned
char
*
)
MSVCRT_
strncat
(
(
char
*
)
dst
,
(
const
char
*
)
src
,
len
);
}
static
inline
int
u_strcmp
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
)
...
...
@@ -154,7 +154,7 @@ static inline unsigned char *u_strchr( const unsigned char *s, unsigned char x )
static
inline
unsigned
char
*
u_strrchr
(
const
unsigned
char
*
s
,
unsigned
char
x
)
{
return
(
unsigned
char
*
)
strrchr
(
(
const
char
*
)
s
,
x
);
return
(
unsigned
char
*
)
MSVCRT_
strrchr
(
(
const
char
*
)
s
,
x
);
}
static
inline
unsigned
char
*
u__strset
(
unsigned
char
*
s
,
unsigned
char
c
)
...
...
dlls/msvcrt/msvcrt.h
View file @
2fb08bed
...
...
@@ -1170,6 +1170,7 @@ int __cdecl _ungetch(int);
int
__cdecl
_cputs
(
const
char
*
);
int
WINAPIV
_cprintf
(
const
char
*
,...);
int
WINAPIV
_cwprintf
(
const
MSVCRT_wchar_t
*
,...);
int
WINAPIV
MSVCRT_sscanf
(
const
char
*
,
const
char
*
,
...);
char
***
__cdecl
MSVCRT___p__environ
(
void
);
int
*
__cdecl
__p___mb_cur_max
(
void
);
int
*
__cdecl
MSVCRT___p__fmode
(
void
);
...
...
@@ -1200,9 +1201,12 @@ int __cdecl MSVCRT__stricmp(const char*, const char*);
int
__cdecl
MSVCRT__strnicmp
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT__strnicoll_l
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
,
MSVCRT__locale_t
);
int
__cdecl
MSVCRT__strncoll_l
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
,
MSVCRT__locale_t
);
char
*
__cdecl
MSVCRT_strncat
(
char
*
,
const
char
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT_strncmp
(
const
char
*
,
const
char
*
,
MSVCRT_size_t
);
int
__cdecl
MSVCRT_strcmp
(
const
char
*
,
const
char
*
);
char
*
__cdecl
MSVCRT_strrchr
(
const
char
*
,
int
);
char
*
__cdecl
MSVCRT_strstr
(
const
char
*
,
const
char
*
);
MSVCRT_long
__cdecl
MSVCRT_strtol
(
const
char
*
,
char
**
,
int
);
unsigned
int
__cdecl
MSVCRT__get_output_format
(
void
);
char
*
__cdecl
MSVCRT_strtok_s
(
char
*
,
const
char
*
,
char
**
);
char
*
__cdecl
MSVCRT__itoa
(
int
,
char
*
,
int
);
...
...
dlls/msvcrt/time.c
View file @
2fb08bed
...
...
@@ -127,11 +127,11 @@ void CDECL MSVCRT__tzset(void)
}
else
if
(
*
tz
==
'+'
)
{
tz
++
;
}
MSVCRT___timezone
=
strtol
(
tz
,
&
tz
,
10
)
*
3600
;
MSVCRT___timezone
=
MSVCRT_
strtol
(
tz
,
&
tz
,
10
)
*
3600
;
if
(
*
tz
==
':'
)
{
MSVCRT___timezone
+=
strtol
(
tz
+
1
,
&
tz
,
10
)
*
60
;
MSVCRT___timezone
+=
MSVCRT_
strtol
(
tz
+
1
,
&
tz
,
10
)
*
60
;
if
(
*
tz
==
':'
)
MSVCRT___timezone
+=
strtol
(
tz
+
1
,
&
tz
,
10
);
MSVCRT___timezone
+=
MSVCRT_
strtol
(
tz
+
1
,
&
tz
,
10
);
}
if
(
neg_zone
)
MSVCRT___timezone
=
-
MSVCRT___timezone
;
...
...
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