Commit Graph

1171 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
d4128116bb 2011-12-23 10:43 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/include/hbapicdp.h
  * harbour/src/rtl/cdpapi.c
    ! fixed typo in hb_cdpUTF8StringPeek() declaration
2011-12-23 09:43:30 +00:00
Viktor Szakats
8f661a9ffe 2010-12-20 13:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/usrrdd/rdds/arrayrdd.prg
    ! formatting/cleanup, removed unncessary e"" string
    ! replaced '='/'!=' operator on strings with ==. It's most probably 
      still broken, but at least now consistently so.
2011-12-20 12:05:13 +00:00
Viktor Szakats
284e44cc11 2010-12-19 03:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/usrrdd/rdds/arrayrdd.prg
    ! formatting and syntax cleanup
    + TOFIXes added
2011-12-19 02:28:50 +00:00
Pritpal Bedi
f505370d55 2011-12-18 17:03 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* src/rdd/usrrdd/rdds/arrayrdd.prg
    ! Just and just formatting.
    ! Compliance to -w3 switch.
2011-12-19 01:24:33 +00:00
Francesco Saverio Giudice
95e616a883 2011-12-18 19:57 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/src/rdd/usrrdd/rdds/arrayrdd.prg
     * Cleaned windows xhb debug using HB_TRACE() function and removed old
        lines
  * harbour/ChangeLog
     * formatted previous log entry
2011-12-18 19:00:41 +00:00
Francesco Saverio Giudice
88c6af2a91 2011-12-18 11:19 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/src/rdd/usrrdd/rdds/arrayrdd.prg
     * Added Index and Set Filter Support by Quique <quique@quiquesoft.com>. Thank you
2011-12-18 10:21:04 +00:00
Przemyslaw Czerpak
0c58dc31b5 2011-12-13 10:37 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/rdd/dbfnsx/dbfnsx1.c
    ! fixed index header verification when index is loaded.
      In Harbour DBFNSX and DBFNTX automatically switch to different
      internal format when HB_DBFLOCK_HB64 is used. In this format
      they store in index files page numbers instead of page offsets
      what effectively increase maximal file size to 4TB (from 4GB).
2011-12-13 09:37:48 +00:00
Viktor Szakats
eee41e6a0f 2010-12-13 03:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/hbpp.c
  * src/compiler/hbusage.c
  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiomgm.prg
  * contrib/hbnetio/utils/hbnetioq/netiosrq.prg
  * contrib/hbformat/utils/hbformat.prg
  * contrib/hbide/idethemes.prg
  * contrib/hbrun/hbrun.prg
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
  * utils/hbi18n/hbi18n.prg
  * utils/hbtest/hbtest.prg
  * INSTALL
    * Bumped copyright year to 2012.
2011-12-13 02:35:06 +00:00
Przemyslaw Czerpak
f8ca5b43dc 2011-12-07 16:24 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/debian/changelog
  * harbour/debian/rules
    * changed version number to 3.1.0-1
    * removed HB_BUILD_DEBUG=yes
    * use 'dh_prep' instead of deprecated 'dh_clean -k'

  * harbour/src/rtl/gttrm/gttrm.c
    ! fixed my C&P typo in HB_TRACE() message

  + harbour/doc/locks.txt
    + added descirption of DBF locking schemes
