Commit Graph

9334 Commits

Author SHA1 Message Date
Viktor Szakats
97b1d094e5 2008-10-27 15:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/gencc.c
    ! Fixed -gc3 double number handling problem.
      Many thanks to Przemek for the fix.
      [TOMERGE 1.0]
2008-10-27 14:24:32 +00:00
Viktor Szakats
194f8514e9 2008-10-27 15:18 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/tbrowse.prg
  * source/debug/debugger.prg
    ! Cleaned hb_AINS()/hb_ADEL() usage after changing the 
      default of the last parameter.
      Should fix the recent TBrowse() crash.
    ; NOTE: I'll rethink the defaulting situation at least 
            for hb_AINS().
2008-10-27 14:20:10 +00:00
Viktor Szakats
d7af644364 2008-10-27 14:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbextern.ch
  * source/rtl/philes.c
    + Added HB_FLOCK() / HB_FUNLOCK() file locking 
      functions.
      [TOMERGE 1.0]

  * source/rtl/tget.prg
    ! Accessing of Get() variables below made 
      C5.x compatible when a new value was 
      assigned to them as function call, rather 
      then normal assigment.
      :buffer, :changed, :clear, :col, :colorSpec
      :minus, :pos, :row, :subScript, :postBlock, 
      :preBlock, :cargo, :exitState, :reader.
    ; NOTE: Please report if any of the side cases 
            still don't work.
      [TOMERGE 1.0]
2008-10-27 13:48:01 +00:00
Viktor Szakats
d1dc70f971 2008-10-27 12:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
  * contrib/mtpl_vc.mak
    - Removed no longer necessary '-D_CRT_SECURE_NO_DEPRECATE' 
      for MSVS 2005 and upper.

  * include/hbsetup.h
    * Mapping snprintf() calls to hb_snprintf().
    ; TODO: Replace the calls in source code.

  * source/common/hbstr.c
    ! Fixed hb_snprintf(). Please verify on your platforms.
    ; TODO: It may need further tweaking to smooth out the 
            platform implementation differences.
2008-10-27 11:11:02 +00:00
Viktor Szakats
b5e9969713 2008-10-27 11:29 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
  * source/common/hbstr.c
    + Added return value to hb_snprintf().
2008-10-27 10:30:03 +00:00
Viktor Szakats
bfd31350c2 2008-10-27 11:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbstr.c
    * Some tweaks to hb_snprintf(). It still doesn't work 
      for some reason.

  * include/hbapi.h
    + Added hb_snprintf() to header.

  * source/debug/dbgentry.c
    * Changed strcpy() to hb_strncpy(). Chances are high 
      this is wrong. Please review and test.
2008-10-27 10:26:54 +00:00
Viktor Szakats
2a1b6c0d64 2008-10-27 10:37 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/pp/ppcore.c
    + Added '#pragma TEXTHIDDEN=<ON | OFF>' to control the 
      existing -texthidden option to add light encoding to 
      strings embedded in code. Since this goes with a slight 
      performance hit and it's rarely used, it might be useful 
      to turn it on only for code parts that really needs this.

  * source/rtl/tget.prg
    * Corrected an assigment to follow official syntax.
2008-10-27 09:38:26 +00:00
Viktor Szakats
32909568c0 2008-10-27 00:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
    * Changed to include bitness even for DJGPP.
    * Changed "(* bit)" to "(*-bit)"
    ; NOTE: We have __ARCH*BIT__ but this macro is misleading 
            and cannot be used properly on platforms where the 
            compiler is able to generate multiple targets in 
            one build pass. Such system is Darwin/OSX.
            I'd suggest to consider removing this macro, and 
            rather adding a function to return bitness.
            Any opininons?
2008-10-26 23:04:57 +00:00
Viktor Szakats
79708d30b0 2008-10-26 22:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbfopen.c
    * Changed hb_fopen() to use fopen_s(), secure version of 
      fopen() for MSVS 2005 and upper.

  * source/common/hbstr.c
    + Added hb_snprintf() Harbour wrapper for snprintf() which 
      terminates the buffer with a '\0' char for CRTLs that 
      need this (like MSVC).
      MSVC _snprintf() doesn't do so.
    * hb_snprintf() used _snprintf_s(), secure version of 
      _snprintf() for MSVS 2005 and upper.
    ; TOFIX: There is still one strcpy() marked as non-secure 
             in debug lib. Could someone please take a look 
             at it and replace it with hb_strncpy() or something 
             else secure? The code is cryptic and as someone 
             not using the debugger, I didn't dare to touch it, 
             and this is the only one such call left.
    ; TODO: Change all snprintf() calls to hb_snprintf().
            When that happens, Harbour will no more use anything 
            depicted as "non-secure" by MSVS 2005/2008.
    ; NOTE: This function may need tweaking, pls review and 
            fix if/where needed.

  * source/vm/dlmalloc.c
    ! Fixed MSVC C++ mode compile error. This fix also exists 
      as part of the next dlmalloc version (2.8.4b).

