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
2ec33961
Commit
2ec33961
authored
Apr 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid using wctype functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e71ffcde
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
editline.c
dlls/kernel32/editline.c
+4
-1
format_msg.c
dlls/kernel32/format_msg.c
+2
-2
profile.c
dlls/kernel32/profile.c
+2
-2
No files found.
dlls/kernel32/editline.c
View file @
2ec33961
...
@@ -362,7 +362,10 @@ static void WCEL_SaveYank(WCEL_Context* ctx, int beg, int end)
...
@@ -362,7 +362,10 @@ static void WCEL_SaveYank(WCEL_Context* ctx, int beg, int end)
*/
*/
static
inline
BOOL
WCEL_iswalnum
(
WCHAR
wc
)
static
inline
BOOL
WCEL_iswalnum
(
WCHAR
wc
)
{
{
return
get_char_typeW
(
wc
)
&
(
C1_ALPHA
|
C1_DIGIT
|
C1_LOWER
|
C1_UPPER
);
WORD
type
;
GetStringTypeW
(
CT_CTYPE1
,
&
wc
,
1
,
&
type
);
return
type
&
(
C1_ALPHA
|
C1_DIGIT
|
C1_LOWER
|
C1_UPPER
);
}
}
static
int
WCEL_GetLeftWordTransition
(
WCEL_Context
*
ctx
,
int
ofs
)
static
int
WCEL_GetLeftWordTransition
(
WCEL_Context
*
ctx
,
int
ofs
)
...
...
dlls/kernel32/format_msg.c
View file @
2ec33961
...
@@ -184,7 +184,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
...
@@ -184,7 +184,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
}
}
else
*
p
++
=
*
format
++
;
else
*
p
++
=
*
format
++
;
}
}
while
(
isdigitW
(
*
format
)
)
*
p
++
=
*
format
++
;
while
(
*
format
>=
'0'
&&
*
format
<=
'9'
)
*
p
++
=
*
format
++
;
if
(
*
format
==
'.'
)
if
(
*
format
==
'.'
)
{
{
...
@@ -196,7 +196,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
...
@@ -196,7 +196,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
format
++
;
format
++
;
}
}
else
else
while
(
isdigitW
(
*
format
)
)
*
p
++
=
*
format
++
;
while
(
*
format
>=
'0'
&&
*
format
<=
'9'
)
*
p
++
=
*
format
++
;
}
}
/* replicate MS bug: drop an argument when using va_list with width/precision */
/* replicate MS bug: drop an argument when using va_list with width/precision */
...
...
dlls/kernel32/profile.c
View file @
2ec33961
...
@@ -270,8 +270,8 @@ static void PROFILE_Free( PROFILESECTION *section )
...
@@ -270,8 +270,8 @@ static void PROFILE_Free( PROFILESECTION *section )
/* returns TRUE if a whitespace character, else FALSE */
/* returns TRUE if a whitespace character, else FALSE */
static
inline
BOOL
PROFILE_isspaceW
(
WCHAR
c
)
static
inline
BOOL
PROFILE_isspaceW
(
WCHAR
c
)
{
{
/* ^Z (DOS EOF) is a space too (found on CD-ROMs) */
/* ^Z (DOS EOF) is a space too (found on CD-ROMs) */
return
isspaceW
(
c
)
||
c
==
0x1a
;
return
(
c
>=
0x09
&&
c
<=
0x0d
)
||
c
==
0x1a
||
c
==
0x20
;
}
}
static
inline
ENCODING
PROFILE_DetectTextEncoding
(
const
void
*
buffer
,
int
*
len
)
static
inline
ENCODING
PROFILE_DetectTextEncoding
(
const
void
*
buffer
,
int
*
len
)
...
...
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