2011-12-07 15:24:59 +00:00
Przemyslaw Czerpak
8f7e9eda97 2011-12-06 11:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrdddbf.h
    * modified DB_DBFLOCK_HB64 locking scheme
         - extended RLOCK/FLOCK area from 2^31-2 to 2^32-2
           it effectively changes maximum number of records in this
           locking scheme to 4'294'967'294
         - use COMIX like hyper locking mode
           it should increase performance
      Warning: INCOMPATIBLE!
               all applications using DB_DBFLOCK_HB64 locking mode should
               be updated - it is not safe to concurrently access the
               same files using programs compiled with older Harbour
               versions and current one.
    * renamed the following DB_DBFLOCK_* macros:
         DB_DBFLOCK_CLIP    to DB_DBFLOCK_CLIPPER
         DB_DBFLOCK_CL53    to DB_DBFLOCK_COMIX
         DB_DBFLOCK_CL53EXT to DB_DBFLOCK_HB32
    * added new locking scheme: DB_DBFLOCK_CLIPPER2
      This locking scheme is designed to replicate _real_ locking scheme
      used by Cl*pper applications linked with NTXLOCK2.OBJ
      It's different then the documented one.
    ; Now Harbour supports the following locking schemes:
         DB_DBFLOCK_CLIPPER  1 default Clipper locking scheme
         DB_DBFLOCK_COMIX    2 COMIX and CL53 DBFCDX hyper locking scheme
         DB_DBFLOCK_VFP      3 [V]FP, CL52 DBFCDX, SIx3 SIXCDX, CDXLOCK.OBJ
         DB_DBFLOCK_HB32     4 Harbour hyper locking scheme for 32bit file API
         DB_DBFLOCK_HB64     5 Harbour hyper locking scheme for 64bit file API
         DB_DBFLOCK_CLIPPER2 6 extended Clipper locking scheme NTXLOCK2.OBJ

  * harbour/include/hbrdddbf.h
  * harbour/include/hbrddntx.h
  * harbour/include/hbrddnsx.h
  * harbour/include/hbrddcdx.h
  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    + finished support for COMIX like hyper locking.
      This modification enables periodical switch to write locks
      by readers to eliminate starvation effect on some systems
      where many readers can completely block writer.
      By default readers use exclusive lock once per each 16 operations.
    + added optional support for delayed index write locks (flush locks)
      in hyper locking modes.
      If index RDD can use such locks then write lock can be divided into
      two parts:
         1) block writers and new readers (write lock)
         [prepare index modifications in memory]
         2) wait for old readers still active (flush lock)
         [write modifications to index file]
         [release locks]
      This mode reduces time when index is locked exclusively increasing
      reader performance and also increase writer performance because
      waiting for active readers it can prepare index modifications in
      memory.

  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    + added support for delayed index write locks (flush locks) in DBFCDX

  * harbour/src/rtl/filebuf.c
    * automatically change write file locks to read locks when file is
      open in readonly mode in POSIX systems.

  * harbour/src/vm/classes.c
    * disabled inheriting of class variables values from ancestor classes
      when new class is dynamically created.
      Warning: INCOMPATIBLE!
               This modification is not backward compatible and can
               interact with some existing code which has to be updated
               for new behavior.
2011-12-06 10:42:41 +00:00
Przemyslaw Czerpak
d8bb277c4d 2011-11-23 17:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
==> ChangeLog <==
2011-11-17 09:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
  * harbour/src/rtl/filebuf.c
    ! fixed silly typo in previous fix: 2011-09-02 14:03 UTC+0200
    ! fixed race condition in code emulating DOS/Windows file lock
      behavior in POSIX systems. The problem could be exploited by
      Harbour MT programs using the same files in many threads in
      more then on process. Many thanks to Zsolt for the info and
      test code example.
      [TOMERGE 3.0]
2011-11-23 16:54:49 +00:00
Viktor Szakats
0c38ab1529 2011-11-23 00:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbini.prg
    ! fixed HB_HKEEPORDER() usage in prev patch.
      Thx for input to Qatan and Mindaugas.
2011-11-22 23:09:03 +00:00
Viktor Szakats
5ee6af4c38 2011-11-22 18:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbini.prg
    + keep order of ini items.
      Patch by Qatan.
    * modified to use HB_HKEEPORDER() instead of HB_HSETORDER() 
      to be consistent along the patch and because former is the 
      native, faster synonym.
2011-11-22 17:19:20 +00:00
Przemyslaw Czerpak
7132c43df2 2011-11-15 23:28 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbproces.c
    * added workaround for missing chroot() in OpenWatcom 1.9 linux libraries
2011-11-15 22:28:33 +00:00
Przemyslaw Czerpak
d48fad60fc 2011-11-14 13:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    + added support for selecting text with mouse and coping it
      to clipboard buffer.
      By default this functionality is disabled and can be enabled by:
         hb_gtInfo( HB_GTI_SELECTCOPY, .t. )
      Marked mode is started by LEFT MOUSE button pressed with SHIFT key
      and stopped when LEFT MOUSE button is released. Selected text is
      highlight in similar way to GTWVT.