2008-10-26 07:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
  * contrib/hbdbgfx/dbgfx.prg
    * Minor cleanup.
 
  * contrib/hbdbgfx/dbgfxc.c
    ! Fixed GPF when non-string parameter passed to 
      hb_outdebug().
2008-10-26 21:43:34 +00:00
Viktor Szakats
aeb5a3fac8 2008-10-26 07:10:19 +00:00
Pritpal Bedi
b0a1807d65 2008-10-25 19:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbdbgfx/dbgfxc.c
    + HB_FUNC( HB_OUTDEBUG ). 
      May be I am missing something. Please correct.
2008-10-26 02:13:41 +00:00
Pritpal Bedi
32b21b9bfd 2008-10-25 17:55 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/include/hbgtinfo.ch
    + Added HB_GTI_SETPOS_XY
    + Added HB_GTI_SETPOS_ROWCOL
  
  * harbour/rtl/gtwvt/gtwvt.c
    ! Updated to honor HB_GTI_SETPOS_XY | HB_GTI_SETPOS_ROWCOL commands.

  * harbour/tests/wvtext.prg
    ! Updated to demonstrate HB_GTI_SETPOS_XY|ROWCOL window positioning.

    ; Now every next browser window opens 20x20 pixels away from 
      previous window, a GT imposed Z-Order.
