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
ec4936a6
Commit
ec4936a6
authored
Jun 22, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Do not use wide character constants.
parent
399a297b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
file.c
dlls/msvcrt/file.c
+1
-1
scanf.c
dlls/msvcrt/scanf.c
+3
-3
No files found.
dlls/msvcrt/file.c
View file @
ec4936a6
...
@@ -2764,7 +2764,7 @@ int CDECL MSVCRT_fputws(const MSVCRT_wchar_t *s, MSVCRT_FILE* file)
...
@@ -2764,7 +2764,7 @@ int CDECL MSVCRT_fputws(const MSVCRT_wchar_t *s, MSVCRT_FILE* file)
return
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
return
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
for
(
i
=
0
;
i
<
len
;
i
++
)
for
(
i
=
0
;
i
<
len
;
i
++
)
{
{
if
((
s
[
i
]
==
L
'\n'
)
&&
(
MSVCRT_fputc
(
'\r'
,
file
)
==
MSVCRT_EOF
))
if
((
s
[
i
]
==
'\n'
)
&&
(
MSVCRT_fputc
(
'\r'
,
file
)
==
MSVCRT_EOF
))
return
MSVCRT_WEOF
;
return
MSVCRT_WEOF
;
if
(
MSVCRT_fputwc
(
s
[
i
],
file
)
==
MSVCRT_WEOF
)
if
(
MSVCRT_fputwc
(
s
[
i
],
file
)
==
MSVCRT_WEOF
)
return
MSVCRT_WEOF
;
return
MSVCRT_WEOF
;
...
...
dlls/msvcrt/scanf.c
View file @
ec4936a6
...
@@ -50,10 +50,10 @@ static int char2digit(char c, int base) {
...
@@ -50,10 +50,10 @@ static int char2digit(char c, int base) {
* given base, or -1 if the given character is not a digit of the base.
* given base, or -1 if the given character is not a digit of the base.
*/
*/
static
int
wchar2digit
(
MSVCRT_wchar_t
c
,
int
base
)
{
static
int
wchar2digit
(
MSVCRT_wchar_t
c
,
int
base
)
{
if
((
c
>=
L'0'
)
&&
(
c
<=
L'9'
)
&&
(
c
<=
L'0'
+
base
-
1
))
return
(
c
-
L
'0'
);
if
((
c
>=
'0'
)
&&
(
c
<=
'9'
)
&&
(
c
<=
'0'
+
base
-
1
))
return
(
c
-
'0'
);
if
(
base
<=
10
)
return
-
1
;
if
(
base
<=
10
)
return
-
1
;
if
((
c
>=
L'A'
)
&&
(
c
<=
L'Z'
)
&&
(
c
<=
L'A'
+
base
-
11
))
return
(
c
-
L
'A'
+
10
);
if
((
c
>=
'A'
)
&&
(
c
<=
'Z'
)
&&
(
c
<=
'A'
+
base
-
11
))
return
(
c
-
'A'
+
10
);
if
((
c
>=
L'a'
)
&&
(
c
<=
L'z'
)
&&
(
c
<=
L'a'
+
base
-
11
))
return
(
c
-
L
'a'
+
10
);
if
((
c
>=
'a'
)
&&
(
c
<=
'z'
)
&&
(
c
<=
'a'
+
base
-
11
))
return
(
c
-
'a'
+
10
);
return
-
1
;
return
-
1
;
}
}
...
...
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