2011-11-14 12:23:40 +00:00
Przemyslaw Czerpak
59acee8c4b 2011-11-14 11:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    * minor code cleanup
2011-11-14 10:54:15 +00:00
Przemyslaw Czerpak
7f7d2e8f04 2011-11-10 10:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    ! create initial console window in fullscreen mode if user called
         hb_gtInfo( HB_GTI_ISFULLSCREEN, .T. )
      before window was created
  * harbour/tests/gtkeys.prg
    * modified to optionally test different CPs some extended GT keys
2011-11-10 09:34:55 +00:00
Przemyslaw Czerpak
0ceb3f3ee7 2011-11-09 17:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    * return HB_GTI_RESIZEMODE_ROWS for HB_GTI_RESIZEMODE
      HB_GTI_RESIZEMODE_FONT is not supported yet by GTXWC
    + added support for HB_GTI_ISFULLSCREEN and HB_GTI_ALTENTER
      They work like in GTWVT with HB_GTI_RESIZEMODE_FONT.
      Some window managers may not support it so please test it.
    + added support for HB_K_CLOSE, HB_K_GOTFOCUS and HB_K_LOSTFOCUS
      like in GTWVT
2011-11-09 16:17:21 +00:00
Przemyslaw Czerpak
065818dc1a 2011-11-08 19:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    + added support for 'Root' input context for systems where
      XLib supports Xutf8LookupString()
      It should resolve problems with national characters and
      some local signs supported by different keyboards
      (i.e. 1/2, euro sign, itp.)
      Please test it with different systems.
2011-11-08 18:53:29 +00:00
Przemyslaw Czerpak
c779d18252 2011-11-08 12:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.h
  * harbour/src/rtl/gtxwc/gtxwc.c
    * minor code cleanup

  * harbour/src/rtl/gttrm/gttrm.c
    + added support for HB_GTI_WINTITLE for XTerm compatible terminals
2011-11-08 11:29:25 +00:00
Przemyslaw Czerpak
e3efbb6652 2011-10-30 01:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbdyn.c
    * added dummy assignment to pacify warning

  * harbour/src/rtl/hbsocket.c
    * added workaround for EREFUSED == ECONNREFUSED.
      It has to be tested with different OS-es
2011-10-29 23:35:28 +00:00
Viktor Szakats
0a4bccada8 2011-10-28 01:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tget.prg
    ! fixed RTE when setting :picture to NIL for
      N and C types in some certain rare circumstantances.
      The :picture setting operation is ignored in such case, 
      since the internally stored original value is not known.
      Tested OK against CA-Cl*pper 5.3, though maybe it's 
      possible to refine this even further with more test cases.

  * tests/rto_get.prg
    + added test case for RTE reported by Quique
    ! fixed warnings
2011-10-27 23:30:35 +00:00
Przemyslaw Czerpak
c5d0f87eb6 2011-10-27 12:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.h
  * harbour/src/rtl/gtxwc/gtxwc.c
    + added font independent set of custom box characters
2011-10-27 10:37:37 +00:00
Viktor Szakats
3372045d56 missing space after prev commit 2011-10-24 11:38:10 +00:00
Viktor Szakats
3262a1a8a4 2011-10-24 13:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    ! Missing break clause causing following code also changes 
      console window title.
         hb_gtInfo( HB_GTI_BOXCP, hb_cdpSelect() )
      Patch by Aleksander Czajczynski
2011-10-24 11:36:12 +00:00
Przemyslaw Czerpak
f61adeaef4 2011-10-22 16:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/fm.c
    ! do not enable by default DLMALLOC in WinCE builds.
      It was the source of problems reported by Jarek with file read/write
      operation in WinCE builds. Now it should work correctly - please
      make some tests with real devices - I used emulator only.

  * harbour/contrib/hbwin/wapi_wingdi_font.c
    + added WAPI_ADDFONTRESOURCE() and WAPI_REMOVEFONTRESOURCE()
2011-10-22 14:22:37 +00:00
Przemyslaw Czerpak
bc87124922 2011-10-21 12:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtwvt/gtwvt.c
    ! fixed infinite recursive loops and GPF in WinCE builds caused by
      SetWindowPos()/ProcessMessages() when WM_SIZE message is processed.
      Now GTWVT can be used again in WinCE builds.
2011-10-21 10:34:40 +00:00
Przemyslaw Czerpak
a874a061ef 2011-10-20 23:06 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/hbmain.c
    ! take starting line number from PP to eliminate possible
      synchronization problem

  * harbour/src/compiler/hbcmplib.c
    ! minor fix in meta filename detecting