2008-10-26 01:00:37 +00:00
Pritpal Bedi
68a537991b 2008-10-25 14:49 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/rtl/gtwvt/gtwvt.h
    + Added <ResizeMode> member to HB_GTWVT

  * harbour/include/hbgtinfo.ch
    + Added HB_GTI_RESIZEMODE 
    + Added HB_GTI_RESIZEMODE_FONT
    + Added HB_GTI_RESIZEMODE_ROWS

  * harbour/include/inkey.ch
    + Added K_HB_RESIZE  1101

  * harbour/rtl/gtwvt/gtwvt.c
    ! Updated to accomodate HB_GTI_RESIZEMODE.

  * harbour/rtl/hbgtcore.c
    ! static BOOL hb_gt_def_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo )
      {
         case HB_GTI_RESIZEMODE:
            pInfo->pResult = hb_itemPutNInt( pInfo->pResult, HB_GTI_RESIZEMODE_FONT );
            break;

  * harbour/tests/wvtext.prg
    ! Updated to demonstrate K_HB_RESIZE event in navigation loop.
    ; Odd numbered windows will have HB_GTI_RESIZEMODE_ROWS mode
      Even numbered windows will have HB_GTI_RESIZEMODE_FONT mode.
      Open two or more browsers to see the effects. 

    ; To activate HB_GTI_RESIZEMODE_ROWS mode call
         hb_gtInfo( HB_GTI_RESIZEMODE, HB_GTI_RESIZEMODE_ROWS )
      and whenever window will be resized you can retrieve it via 
         if inkey() == K_HB_RESIZE
            // Reconfigure browser/your screen accordingly
         endif
2008-10-25 22:08:57 +00:00
Pritpal Bedi
6f76698388 2008-10-25 09:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/gtwvg.h
    ! Updated to honor latest changes in GTWVT.
2008-10-25 16:36:21 +00:00
Przemyslaw Czerpak
293fccdbff 2008-10-25 12:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * eliminated few static variables
    ! fixed possible race condition when new window is created by adding
      mutex protection
2008-10-25 10:57:55 +00:00
Viktor Szakats
1e45c02dd6 Marked two changes TOMERGE 2008-10-24 12:01:35 +00:00
Viktor Szakats
704090a093 2008-10-24 13:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/arrayshb.c
    * Changed the default for the last logical parameter of 
      HB_AINS()/HB_ADEL() to be .T.
      This way there is no need to pass this parameter if someone 
      wants to actually use the extended nature of these functions.
      Passing a .F. will result in equivalent functionality to 
      AINS()/ADEL(). Essentially the last parameter is just there 
      for compatibility.
2008-10-24 11:58:56 +00:00
Viktor Szakats
4008e7fbf5 2008-10-24 12:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbextern.ch
    + Added recent .prg level functions.
2008-10-24 10:26:48 +00:00
Przemyslaw Czerpak
1ad4e9c53a 2008-10-24 12:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtxwc/gtxwc.c
    * added hack for problems with some XLIB versions in heavy stress
      MT tests

  * harbour/include/hbapigt.h
  * harbour/source/vm/thread.c
    * added parameter to hb_gtAlloc() C function

  * harbour/include/hbapigt.h
  * harbour/source/rtl/hbgtcore.c
    + added hb_gtCreate() and hb_gtSwap() C functions
    + added new .prg functions:
         HB_GTCREATE( <cGtName> ) -> <pGT>
         HB_GTSELECT( <pGT> ) -> <pPrevGT>
      Using this functions is possible to create many console window
      if GT supports such possibilities (f.e. GTXWC or GTWVT) even in
      single thread programs and switch between them.

  * harbour/source/rtl/box.c
    ! fixed one of recent DISPBOX() modifications - it should use:
      hb_gtBoxEx() instead of hb_gtDrawBox() to set cursor position.

  + harbour/tests/gtwin.prg
    + added demonstration/test code for using more then one console window
      also in single thread programs.
2008-10-24 10:00:30 +00:00
Viktor Szakats
e93b5aa865 2008-10-24 10:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/arrayshb.c
    % Removed unnecessary pcount() calls.
2008-10-24 08:48:51 +00:00
Viktor Szakats
a2e6115792 2008-10-24 09:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/hbcompat.ch
    + Added a few MT related translations.
    * Some cleanup.
2008-10-24 07:24:25 +00:00
Viktor Szakats
f9f48b59c0 2008-10-23 14:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
    ! Fixed compilation against libcurl 7.16.1.
    ; Untested.
2008-10-23 12:27:07 +00:00
Viktor Szakats
7ce7a6d888 2008-10-23 12:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/mtpl_vc.mak
    ! Fixed MSVC not rebuilding .prg files after changing them.
      Current solution is to simply delete the intermediate .c 
      file after C compiler returned. This also saves space, 
      so even if it's a hack, it might be good to add this 
      for other build paths.
2008-10-23 10:24:49 +00:00
Viktor Szakats
8ef12af6d4 2008-10-23 12:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    ! Changed '!' (non-working) echo supression char to '@'.

  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    % Changed to create the obj dir as a separate build rule 
      (just like for core) rather than for each file.
2008-10-23 10:18:03 +00:00
Viktor Szakats
aba5b928cb 2008-10-23 12:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    * "IF EXIST" -> "if exist" for consistency.
    * "-" echo supression char consistently changed to "@", 
      and added where it was missing (for 'if exist' commands).

  * make_vc.mak
    % Cleaned WinCE C options from unnecessary quotes.
    % Minor opt in .dll flag assembly.
    % Some commented options removed.
    * WinCE LDFLAGS uppercase to lowercase.
    % Minor opt in non-WinCE LDFLAGSDLL assembly.

  * source/rtl/gtwvt/gtwvt.c
    * Minor formatting.
2008-10-23 10:03:10 +00:00
Pritpal Bedi
6b32c1a1ac 2008-10-22 20:58 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/tests/demowvg.prg
    ! Yet another cosmetic change to demonstrate Fonts and Size of the windows.
2008-10-23 03:59:23 +00:00
Pritpal Bedi
28d0d6eacd 2008-10-22 20:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/tests/demowvg.prg
    ! Minor change to change the color pallet of <Next Gets> screen.
2008-10-23 03:46:21 +00:00
Pritpal Bedi
e3b222bfa6 2008-10-22 20:11 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/gtwvg.h
  * harbour/contrib/gtwvg/wvgpaint.prg
  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Updated to current GTWVT changes for multi-windows support.
    ;NOTE Compile demowvg.prg with -d__MW__ and execute repeatedly 
     <Traditonal><Next Gets | Browser>. Also paly with other parts as usual.
2008-10-23 03:16:43 +00:00
Przemyslaw Czerpak
8f2b17341b 2008-10-23 04:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
    * removed unnecessary initialization

  * harbour/contrib/hbct/screen2.c
    * removed unused variable
2008-10-23 02:39:34 +00:00
Przemyslaw Czerpak
0acecef1af 2008-10-23 04:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtapi.c
    * LOCK/UNLOCK GT in hb_gtBeginWrite()/hb_gtEndWrite()

  * harbour/contrib/hbct/showtime.prg
    ! added missing common.ch

  * harbour/contrib/hbct/screen2.c
    % use hb_gtPutText() in _HB_CTDSPTIME()

  * harbour/contrib/hbct/screen1.c
    * forrmatting
2008-10-23 02:35:36 +00:00
Przemyslaw Czerpak
afea8ee0dd 2008-10-23 04:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtxwc/gtxwc.h
  * harbour/source/rtl/gtxwc/gtxwc.c
    ! use XInitThreads() for MT safe thread access when linked with MT HVM
    + added optional mutex protection enabled by HB_XWC_XLIB_NEEDLOCKS macro
      to use when XLib does not support XInitThreads()
2008-10-23 02:01:43 +00:00
Viktor Szakats
97a39f0123 2008-10-22 20:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    ! Fix to previous change. (MT and GUI status was reset in the loop).

  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
    ! Help message corrections.

  * bin/hbmk.bat
  * make_vc.mak
  * config/w32/msvc.cf
  * config/w32/msvcce.cf
    * Using lowercase linker options for MSVC. Just for consistency.
    * Using '/' as a switch char for MSVC linker. This works fo all 
      old version.

  * contrib/mtpl_vc.mak
    * Minor formatting.
2008-10-22 18:02:52 +00:00
Przemyslaw Czerpak
f43f85e0eb 2008-10-22 19:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gttrm/gttrm.c
    * use CP437 for BOX characters when terminal is in UTF-8 mode
2008-10-22 17:52:06 +00:00
Przemyslaw Czerpak
63cccbddfa 2008-10-22 19:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/thread.c
    ! fixed memory allocation in HB_THREADWAIT() when more then 16
      threads were specified
2008-10-22 17:13:27 +00:00
Przemyslaw Czerpak
47ed35ee5c 2008-10-22 17:45 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hbmk.bat
    * simple modification to make beginning hbmk parameters (-mt and -gui)
      position independent though they still have to be used before Harbour/
      C compiler switches and filenames

  * harbour/source/common/hbdate.c
  * harbour/source/compiler/cmdcheck.c
  * harbour/source/rtl/filesys.c
  * harbour/source/rtl/hbffind.c
    ! use MT safe localtime_r() function if it's available instead of
      localtime()
      TODO: clean the usage of this function and gmttime[_r]() probably
      by adding our own wrappers.

  * harbour/source/rtl/hbffind.c
    ! disabled calls to tzset() - this function should be executed
      automatically by CRTL only if it's necessary. It's also not MT
      safe and can cause MT applications crash.
2008-10-22 15:45:36 +00:00
Viktor Szakats
cadb6c1631 2008-10-22 17:07 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    * Minor.

  * contrib/rddsql/mysqldd.c
    ! Fixed one warning.

  * contrib/rddads/adsx.c
    ! Fixed codepage/MT related compile error.
    ! Some warnings.
    ! svn:keywords, svn:eol-style
2008-10-22 15:08:11 +00:00
Mindaugas Kavaliauskas
3110d1ffc0 2008-10-22 17:17 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ contrib/rddads/adsx.c
    + added implementation of local indexing support for ADS driver.
      Local indexing is used in case server can not do index 
      creation, for example: index key depends on relation child area
      fields, index key uses user defined functions, index is created
      using codeblock, but not expression, etc.
    ; This code implements no update index! Partial index update could 
      also be implemented, but I didn't have a need for this. Besides 
      that partial index implementation will be a little more 
      complicated than in other RDD. Database update operations are 
      not done in a single goCold() method. So, index update should 
      be called, from many methods: append(), putValue(), delete(), 
      recall(), etc., or ADS RDD structure should be changed to 
      support real goCold(). For implementation of partial index, 
      I'd suggest to use tree index (instead of a simple sorted array 
      and binary search). B-tree code could be found in 
      contrib/rddsql/sqlmix.c.
    ; Please check makefiles, and other compilers, platforms.
