From 298ee0015d9714462a77a40f1ea7bcc78ce3d2a7 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Mon, 18 Jan 2010 16:03:09 +0000 Subject: [PATCH] 2010-01-18 17:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbwince.h * harbour/src/common/hbwince.c - removed added for WinCE builds and not longer used wrappers for some C RTL functions --- harbour/ChangeLog | 6 +++ harbour/include/hbwince.h | 8 ---- harbour/src/common/hbwince.c | 82 ------------------------------------ 3 files changed, 6 insertions(+), 90 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3661a4cb52..d945b0f43a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-18 17:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/include/hbwince.h + * harbour/src/common/hbwince.c + - removed added for WinCE builds and not longer used wrappers + for some C RTL functions + 2010-01-18 16:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * include/hbcompdf.h * src/compiler/cmdcheck.c diff --git a/harbour/include/hbwince.h b/harbour/include/hbwince.h index 1ed5379930..f4f5ae1230 100644 --- a/harbour/include/hbwince.h +++ b/harbour/include/hbwince.h @@ -62,14 +62,6 @@ HB_EXTERN_BEGIN /* defined( __CEGCC__ ) || defined( __MINGW32CE__ ) */ -#if defined( __MINGW32CE__ ) && 0 -typedef long clock_t; -extern clock_t clock( void ); -extern int access( const char *filename, int mode ) -extern int system( const char * string ); -extern char * strerror( int errnum ); -#endif - #if defined( HB_OS_WIN_USED ) #if defined( _MSC_VER ) diff --git a/harbour/src/common/hbwince.c b/harbour/src/common/hbwince.c index ac3bc58960..9ef711d457 100644 --- a/harbour/src/common/hbwince.c +++ b/harbour/src/common/hbwince.c @@ -370,88 +370,6 @@ BOOL WINAPI FloodFill( HDC h, int x, int y, COLORREF c ) return FALSE; } -/* - * functions which were overloaded but are not longer necessary - */ -#if 0 -#if defined( __MINGW32CE__ ) - -int access( const char *filename, int mode ) -{ - WIN32_FIND_DATAW wdata; - LPWSTR wfilename; - HANDLE h; - - HB_SYMBOL_UNUSED( mode ); - - wfilename = hb_mbtowc( filename ); - h = FindFirstFileW( wfilename, &wdata ); - hb_xfree( wfilename ); - - return h != INVALID_HANDLE_VALUE; -} - -clock_t clock( void ) -{ - SYSTEMTIME st; - - GetLocalTime( &st ); - - return ( ( clock_t ) hb_dateEncode( st.wYear, st.wMonth, st.wDay ) - 2451545 ) * 86400000 + - ( ( st.wHour * 60 + st.wMinute ) * 60 + st.wSecond ) * 1000 + st.wMilliseconds; -} - -int system( const char *cmd ) -{ - LPWSTR wcmd; - STARTUPINFOW si; - PROCESS_INFORMATION pi; - BOOL b; - - memset( &si, '\0', sizeof( si ) ); - si.cb = sizeof( si ); - memset( &pi, '\0', sizeof( pi ) ); - - wcmd = hb_mbtowc( cmd ); - - /* Start the child process. */ - b = CreateProcessW( NULL, /* No module name (use command line) */ - wcmd, /* Command line */ - NULL, /* Process handle not inheritable */ - NULL, /* Thread handle not inheritable */ - FALSE, /* Set handle inheritance to FALSE */ - 0, /* No creation flags */ - NULL, /* Use parent's environment block */ - NULL, /* Use parent's starting directory */ - &si, /* Pointer to STARTUPINFO structure */ - &pi ); /* Pointer to PROCESS_INFORMATION structure */ - - hb_xfree( wcmd ); - - if( b ) - { - /* Wait until child process exits. */ - WaitForSingleObject( pi.hProcess, INFINITE ); - - /* Close process and thread handles. */ - CloseHandle( pi.hProcess ); - CloseHandle( pi.hThread ); - } - - return b ? 0 : -1; -} - -char * strerror( int errnum ) -{ - HB_SYMBOL_UNUSED( errnum ); - - return ( char * ) ""; -} - -#endif /* __MINGW32CE__ */ - -#endif /* 0 */ - #endif /* HB_OS_WIN_CE */ #endif /* HB_OS_WIN */