2011-10-20 21:06:32 +00:00
Przemyslaw Czerpak
9ec8317887 2011-10-20 22:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbcomp.h
  * harbour/src/pp/ppcore.c
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/hbcmplib.c
    + added support for setting starting line number in code compiled
      from memory buffer
    ! removed unnecessary EF_CANDEFULT flag from recently added
      compiler RTE
2011-10-20 20:04:04 +00:00
Przemyslaw Czerpak
049e9da26f 2011-10-20 20:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbcomp.h
  * harbour/include/hbcompdf.h
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/hbcomp.c
  * harbour/src/compiler/hbgenerr.c
    + added support for redirecting compiler warning and error messages
      to user function.

  * harbour/src/compiler/hbcmplib.c
    + optional support for generating RTE in HB_COMPILE*() functions
      on compile errors.
2011-10-20 18:19:19 +00:00
Przemyslaw Czerpak
040d5b0424 2011-10-20 12:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/transfrm.c
    % eliminated hb_charUpper() called for picture clauses and minor
      code optimization

  * harbour/src/rtl/gtapi.c
    ! fixed typo in function name: hb_gtBoxS() was wrongly redirected
      to HB_GTSELF_BOXD() instead of HB_GTSELF_BOXS()
2011-10-20 10:56:44 +00:00
Przemyslaw Czerpak
593b446a6a 2011-10-14 10:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapicdp.h
  * harbour/src/rtl/cdpapi.c
    - removed hb_cdpchrcmp() function and HB_CDP_ISBYTESORT() macro
    + added new function:
         const HB_UCHAR * hb_cdpGetSortTab( PHB_CODEPAGE cdp );
      it returns binary sort table or NULL if given CP uses more
      complicated sorting algorithm.

  * harbour/include/hbrddcdx.h
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    % use hb_cdpGetSortTab() to take binary sort table used by WA CP
      instead of creating new one for each WA.
2011-10-14 08:43:06 +00:00
Przemyslaw Czerpak
2e4aca3032 2011-10-11 01:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/natmsg.c
    ! fixed typo in recent commit
2011-10-10 23:56:43 +00:00
Przemyslaw Czerpak
1725166be3 2011-10-10 20:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/natmsg.c
    ! modified __NATISAFFIRM() and __NATISNEGATIVE() to work with
      multibyte CPs
2011-10-10 18:59:35 +00:00
Przemyslaw Czerpak
69bfb809d4 2011-10-10 19:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/rtl/cdpapi.c
    + added new string C functions operating on current HVM CP:
         HB_BOOL hb_strIsDigit( const char * szChar );
         HB_BOOL hb_strIsAlpha( const char * szChar );
         HB_BOOL hb_strIsLower( const char * szChar );
         HB_BOOL hb_strIsUpper( const char * szChar );

  * harbour/src/rtl/is.c
    * use hb_strIs*() functions instead of hb_charIs*()

  * harbour/include/hbapi.h
  * harbour/src/vm/set.c
    + added new function to check if OS<->Harbour codepage conversion
      is enabled:
         HB_BOOL hb_osUseCP( void );

  * harbour/src/rtl/filesys.c
    * use hb_osUseCP() function

  * harbour/include/hbapicdp.h
    + added HB_CDP_ISBINSORT(cdp) and HB_CDP_ISBYTESORT(cdp) macros

  * harbour/src/vm/itemapi.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/rddads/adsx.c
    * use HB_CDP_IS*SORT() macros

  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    % simplified hb_cdxFindBag()

  * harbour/src/rtl/hbascii.c
    ! fixed HB_ASCIIUPPER() and HB_ASCIILOWER() functions: hb_strUpper()
      was wrongly used inside both functions - probably C&P mistake
      [TOMERGE 3.0]

  * harbour/src/rdd/dbf1.c
    * updated comment
2011-10-10 17:50:44 +00:00
Przemyslaw Czerpak
ce5750db0f 2011-10-05 23:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    ! fixed problem with line numbering exploited by recent modification
      [MERGED 3.0]

  * harbour/contrib/hbwin/wapi_winuser_dlg.c
    ! fixed memory leak
      [MERGED 3.0]