2008-10-22 14:17:36 +00:00
Viktor Szakats
3092f701ee 2008-10-22 14:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk_os2.cmd
    + Added support for HB_MT=yes.
    + Added support for -mt switch.

  * bin/hbmk.cmd
    ! Typo in help screen.
2008-10-22 13:00:57 +00:00
Mindaugas Kavaliauskas
cad70bfdc2 2008-10-22 16:00 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/rddsql/hbsqldd.h
  * contrib/rddsql/sqlbase.c
  * contrib/rddsql/sqlmix.c
  * contrib/rddsql/mysqldd.c
    * Finished implementation of national sorting support
    * converted // comments to /* */
    * translated lithuanian comments to english
    * updated startup code
    * fixed BYTE * val -> BYTE val[1]
2008-10-22 12:59:27 +00:00
Viktor Szakats
933db66cff 2008-10-22 14:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Added support for 'set HB_GUI=yes'
      Currently implemented for BCC32 and MSVC.
    + Added support for 'set HB_MT=yes' (instead of 'MT')
      for consistency. MT seems to be an xhb heritage and 
      it may be removed in the future.
    + Added support for optional -mt switch as an equivalent 
      to 'set HB_MT=yes'
    + Added support for optional -gui switch as an equivalent 
      to 'set HB_GUI=yes'
    ; NOTE: Ordering (first -mt, then -gui) and casing (everything 
            is lowercase) of the above options are significant.

  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
    * Help screen cleanup.

  * contrib/gtwvg/tests/bld_vc.bat
  * contrib/gtwvg/tests/bld_b32.bat
    * Changed to use HB_GUI=yes instead of C_USR/L_USR.
