2014-09-19 15:22 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/common/hbdate.c
    ! fixed typo in hb_timeUTCOffset() - this code was used in POSIX
      systems which do not support gmtime_r()/localtime_r() - many
      thanks to Teo.

  * src/debug/dbgentry.c
  * src/debug/debugger.prg
    * prepare the code to return error object when evaluated expression
      fails as proposed by Teo. This functionality is not enabled yet.
      I'm waiting for information about current public debugger API used
      in 3-rd party projects before I decide to change it.
This commit is contained in:
Przemysław Czerpak
2014-09-19 15:22:23 +02:00
parent 9525224f03
commit cbb89e780a
4 changed files with 49 additions and 24 deletions

View File

@@ -934,7 +934,7 @@ long hb_timeUTCOffset( void ) /* in seconds */
utc = mktime( gmtime_r( &current, &timeinfo ) );
local = mktime( localtime_r( &current, &timeinfo ) );
#else
timeinfo = *gmtime( &local );
timeinfo = *gmtime( &current );
utc = mktime( &timeinfo );
timeinfo = *localtime( &current );
local = mktime( &timeinfo );