2011-10-05 21:12:42 +00:00
Viktor Szakats
8822d2cd2a 2011-10-05 14:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tget.prg
    ! If the cursor is located in the middle of a word, ::wordLeft() no 
      places it at the beginning of this word, the cursor jumps to the 
      previous one.
    ! If the cursor is located at the end of a word ::wordRight() no places 
      it at the beginning of the next word skipping only the spaces between 
      them, the next word is skipped entirely.
    ; Patch and description by Juan Gálvez
2011-10-05 12:13:07 +00:00
Viktor Szakats
d707da35d0 2011-10-04 23:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbthread.h
  * include/hbsetup.h
  * src/3rd/zlib/Makefile
  * utils/hbmk2/hbmk2.prg
  * config/detplat.mk
  * config/global.mk
  + config/aix
  + config/aix/libs.mk
  + config/aix/gcc.mk
  + config/aix/global.mk
    + added IBM AIX support to Harbour
      Patch by Aleksander Czajczynski
2011-10-04 22:00:25 +00:00
Przemyslaw Czerpak
7ad364ed15 2011-09-30 22:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    ! fixed few problems with line numbering and code using
      extended codeblocks
      [TOMERGE 3.0]

  * harbour/src/pp/pplib2.c
    ! fixed typo in comment
2011-09-30 20:23:58 +00:00
Przemyslaw Czerpak
76205aef80 2011-09-28 16:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.h
  * harbour/src/rtl/gtxwc/gtxwc.c
    % use common buffer for different box drawing character definitions
2011-09-28 14:31:02 +00:00
Przemyslaw Czerpak
14f3e64398 2011-09-27 15:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
    ! fixed window activation just after SETMODE() and before any output
    ! fixed mouse methods to not activate console window but only connect
      to XServer if necessary
    ! fixed internal error reported when HB_GTI_RESIZABLE was called before
      creating console window
    % do not allocate colors in HB_GTI_PALETTE if there is no console window
2011-09-27 13:15:52 +00:00
Przemyslaw Czerpak
37986061a5 2011-09-27 09:04 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtwvt/gtwvt.c
  * harbour/src/rtl/gtxwc/gtxwc.c
    + allow to use HB_GTI_ONLINE to check if terminal window exists

  * harbour/src/rtl/gtxwc/gtxwc.c
    ! protection against possible GPF when XServer is not accessible
      and user calls HB_GTI_FONTSEL
    * do not activate terminal window by HB_GTI_FONTSEL
    * use maximal logical width of character instead of maximal size
      of character rectangle to calculate width of character cell
2011-09-27 07:04:21 +00:00
Przemyslaw Czerpak
c80c0feb2a 2011-09-26 10:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
  * harbour/src/rtl/gtclip.c
    ! fixed possible random data settings by hb_gt_winapi_setClipboard()
    ! fixed possible memory leak in hb_gt_winapi_setClipboard()
    + added new C function for WIN32 builds:
      HB_BOOL hb_gt_winapi_setClipboardRaw( HB_UINT uFormat,
                                            void * pData, HB_SIZE nSize );
2011-09-26 08:57:26 +00:00
Przemyslaw Czerpak
f312800cfb 2011-09-24 11:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbtrace.h
  * harbour/src/common/hbtrace.c
    + added new C function:
         const char * hb_tracemode( const char * szNewMode );
      it can be called with "a" or "w" parameter to set open
      mode for newly created by hb_tracefile() log files.

  * harbour/src/rtl/trace.c
    + added new PRG function:
         HB_TRACEMODE( [<cNewMode>] ) -> <cPrevMode>
2011-09-24 09:10:51 +00:00
Przemyslaw Czerpak
da1a9239f1 2011-09-23 18:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbrandom.c
    ! fixed HB_RANDOMINTMAX() to return correct value for new PRNG
      used by HB_RANDOM() and HB_RANDOMINT() functions
    ! fixed missing protection against initialization of PRNG seed with 0
    * modified the range of hb_random_num() results from ( 0 , 1 ) to
      [ 0, 1 )
    % added alternative PRN calculation for builds with 64bit integers
    ! allocate separate PRNG seed for each thread (MT support)
    * modified default initialization of PRNG:
         if PRNG is not initialized or after HB_RANDOMSEED( 0 ) then
         first call to HB_RANDOM() or HB_RANDOMINT() activates
         initialization which generates new seed using current time
         in milliseconds and HVM stack address (for MT modes).
      I used such method because it nicely simplifies code and is
      backward compatible with previous implementation.
      If someone needs repeatable results from HB_RANDOM() and
      HB_RANDOMINT() then he should initialize PRNG seed for each
      thread with some fixed value i.e.:
         HB_RANDOMSEED( 123456789 )
    ; Many thanks to Viktor and Mindaugas for their help.

  * harbour/contrib/xhb/xhbole.prg
    ! added missing SETGET in method declaration.
      Many thanks to Juan Galvez for locating the problem.