2008-10-22 12:55:39 +00:00
Viktor Szakats
cc61d55d91 2008-10-22 14:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* tests/rto_get.prg
    + Added tests for assigments as function calls (o:col( 10 ) 
      and some for assigments as _function calls (o:_col( 10 )).

  * bin/hbmk.bat
  * make_vc.mak
    - Removed /subsystem:console from LDFLAGS. This seems to 
      be the default so it's not necessary.

  * bin/hbmk.bat
    + Added L_USR support for MSVC. Now it's possible to 
      build GUI (and GTWVT) programs using 
      'set L_USR=/subsystem:WINDOWS' switch.

  * contrib/gtwvg/tests/bld_vc.bat
    ! Using above method to make it work with MSVC.
2008-10-22 12:17:14 +00:00
Viktor Szakats
1dcc52ab03 2008-10-22 12:09 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* tests/wvtext.prg
    ! Fixed GT selection code.

  * contrib/rddsql/mysqldd.c
    + Added ugly hack to make it compile with MSVC.
    ! Fixed MSVC 64-bit warning.

  * source/rtl/gtapi.c
    * Minor formatting.
2008-10-22 10:09:59 +00:00
Pritpal Bedi
5225f0bc5f 2008-10-22 23:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/tests/wvtext.prg
    Updated to demonstrate multi-windows GT capabilities.
    
    A REMINDER : This development alone places Harbour much higher than 
                 so many dialects. Mind-blowing feature. I had ever longed
                 for this functionality since I started with Xbase++.
                 But the ease of use of a MW-GT in Harbour is far superior
                 than in Xbase++. Spread this word. I am sure this feature
                 alone is going to add a handsome value to my applications.
                 I hope you all will be benefitted.

                 I have no word of appreciation for Przemyslaw Czerpak as
                 whatever I will say will fall short of weight. So...
2008-10-22 06:11:59 +00:00
Przemyslaw Czerpak
520a0a0206 2008-10-22 05:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/include/hbgtcore.h
  * harbour/include/hbthread.h
  * harbour/include/hbapigt.h
  * harbour/source/vm/estack.c
  * harbour/source/vm/hvm.c
  * harbour/source/vm/thread.c
  * harbour/source/rtl/hbgtcore.c
    + added support for optional allocating independent console window by
      each thread. By default new thread inherits console Window from
      parent thread. But each thread can allocate its own console window
      by calling hb_gtReload( <cGtName> ) function, f.e. by:
         hb_gtReload( hb_gtVersion() )
      If GT driver supports such functionality then new it will allocate
      new console windows.
      Each console window has reference counter which is increased when
      new thread starts and decreased when hb_gtReload() is executed or
      thread terminates. When counter reach zero give console window is
      destroyed.

  * harbour/source/rtl/gtwvt/gtwvt.c
    ! use SendNotifyMessage() instead of SendMessage() to not block
      threads which inherited GT from parent thread. Why non of MS-Win
      users reported this problem?
    + added reference counter to window class for multi GT support

  + harbour/tests/mt/mttest10.prg
    + added demonstration/test code for using independent console window
      in different threads. It needs GT driver which supports such
      functionality, f.e GTXWC in *nixes or GTWVT in MS-Windows

  * harbour/tests/mt/mttest09.prg
    ! fixed typo in comment
2008-10-22 03:03:58 +00:00
Teo Fonrouge
47ee4c1dba 2008-10-21 17:19 UTC-0500 Teo Fonrouge (teo/at/windtelsoft/dot/com)
* source/debug/debugger.prg
    ! Fixed error when moving in the call stack window to an source prg
      not included in the path, and a ::oWndVars (Monitor of vars) is opened.
2008-10-21 22:16:18 +00:00
Przemyslaw Czerpak
0cef1d4902 2008-10-21 22:18 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
  * harbour/source/rtl/console.c
  * harbour/source/rtl/filesys.c
    * use HB_STD{IN,OUT,ERR}_HANDLE macros instead of hard coded values

  * harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtapi.c
    + added optional support for dynamic supertables
    + added reference counter to HB_GT_BASE structure
    - removed hb_gtUnLoad() function
    + added hb_gtAlloc(), hb_gtRelease(), hb_gtAttach()
    + added hb_gtRealod() function which unloads current GT driver
      and loads given new one
    + added .prg function HB_GTRELOAD( <cGtName> ) -> <lSuccess>
      This function allow to switch active GT driver at run time.
      It can be also used to simulate removed HB_NOSTARTUPWINDOW()
      functionality. F.e.:

         REQUEST HB_GT_WVT
         REQUEST HB_GT_NUL_DEFAULT
         proc main()
            // do some initializations...
            hb_gtReload( "WVT" )
            // rest of code...
         return

      Please remember that some GTs may refuse initialization due to
      missing required resources and instead of return FALSE they can
      interrupt program with internal error, just like at application
      startup so it's not guarantied that this function always returns.

  * harbour/contrib/hbct/ctwin.c
    * updated for new GT API
    + added support for dynamic supertable to allow using CTWIN in the
      same time with different GTs.

  * harbour/contrib/xhb/hbcompat.h
    - removed hb_retclenAdoptRaw translation
2008-10-21 20:19:00 +00:00
Viktor Szakats
42013c528f 2008-10-21 14:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/box.c
    ! Fixed GPF in hb_dispBox() when box drawing chars 
      were not passed.
2008-10-21 12:58:55 +00:00
Miguel Angel Marchuet Frutos
08be73b95c 2008-10-21 13:17 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
* contrib/xhb/hbcompat.ch
  * contrib/xhb/hbcompat.h
    + added compatibilities.
  * include/fileio.ch
  * source/rtl/filesys.c
    * minor sintax correction.
2008-10-21 11:16:35 +00:00
Viktor Szakats
5ea5b2d18a 2008-10-21 09:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/console.c
    ! Fixed typo in hb_dispoutAt() numeric color handling.

  * source/rtl/box.c
    * Minor formatting.
2008-10-21 07:35:52 +00:00
Viktor Szakats
ad8389d113 2008-10-21 08:29 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ contrib/rddsql
  + contrib/rddsql/common.mak
  + contrib/rddsql/tests
  + contrib/rddsql/tests/test1.prg
  + contrib/rddsql/tests/bld_b32.bat
  + contrib/rddsql/tests/bld_vc.bat
  + contrib/rddsql/Makefile
  + contrib/rddsql/make_b32.bat
  + contrib/rddsql/make_vc.bat
  + contrib/rddsql/make_gcc.sh
  + contrib/rddsql/mysqldd.c
  + contrib/rddsql/sqlbase.c
  + contrib/rddsql/sqlmix.c
  + contrib/rddsql/hbsqldd.h
    + Added SQL RDD sent to the list by Mindaugas.
    * Changed strcpy(), unused vars, startup code, 
      added make files, fixed all MSVS/BCC warnings, 
      other minor cleanups.
    * Changed 'BYTE val[]' to 'BYTE * val' in struct decl.
    ; TOFIX: It doesn't compile on MSVC due to this error:
             .\mysqldd.c(65) : fatal error C1017: invalid integer constant expression

  * ChangeLog
    + Marked one change as TOMERGE.

  * contrib/hbdbgfx/dbgfxc.c
    * Minor cleanup.

  * source/vm/harbinit.prg
    * Minor.

  * source/rtl/xhelp.c
    ! Typo in comment.

  * source/rtl/valtoexp.prg
  * source/rtl/alert.prg
    * {|| ... } -> {||...} for consistency along Harbour.
2008-10-21 06:43:47 +00:00