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
This commit is contained in:
Przemyslaw Czerpak
2010-01-18 16:03:09 +00:00
parent a894400a85
commit 298ee0015d
3 changed files with 6 additions and 90 deletions

View File

@@ -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

View File

@@ -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 )

View File

@@ -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 */