2011-09-23 16:36:37 +00:00
Viktor Szakats
2ae90b92ba 2011-09-20 17:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/rtl/hbrandom.c
    + Changed Harbour's core pseudo-random generator from STD C rand()/srand()
      to superior implementation. New implementation fixed MT problems with 
      the standard solution on certain targets (f.e. win/mingw, win/msvc)
      Based on Przemek's patch which is in turn based on algorithm by 
      Steve Park: http://www.cs.wm.edu/~va/software/park/ suggested by me 
      on the list. Further modifications:
         * HB_RANDOMINTMAX() adapted. Checkme, I'm not sure about this.
         * HB_RANDOMSEED() updated.
         + headers cleaned, copyright updated, note added
         + automatic seed defaulting like in previous version (checkme, 
           we may as well drop it, though it will be create incompatibility)
         ; per-thread seed didn't work well for me (even with new engine) 
           so I didn't implement it.
         + added proto for hb_random_seed()
2011-09-22 15:14:21 +00:00
Viktor Szakats
2243ed5e92 2011-09-20 13:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/teditor.prg
    ! fixed following issue: in MEMOEDIT() insert mode the word wrap inserts
      an additional, not typed space in the new line [when typing at EOL at the
      moment of word wrap - vszakats]. The space is inserted at the place, where
      the word wrap takes place.
      Report and patch provided by Dr.Claudia Neumann. Many thanks.
      (with my formatting: indenting, tab/EOL-space removal)

  * contrib/hbqt/qtcore/hbqt_pointer.cpp
    ! fixed to avoid non-MT compatible strtok() C RTL call.
      Many thanks to Carlos Bacco for the patch.
      (with my minor formatting 'if (' -> 'if(', 'while (' -> 'while( ')

      NOTE: Please continue to avoid strtok() usage in any further Harbour patches,
            it is avoided for good reason.

  * INSTALL
    + added another (this is the 3rd!) mention to use unmodified ("vanilla")
      3rd party packages (especially to make implib generation to work).
    * minor updates

  * contrib/hbrun/hbrun.hbp
    + added another TOFIX to latest patch, about HB_HAS_ZLIB_LOCAL usage,
      which has to be eliminated.

  * ChangeLog
    + added UPDATE to previous ChangeLog entry
2011-09-20 11:58:11 +00:00
Przemyslaw Czerpak
9377fc138b 2011-09-12 17:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
  * harbour/src/rtl/hbproces.c
    ! use hb_fsOsError() instead of errno which can be overwritten by
      by hb_fsSetIOError()

  * harbour/tests/gtxfnt.prg
    % hb_processRun() instead of hb_processOpen()/fread()/hb_processClose()
    + set font attributes: HB_GTI_FONTA_FIXMETRIC, HB_GTI_FONTA_CLRBKG,
      HB_GTI_FONTA_DRAWBOX
2011-09-12 15:41:28 +00:00
Przemyslaw Czerpak
2e49f35f34 2011-09-08 22:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.h
  * harbour/src/rtl/gtxwc/gtxwc.c
    * cleaned macro names
2011-09-08 20:00:36 +00:00
Przemyslaw Czerpak
b3229d9c73 2011-09-06 09:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtinfo.ch
    + added new hb_gtInfo() action: HB_GTI_FONTATTRIBUTE and attributes:
      HB_GTI_FONTA_FIXMETRIC, HB_GTI_FONTA_CLRBKG, HB_GTI_FONTA_DRAWBOX

  * harbour/src/rtl/gtxwc/gtxwc.c
    + implemented HB_GTI_FONTATTRIBUTE.
      Now user can make:
         hb_gtInfo( HB_GTI_FONTATTRIBUTE, HB_GTI_FONTA_FIXMETRIC + ;
                    HB_GTI_FONTA_CLRBKG + HB_GTI_FONTA_DRAWBOX )
      and use also fonts with broken metrics.
2011-09-06 07:33:58 +00:00