forked from enlightenment/efl
* src/bin/evil_test_gettimeofday.c:
replace evil_gettimeofday by gettimeofday * src/lib/evil_string.c: * src/lib/evil_string.h: add strcoll() "port" to Windows CE OS. Note it's just strcmp, no locale stuff is used onn that OS. SVN revision: 37910
This commit is contained in:
parent
a2cd677cdc
commit
e407285fb1
|
@ -1,3 +1,13 @@
|
|||
2008-12-03 Vincent Torri <doursse at users dot sf dot net>
|
||||
|
||||
* src/bin/evil_test_gettimeofday.c:
|
||||
replace evil_gettimeofday by gettimeofday
|
||||
|
||||
* src/lib/evil_string.c:
|
||||
* src/lib/evil_string.h:
|
||||
add strcoll() "port" to Windows CE OS. Note it's
|
||||
just strcmp, no locale stuff is used onn that OS.
|
||||
|
||||
2008-11-29 Vincent Torri <doursse at users dot sf dot net>
|
||||
|
||||
* src/lib/evil_main.c:
|
||||
|
|
|
@ -17,11 +17,11 @@ test_time_tests_run(suite *s)
|
|||
struct timeval tp1;
|
||||
struct timeval tp2;
|
||||
|
||||
evil_gettimeofday (&tp1, NULL);
|
||||
gettimeofday (&tp1, NULL);
|
||||
|
||||
Sleep(20);
|
||||
|
||||
evil_gettimeofday (&tp2, NULL);
|
||||
gettimeofday (&tp2, NULL);
|
||||
|
||||
printf ("time : %ld %ld\n", tp1.tv_sec, tp1.tv_usec);
|
||||
printf ("time : %ld %ld\n", tp2.tv_sec, tp2.tv_usec);
|
||||
|
|
|
@ -45,3 +45,33 @@ int ffs(int i)
|
|||
}
|
||||
|
||||
#endif /* ! __CEGCC__ */
|
||||
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
|
||||
/*
|
||||
* String manipulation related functions
|
||||
*
|
||||
*/
|
||||
|
||||
int
|
||||
strcoll (const char *s1, const char *s2)
|
||||
{
|
||||
#ifdef UNICODE
|
||||
wchar_t *ws1;
|
||||
wchar_t *ws2;
|
||||
int res;
|
||||
|
||||
ws1 = evil_char_to_wchar(s1);
|
||||
ws2 = evil_char_to_wchar(s2);
|
||||
res = wcscmp(ws1, ws2);
|
||||
if (ws1) free(ws1);
|
||||
if (ws2) free(ws2);
|
||||
|
||||
return res;
|
||||
#else
|
||||
return strcmp(s1, s2);
|
||||
#endif /* ! UNICODE */
|
||||
}
|
||||
|
||||
#endif /* _WIN32_WCE */
|
||||
|
|
|
@ -25,4 +25,16 @@ EAPI int ffs(int i);
|
|||
#endif /* ! __CEGCC__ */
|
||||
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
|
||||
/*
|
||||
* String manipulation related functions
|
||||
*
|
||||
*/
|
||||
|
||||
EAPI int strcoll (const char *s1, const char *s2);
|
||||
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
|
||||
#endif /* __EVIL_STRING_H__ */
|
||||
|
|
Loading…
Reference in New Issue