From 0acdac82ce69c18713c74a73423097d00d95af79 Mon Sep 17 00:00:00 2001 From: Lorenzo Fiorini Date: Thu, 22 May 2008 08:05:32 +0000 Subject: [PATCH] --- harbour/ChangeLog | 8 ++++++++ harbour/source/common/hbstr.c | 2 +- harbour/source/rtl/hbini.prg | 2 +- harbour/source/rtl/idle.c | 8 +++++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d537cddd45..96a35599d8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,14 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-05-22 10:10 UTC+0100 Lorenzo Fiorini (lorenzo.fiorini/at/gmail.com) + * source/common/hbstr.c + * casting for gcc 4.3.0 + * source/rtl/idle.c + * changed for make it work in Centos 5.1 + * source/rtl/hbini.prg + * set only = as default key, field separator + 2008-05-22 08:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * hbwhat32/_winsys.c * hbwhat32/_wincomm.c diff --git a/harbour/source/common/hbstr.c b/harbour/source/common/hbstr.c index dcc8027b84..5bbbc3ac73 100644 --- a/harbour/source/common/hbstr.c +++ b/harbour/source/common/hbstr.c @@ -337,7 +337,7 @@ static double hb_numPow10( int nPrecision ) } else if( nPrecision > -16 ) { - return 1.0 / s_dPow10[ -nPrecision ]; + return 1.0 / s_dPow10[ ( unsigned int ) nPrecision ]; } } diff --git a/harbour/source/rtl/hbini.prg b/harbour/source/rtl/hbini.prg index 35e3307d34..4f8683cc34 100644 --- a/harbour/source/rtl/hbini.prg +++ b/harbour/source/rtl/hbini.prg @@ -104,7 +104,7 @@ FUNCTION hb_IniRead( cFileSpec, lKeyCaseSens, cSplitters, lAutoMain ) /* Default case sensitiveness for keys */ DEFAULT lKeyCaseSens TO .T. - DEFAULT cSplitters TO "=|:" + DEFAULT cSplitters TO "=" DEFAULT lAutoMain TO .T. hb_HCaseMatch( hIni, lKeyCaseSens ) diff --git a/harbour/source/rtl/idle.c b/harbour/source/rtl/idle.c index 6eff8a0dad..ed2b3204d8 100644 --- a/harbour/source/rtl/idle.c +++ b/harbour/source/rtl/idle.c @@ -148,9 +148,15 @@ void hb_releaseCPU( void ) } #elif defined(HB_OS_UNIX) { + struct timeval tv; + tv.tv_sec = 0; + tv.tv_usec = 1000; + select( 0, NULL, NULL, NULL, &tv ); + } + /* the code below is more efficient but doesn't work in Centos 5.1 static const struct timespec nanosecs = { 0, 1000000 }; nanosleep( &nanosecs, NULL ); - } + */ #else /* Do nothing */