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
3953614b
Commit
3953614b
authored
Nov 12, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Nov 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- implement mbscspn mostly as a stub
- reimplement mktime
parent
7f7c6477
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
mbcs.c
dlls/msvcrt/mbcs.c
+9
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
time.c
dlls/msvcrt/time.c
+17
-0
No files found.
dlls/msvcrt/mbcs.c
View file @
3953614b
...
...
@@ -72,6 +72,15 @@ int _mbscmp(const char *str, const char *cmp)
}
/*********************************************************************
* _mbscspn(MSVCRT.@)
*/
int
_mbscspn
(
const
char
*
str
,
const
char
*
cmp
)
{
FIXME
(
"don't handle double character case
\n
"
);
return
strcspn
(
str
,
cmp
);
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
*/
int
_mbsicmp
(
const
char
*
str
,
const
char
*
cmp
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
3953614b
...
...
@@ -357,7 +357,7 @@ debug_channels (msvcrt)
@ cdecl _mbscmp(str str) _mbscmp
@ stub _mbscoll #(str str)
@ cdecl _mbscpy(ptr str) strcpy
@
stub _mbscspn #(str str)
@
cdecl _mbscspn (str str) _mbscspn
@ cdecl _mbsdec(ptr ptr) _mbsdec
@ cdecl _mbsdup(str) _strdup
@ cdecl _mbsicmp(str str) _mbsicmp
...
...
@@ -675,7 +675,7 @@ debug_channels (msvcrt)
@ cdecl memcpy(ptr ptr long) memcpy
@ cdecl memmove(ptr ptr long) memmove
@ cdecl memset(ptr long long) memset
@ cdecl mktime(ptr) mktime
@ cdecl mktime(ptr)
MSVCRT_
mktime
@ cdecl modf(double ptr) modf
@ cdecl perror(str) MSVCRT_perror
@ cdecl pow(double double) pow
...
...
dlls/msvcrt/time.c
View file @
3953614b
...
...
@@ -33,6 +33,23 @@ char* msvcrt_get_current_time(char* out, const char* format)
}
/**********************************************************************
* mktime (MSVCRT.@)
*/
MSVCRT_time_t
MSVCRT_mktime
(
struct
MSVCRT_tm
*
t
)
{
struct
tm
aa
;
aa
.
tm_sec
=
t
->
tm_sec
;
aa
.
tm_min
=
t
->
tm_min
;
aa
.
tm_hour
=
t
->
tm_hour
;
aa
.
tm_mday
=
t
->
tm_mday
;
aa
.
tm_mon
=
t
->
tm_mon
;
aa
.
tm_year
=
t
->
tm_year
;
aa
.
tm_isdst
=
t
->
tm_isdst
;
return
mktime
(
&
aa
);
}
/**********************************************************************
* _strdate (MSVCRT.@)
*/
char
*
_strdate
(
char
*
date
)
...
...
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