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
80c97dc3
Commit
80c97dc3
authored
Oct 20, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _ismbslead_l implementation.
parent
927a9a5a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
13 deletions
+30
-13
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+2
-2
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+21
-4
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
80c97dc3
...
...
@@ -1007,9 +1007,9 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ stub _ismbstrail_l
(ptr ptr ptr)
@ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr)
...
...
dlls/msvcr110/msvcr110.spec
View file @
80c97dc3
...
...
@@ -1353,7 +1353,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ cdecl _isnan(double)
...
...
dlls/msvcr120/msvcr120.spec
View file @
80c97dc3
...
...
@@ -1359,7 +1359,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ cdecl _isnan(double)
...
...
dlls/msvcr80/msvcr80.spec
View file @
80c97dc3
...
...
@@ -679,7 +679,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ cdecl _isnan(double)
...
...
dlls/msvcr90/msvcr90.spec
View file @
80c97dc3
...
...
@@ -657,7 +657,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ cdecl _isnan(double)
...
...
dlls/msvcrt/mbcs.c
View file @
80c97dc3
...
...
@@ -1808,13 +1808,22 @@ int CDECL _ismbclegal(unsigned int c)
}
/*********************************************************************
* _ismbslead(MSVCRT.@)
* _ismbslead
_l
(MSVCRT.@)
*/
int
CDECL
_ismbslead
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
)
int
CDECL
_ismbslead
_l
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
,
_locale_t
locale
)
{
pthreadmbcinfo
mbcinfo
;
int
lead
=
0
;
if
(
!
get_mbcinfo
()
->
ismbcodepage
)
if
(
!
MSVCRT_CHECK_PMT
(
start
&&
str
))
return
0
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
!
mbcinfo
->
ismbcodepage
)
return
0
;
/* Lead bytes can also be trail bytes so we need to analyse the string
...
...
@@ -1823,7 +1832,7 @@ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str)
{
if
(
!*
start
)
return
0
;
lead
=
!
lead
&&
_ismbblead
(
*
start
);
lead
=
!
lead
&&
_ismbblead
_l
(
*
start
,
locale
);
start
++
;
}
...
...
@@ -1831,6 +1840,14 @@ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str)
}
/*********************************************************************
* _ismbslead(MSVCRT.@)
*/
int
CDECL
_ismbslead
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
)
{
return
_ismbslead_l
(
start
,
str
,
NULL
);
}
/*********************************************************************
* _ismbstrail(MSVCRT.@)
*/
int
CDECL
_ismbstrail
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
80c97dc3
...
...
@@ -628,7 +628,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
# stub _ismbslead_l(long
ptr)
@ cdecl _ismbslead_l(ptr ptr
ptr)
@ cdecl _ismbstrail(ptr ptr)
# stub _ismbstrail_l(long ptr)
@ cdecl _isnan(double)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
80c97dc3
...
...
@@ -499,7 +499,7 @@
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@
stub _ismbslead_l
@
cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l
@ cdecl _isnan(double)
...
...
@@ -1098,7 +1098,7 @@
@ cdecl _o__ismbcupper(long) _ismbcupper
@ cdecl _o__ismbcupper_l(long ptr) _ismbcupper_l
@ cdecl _o__ismbslead(ptr ptr) _ismbslead
@
stub _o_
_ismbslead_l
@
cdecl _o__ismbslead_l(ptr ptr ptr)
_ismbslead_l
@ cdecl _o__ismbstrail(ptr ptr) _ismbstrail
@ stub _o__ismbstrail_l
@ cdecl _o__iswctype_l(long long ptr) _iswctype_l
...
...
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