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
eaa1b706
Commit
eaa1b706
authored
Dec 26, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _strnicmp_l implementation.
parent
04f40b70
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
12 deletions
+30
-12
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
string.c
dlls/msvcrt/string.c
+25
-7
No files found.
dlls/msvcr100/msvcr100.spec
View file @
eaa1b706
...
...
@@ -1341,7 +1341,7 @@
@ cdecl _strncoll(str str long) msvcrt._strncoll
@ cdecl _strncoll_l(str str long ptr) msvcrt._strncoll_l
@ cdecl _strnicmp(str str long) msvcrt._strnicmp
@
stub
_strnicmp_l
@
cdecl _strnicmp_l(str str long ptr) msvcrt.
_strnicmp_l
@ cdecl _strnicoll(str str long) msvcrt._strnicoll
@ cdecl _strnicoll_l(str str long ptr) msvcrt._strnicoll_l
@ cdecl _strnset(str long long) msvcrt._strnset
...
...
dlls/msvcr80/msvcr80.spec
View file @
eaa1b706
...
...
@@ -1003,7 +1003,7 @@
@ cdecl _strncoll(str str long) msvcrt._strncoll
@ cdecl _strncoll_l(str str long ptr) msvcrt._strncoll_l
@ cdecl _strnicmp(str str long) msvcrt._strnicmp
@
stub
_strnicmp_l
@
cdecl _strnicmp_l(str str long ptr) msvcrt.
_strnicmp_l
@ cdecl _strnicoll(str str long) msvcrt._strnicoll
@ cdecl _strnicoll_l(str str long ptr) msvcrt._strnicoll_l
@ cdecl _strnset(str long long) msvcrt._strnset
...
...
dlls/msvcr90/msvcr90.spec
View file @
eaa1b706
...
...
@@ -996,7 +996,7 @@
@ cdecl _strncoll(str str long) msvcrt._strncoll
@ cdecl _strncoll_l(str str long ptr) msvcrt._strncoll_l
@ cdecl _strnicmp(str str long) msvcrt._strnicmp
@
stub
_strnicmp_l
@
cdecl _strnicmp_l(str str long ptr) msvcrt.
_strnicmp_l
@ cdecl _strnicoll(str str long) msvcrt._strnicoll
@ cdecl _strnicoll_l(str str long ptr) msvcrt._strnicoll_l
@ cdecl _strnset(str long long) msvcrt._strnset
...
...
dlls/msvcrt/msvcrt.spec
View file @
eaa1b706
...
...
@@ -936,8 +936,8 @@
@ cdecl _strlwr_s_l(ptr long ptr)
@ cdecl _strncoll(str str long) MSVCRT_strncoll_l
@ cdecl _strncoll_l(str str long ptr) MSVCRT_strncoll
@ cdecl _strnicmp(str str long)
ntdll.
_strnicmp
# stub _strnicmp_l(str str long ptr)
@ cdecl _strnicmp(str str long)
MSVCRT_
_strnicmp
@ cdecl _strnicmp_l(str str long ptr) MSVCRT__strnicmp_l
@ cdecl _strnicoll(str str long) MSVCRT__strnicoll
@ cdecl _strnicoll_l(str str long ptr) MSVCRT__strnicoll_l
@ cdecl _strnset(str long long) MSVCRT__strnset
...
...
dlls/msvcrt/string.c
View file @
eaa1b706
...
...
@@ -1559,9 +1559,10 @@ void * __cdecl MSVCRT_memcpy( void *dst, const void *src, size_t n )
}
/*********************************************************************
* _stricmp_l (MSVCRT.@)
* _str
n
icmp_l (MSVCRT.@)
*/
int
__cdecl
MSVCRT__stricmp_l
(
const
char
*
s1
,
const
char
*
s2
,
MSVCRT__locale_t
locale
)
int
__cdecl
MSVCRT__strnicmp_l
(
const
char
*
s1
,
const
char
*
s2
,
MSVCRT_size_t
count
,
MSVCRT__locale_t
locale
)
{
MSVCRT_pthreadlocinfo
locinfo
;
char
c1
,
c2
;
...
...
@@ -1569,28 +1570,45 @@ int __cdecl MSVCRT__stricmp_l(const char *s1, const char *s2, MSVCRT__locale_t l
if
(
!
MSVCRT_CHECK_PMT
(
s1
!=
NULL
&&
s2
!=
NULL
))
return
MSVCRT__NLSCMPERROR
;
if
(
!
count
)
return
0
;
if
(
!
locale
)
locinfo
=
get_locinfo
();
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_handle
[
MSVCRT_LC_CTYPE
])
return
str
casecmp
(
s1
,
s2
);
return
str
ncasecmp
(
s1
,
s2
,
count
);
do
{
c1
=
MSVCRT__tolower_l
(
*
s1
++
,
locale
);
c2
=
MSVCRT__tolower_l
(
*
s2
++
,
locale
);
if
(
c1
!=
c2
)
break
;
}
while
(
c1
&&
c1
==
c2
);
}
while
(
--
count
&&
c1
&&
c1
==
c2
);
return
c1
-
c2
;
}
/*********************************************************************
* _stricmp_l (MSVCRT.@)
*/
int
__cdecl
MSVCRT__stricmp_l
(
const
char
*
s1
,
const
char
*
s2
,
MSVCRT__locale_t
locale
)
{
return
MSVCRT__strnicmp_l
(
s1
,
s2
,
-
1
,
locale
);
}
/*********************************************************************
* _strnicmp (MSVCRT.@)
*/
int
__cdecl
MSVCRT__strnicmp
(
const
char
*
s1
,
const
char
*
s2
,
MSVCRT_size_t
count
)
{
return
MSVCRT__strnicmp_l
(
s1
,
s2
,
count
,
NULL
);
}
/*********************************************************************
* _stricmp (MSVCRT.@)
*/
int
__cdecl
MSVCRT__stricmp
(
const
char
*
s1
,
const
char
*
s2
)
{
return
MSVCRT__str
icmp_l
(
s1
,
s2
,
NULL
);
return
MSVCRT__str
nicmp_l
(
s1
,
s2
,
-
1
,
NULL
);
}
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