Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4b6d5fd5
Commit
4b6d5fd5
authored
Nov 02, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implemented wcstok_s.
parent
5437c72f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
+22
-10
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
+1
-1
wcs.c
dlls/msvcrt/wcs.c
+18
-6
No files found.
dlls/msvcr100/msvcr100.spec
View file @
4b6d5fd5
...
...
@@ -1653,7 +1653,7 @@
@ cdecl wcsstr(wstr wstr) msvcrt.wcsstr
@ cdecl wcstod(wstr ptr) msvcrt.wcstod
@ cdecl wcstok(wstr wstr) msvcrt.wcstok
@
stub
wcstok_s
@
cdecl wcstok_s(ptr wstr ptr) msvcrt.
wcstok_s
@ cdecl wcstol(wstr ptr long) msvcrt.wcstol
@ cdecl wcstombs(ptr ptr long) msvcrt.wcstombs
@ cdecl wcstombs_s(ptr ptr long wstr long) msvcrt.wcstombs_s
...
...
dlls/msvcr80/msvcr80.spec
View file @
4b6d5fd5
...
...
@@ -1507,7 +1507,7 @@
@ cdecl wcsstr(wstr wstr) msvcrt.wcsstr
@ cdecl wcstod(wstr ptr) msvcrt.wcstod
@ cdecl wcstok(wstr wstr) msvcrt.wcstok
@
stub
wcstok_s
@
cdecl wcstok_s(ptr wstr ptr) msvcrt.
wcstok_s
@ cdecl wcstol(wstr ptr long) msvcrt.wcstol
@ cdecl wcstombs(ptr ptr long) msvcrt.wcstombs
@ cdecl wcstombs_s(ptr ptr long wstr long) msvcrt.wcstombs_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
4b6d5fd5
...
...
@@ -1491,7 +1491,7 @@
@ cdecl wcsstr(wstr wstr) msvcrt.wcsstr
@ cdecl wcstod(wstr ptr) msvcrt.wcstod
@ cdecl wcstok(wstr wstr) msvcrt.wcstok
@
stub
wcstok_s
@
cdecl wcstok_s(ptr wstr ptr) msvcrt.
wcstok_s
@ cdecl wcstol(wstr ptr long) msvcrt.wcstol
@ cdecl wcstombs(ptr ptr long) msvcrt.wcstombs
@ cdecl wcstombs_s(ptr ptr long wstr long) msvcrt.wcstombs_s
...
...
dlls/msvcrt/msvcrt.spec
View file @
4b6d5fd5
...
...
@@ -1457,7 +1457,7 @@
@ cdecl wcsstr(wstr wstr) ntdll.wcsstr
@ cdecl wcstod(wstr ptr) MSVCRT_wcstod
@ cdecl wcstok(wstr wstr) MSVCRT_wcstok
# stub wcstok_s
@ cdecl wcstok_s(ptr wstr ptr)
@ cdecl wcstol(wstr ptr long) ntdll.wcstol
@ cdecl wcstombs(ptr ptr long) MSVCRT_wcstombs
@ cdecl wcstombs_s(ptr ptr long wstr long) MSVCRT_wcstombs_s
...
...
dlls/msvcrt/wcs.c
View file @
4b6d5fd5
...
...
@@ -1368,25 +1368,37 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcspbrk( const MSVCRT_wchar_t* str, const MSVCRT_wc
}
/*********************************************************************
* wcstok (MSVCRT.@)
* wcstok
_s
(MSVCRT.@)
*/
MSVCRT_wchar_t
*
CDECL
MSVCRT_wcstok
(
MSVCRT_wchar_t
*
str
,
const
MSVCRT_wchar_t
*
delim
)
MSVCRT_wchar_t
*
CDECL
wcstok_s
(
MSVCRT_wchar_t
*
str
,
const
MSVCRT_wchar_t
*
delim
,
MSVCRT_wchar_t
**
next_token
)
{
thread_data_t
*
data
=
msvcrt_get_thread_data
();
MSVCRT_wchar_t
*
ret
;
if
(
!
str
)
if
(
!
(
str
=
data
->
wcstok_next
))
return
NULL
;
if
(
!
MSVCRT_CHECK_PMT
(
delim
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
next_token
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
||
*
next_token
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
NULL
;
}
if
(
!
str
)
str
=
*
next_token
;
while
(
*
str
&&
strchrW
(
delim
,
*
str
))
str
++
;
if
(
!*
str
)
return
NULL
;
ret
=
str
++
;
while
(
*
str
&&
!
strchrW
(
delim
,
*
str
))
str
++
;
if
(
*
str
)
*
str
++
=
0
;
data
->
wcstok_next
=
str
;
*
next_token
=
str
;
return
ret
;
}
/*********************************************************************
* wcstok (MSVCRT.@)
*/
MSVCRT_wchar_t
*
CDECL
MSVCRT_wcstok
(
MSVCRT_wchar_t
*
str
,
const
MSVCRT_wchar_t
*
delim
)
{
return
wcstok_s
(
str
,
delim
,
&
msvcrt_get_thread_data
()
->
wcstok_next
);
}
/*********************************************************************
* wctomb (MSVCRT.@)
...
...
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