2016-12-15 12:51 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* include/harbour.hbx
  * src/harbour.def
  * src/rtl/dateshb.c
    + added new PRG functions which convert time difference to hours,
      minutes, seconds and milliseconds. Except milliseconds the results
      are floating point numbers with fractional part representing the
      rest of conversion:
         hb_NToHour( <nTimeDiff> )  => <nHours>
         hb_NToMin ( <nTimeDiff> )  => <nMinutes>
         hb_NToSec ( <nTimeDiff> )  => <nSeconds>
         hb_NToMSec( <nTimeDiff> )  => <nMilliseconds>
    + added new PRG functions which convert timestamp value to hours,
      minutes, seconds and milliseconds. Except milliseconds the results
      are floating point numbers with fractional part representing the
      rest of conversion:
         hb_TToHour( <tTimeStamp> ) => <nHours>
         hb_TToMin ( <tTimeStamp> ) => <nMinutes>
         hb_TToSec ( <tTimeStamp> ) => <nSeconds>
         hb_TToMSec( <tTimeStamp> ) => <nMilliseconds>

  * src/rtl/gtsln/gtsln.c
    ! fixed cleanup string sent to terminal to remove test UTF-8 character

  * src/rtl/gtsln/kbsln.c
    + added workaround for some broken Linux kernel which wrongly sets
      tty device as ready for reading

  * src/rtl/hbsocket.c
    * added comment

  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfntx/dbfntx1.c
    ! added missing tag root page restoring cleared after discarding buffers
      due to concurrent access to multitag indexes.
      Many thanks for Karsten Stucker for self contain example.

  * src/rdd/dbfntx/dbfntx1.c
    * discard buffers when next free page is changed even without touching
      version number - minor protection for potentially broken 3-rd party
      NTX code or very old [x]Harbour NTX RDDs which do not increment
      version number on update.
This commit is contained in:
Przemysław Czerpak
2016-12-15 12:51:24 +01:00
parent 0b8990ede5
commit a52a2e57a4
9 changed files with 163 additions and 20 deletions

View File

@@ -711,7 +711,11 @@ DYNAMIC hb_mvRestore
DYNAMIC hb_mvSave
DYNAMIC hb_ntoc
DYNAMIC hb_NToColor
DYNAMIC hb_NToHour
DYNAMIC hb_NToMin
DYNAMIC hb_NToMSec
DYNAMIC hb_ntos
DYNAMIC hb_NToSec
DYNAMIC hb_NToT
DYNAMIC hb_NumToHex
DYNAMIC hb_OEMToANSI
@@ -880,8 +884,12 @@ DYNAMIC hb_TSToStr
DYNAMIC hb_TSToUTC
DYNAMIC hb_TToC
DYNAMIC hb_TToD
DYNAMIC hb_TToHour
DYNAMIC hb_TToMin
DYNAMIC hb_TToMSec
DYNAMIC hb_TToN
DYNAMIC hb_TToS
DYNAMIC hb_TToSec
DYNAMIC hb_UAt
DYNAMIC hb_UChar
DYNAMIC hb_UCode