Commit Graph

9274 Commits

Author SHA1 Message Date
Viktor Szakats
10ddbcf1f4 2008-10-19 09:34 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/filebuf.c
  * source/rtl/filesys.c
    ! Fixed -W4 warnings.

  * source/rtl/tclass.prg
  * source/rtl/tsymbol.prg
    ! Fixed mistakes in recent commit.
2008-10-19 07:35:06 +00:00
Viktor Szakats
8a905fadd5 2008-10-19 09:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    + Made -gc3 switch the default. This will result in 
      noticeably faster .prg code execution at the cost of 
      a slightly bigger executable. Speaking of the core, 
      this can result at maximum 250K of extra executable 
      size increase, if the final executable uses _all_ 
      core .prg functions. Usually though it's much lower 
      than that, especially for GUI programs, since the 
      majority of core .prg code deals with CUI elements, 
      like TBrowse(), TGet(), 5.3 compatible CUI controls, 
      .frm and .lbl support, MemoEdit().

  * contrib/examples/dbu/bld_b32.bat
  * contrib/examples/dbu/bld_vc.bat
  * utils/hbdoc/bld_vc.bat
  * utils/hbdoc/bld_b32.bat
  * utils/hbmake/bld_b32.bat
  * utils/hbmake/bld_vc.bat
    + Added -l Harbour switch.
2008-10-19 07:21:55 +00:00
Viktor Szakats
a2385b1c55 2008-10-19 09:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbextern.ch
  * include/assert.ch
  * common.mak
  * source/rtl/Makefile
  - source/rtl/strtrim.c
  + source/rtl/hbntos.c
  * contrib/xhb/hbcompat.ch
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbgtarr.prg
  * source/rtl/errorsys.prg
  * source/rtl/valtoexp.prg
  * source/rtl/getsys.prg
  * source/rtl/tgetlist.prg
  * source/rtl/browse.prg
  * source/rtl/alert.prg
  * source/rtl/tclass.prg
  * source/rtl/tsymbol.prg
  * source/rtl/tscalar.prg
  * source/rtl/tpersist.prg
  * utils/hbmake/hbmake.prg
  * utils/hbrun/hbrun.prg
    * Renamed hb_N2S() to hb_NToS() which feels more 
      natural in Clipper.
2008-10-19 07:02:22 +00:00
Viktor Szakats
e6b20f05a4 2008-10-19 00:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/assert.ch
  * contrib/xhb/hbcompat.ch
  * source/debug/tbrwtext.prg
  * source/debug/dbgthsh.prg
  * source/debug/debugger.prg
  * source/debug/dbgwa.prg
  * source/debug/dbgtarr.prg
  * source/rtl/errorsys.prg
  * source/rtl/valtoexp.prg
  * source/rtl/getsys.prg
  * source/rtl/tgetlist.prg
  * source/rtl/browse.prg
  * source/rtl/alert.prg
  * source/rtl/tscalar.prg
  * source/rtl/tpersist.prg
  * utils/hbmake/hbmake.prg
  * utils/hbrun/hbrun.prg
    % Using hb_N2S() instead of LTrim( Str() ) expressions.
    ; NOTE: contribs and hbdoc not touched yet.
2008-10-18 22:23:45 +00:00
Viktor Szakats
2ab83da8a1 2008-10-19 00:05 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * include/hbextern.ch
  * source/rtl/Makefile
  + source/rtl/strtrim.c
    + Added function HB_N2S( <number> ) -> <string>.
      This is equivalent to LTrim( Str( <number> ) ), 
      just faster.

  * source/rtl/dircmd.prg
  * source/rtl/tget.prg
    * Minor cleanup.
2008-10-18 22:07:57 +00:00
Viktor Szakats
f795ac92c9 typo 2008-10-18 20:24:32 +00:00
Viktor Szakats
6f3c5a0dab 2008-10-18 22:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmysql/utils/bld_b32.bat
  * contrib/hbmysql/utils/bld_vc.bat
    * One final missing bld.bat -> hbmk.bat changed done.

  * contrib/hbapollo/readme.txt
    * Minor update.
2008-10-18 20:23:06 +00:00
Viktor Szakats
425e4f1ad8 fix to fix 2008-10-18 20:19:16 +00:00
Viktor Szakats
61bdd1cc16 fix to prev 2008-10-18 20:13:48 +00:00
Viktor Szakats
fec60ddb22 2008-10-18 22:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/hbcrypt.c
    ! Fixed lower level crypt functions to not do 
      zero division on zero length key input.
2008-10-18 20:03:36 +00:00
Viktor Szakats
c3f2ef56f9 2008-10-18 21:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbgete.c
    ! Fixed recent warning on Win32 platforms.

  * contrib/xhb/hbcrypt.c
    * Changed to just work instead of RTE-in if any 
      of the params are empty on non-strings. If 
      non-string is passed, it's considered as 
      empty string.
2008-10-18 19:18:17 +00:00
Viktor Szakats
a0bf4555ef 2008-10-18 16:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- bin/bld.bat
  + bin/hbmk.bat
  - bin/bld_os2.cmd
  + bin/hbmk_os2.cmd
  - bin/bld_b32.bat
  + bin/hbmk_b32.bat
  - bin/bld_vc.bat
  + bin/hbmk_vc.bat
  * tests/bld_b32.bat
  * tests/bld_vc.bat
  * contrib/hbmysql/tests/bld_b32.bat
  * contrib/hbmysql/tests/bld_vc.bat
  * contrib/hbct/tests/bld_b32.bat
  * contrib/hbct/tests/bld_vc.bat
  * contrib/xhb/tests/bld_b32.bat
  * contrib/xhb/tests/bld_vc.bat
  * contrib/hbodbc/tests/bld_b32.bat
  * contrib/hbodbc/tests/bld_vc.bat
  * contrib/hbtpathy/tests/bld_b32.bat
  * contrib/hbtpathy/tests/bld_vc.bat
  * contrib/hbmzip/tests/bld_b32.bat
  * contrib/hbmzip/tests/bld_vc.bat
  * contrib/hbole/tests/bld_b32.bat
  * contrib/hbole/tests/bld_vc.bat
  * contrib/hbsqlit3/tests/bld_b32.bat
  * contrib/hbsqlit3/tests/bld_vc.bat
  * contrib/hbapollo/tests/bld_b32.bat
  * contrib/hbapollo/tests/bld_vc.bat
  * contrib/hbfbird/tests/bld_b32.bat
  * contrib/hbfbird/tests/bld_vc.bat
  * contrib/hbziparc/tests/bld_b32.bat
  * contrib/hbziparc/tests/bld_vc.bat
  * contrib/hbnf/tests/bld_b32.bat
  * contrib/hbnf/tests/bld_vc.bat
  * contrib/hbcurl/tests/bld_b32.bat
  * contrib/hbcurl/tests/bld_vc.bat
  * contrib/hbhpdf/tests/bld_b32.bat
  * contrib/hbhpdf/tests/bld_vc.bat
  * contrib/rddado/tests/bld_b32.bat
  * contrib/rddado/tests/bld_vc.bat
  * contrib/gtwvg/tests/bld_vc.bat
  * contrib/gtwvg/tests/bld_b32.bat
  * contrib/hbpgsql/tests/bld_b32.bat
  * contrib/hbpgsql/tests/bld_vc.bat
  * contrib/hbclipsm/tests/bld_b32.bat
  * contrib/hbclipsm/tests/bld_vc.bat
  * contrib/rddads/tests/bld_b32.bat
  * contrib/rddads/tests/bld_vc.bat
  * contrib/hbfimage/tests/bld_b32.bat
  * contrib/hbfimage/tests/bld_vc.bat
  * contrib/hbgd/tests/bld_vc.bat
  * contrib/hbgd/tests/bld_b32.bat
  * contrib/hbmisc/tests/bld_b32.bat
  * contrib/hbmisc/tests/bld_vc.bat
  * contrib/hbgf/tests/bld_b32.bat
  * contrib/hbgf/tests/bld_vc.bat
  * contrib/hbtip/tests/bld_vc.bat
  * contrib/hbtip/tests/bld_b32.bat
  * contrib/hbwin/tests/bld_b32.bat
  * contrib/hbwin/tests/bld_vc.bat
  * contrib/hbvpdf/tests/bld_b32.bat
  * contrib/hbvpdf/tests/bld_vc.bat
  * contrib/hbwhat/tests/bld_b32.bat
  * contrib/hbwhat/tests/bld_vc.bat
  * contrib/examples/hbsqlit2/tests/bld_b32.bat
  * contrib/examples/hbsqlit2/tests/bld_vc.bat
    * Renamed bin\bld*.* files to bin\hbmk*.*. This 
      dir may be put in the path in user environments, 
      so it's necessary to put the name into the Harbour 
      namespace. The new name is also the one supported 
      on *nix/bash platforms, albeit with slightly 
      different usage.
      INCOMPATIBLE. Please update your environment.
      To achieve compatbility with older Harbour versions 
      and xhb, you can locally add a bld.bat file with 
      the content: '@call hbmk.bat %1 %2 %3 %4 %5 %6 %7 %8 %9'

  * source/common/hbgete.c
    * Minor.
2008-10-18 14:23:58 +00:00
Przemyslaw Czerpak
25fe51e9e5 2008-10-18 11:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbgete.c
    * modified hb_getenv_buffer() to return logical value indicating
      that environment variable exists even if no buffer is passed
2008-10-18 09:39:42 +00:00
Viktor Szakats
967c149c42 2008-10-18 10:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * make_b32.mak
   * make_vc.mak
   * make_gcc.mak
     % Harbour command line configuration moved to common.mak.

   * source/rtl/tclass.prg
   * source/rtl/tget.prg
     + NOTE added to tclass.prg.
     * Minor formatting.
2008-10-18 08:58:34 +00:00
Viktor Szakats
ee26c1b8d6 2008-10-18 10:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
  * source/common/hbgete.c
    + Added hb_getenv_buffer(). Similar to hb_getenv() but 
      this one needs a buffer+size to be passed, so no memory 
      allocation is done by the function. It also return 
      a BOOL to signal success. It doesn't signal if passed 
      buffer was too small to store the value.
2008-10-18 08:28:50 +00:00
Przemyslaw Czerpak
21811155d6 2008-10-18 08:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/dbgtwin.prg
  * harbour/source/debug/dbgbrwsr.prg
  * harbour/source/debug/debugger.prg
    ! fixed mono color setting
    * minor formatting
2008-10-18 06:36:46 +00:00
Viktor Szakats
3605f5ffca minor formatting 2008-10-17 16:38:23 +00:00
Viktor Szakats
6b060e2895 2008-10-17 18:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtwin.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/tbrwtext.prg
  * source/debug/debugger.prg
    ! Fixed to not crash after switching to mono display.
      DISCLAIMER: This is a quick patch (but even this took 
      hours) and it absolutely can be wrong, incomplete in 
      any ways. I'm not using or knowing debugger code, pls 
      patch it further on.
      NOTE: Color refresh after switching mono/color mode 
            is still wrong and I've given up after trying 
            for a few hours.
    * Minor formatting.
2008-10-17 16:23:12 +00:00
Przemyslaw Czerpak
edd1019b40 2008-10-17 16:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/console.c
    ! added missing #include "hbapierr.h"
2008-10-17 14:35:33 +00:00
Przemyslaw Czerpak
9d3a557435 2008-10-17 15:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/hbpp.c
    * workaround for warning in some GCC versions which can lost
      user casting during function autoinline optimization.

  * harbour/source/rtl/console.c
  * harbour/source/rtl/gtapi.c
    * moved //INFO message from hb_gtInit() to hb_conInit()

  * harbour/source/rtl/hbgtcore.c
  * harbour/contrib/hbct/ctwin.c
    * minor cleanup
2008-10-17 13:56:09 +00:00
Przemyslaw Czerpak
2502e5b0bf 2008-10-17 12:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/debugger.prg
    * changed __dbgInput() to return logical value and set edit value in
      variable passed by reference

  * harbour/source/debug/dbgtobj.prg
  * harbour/source/debug/dbgthsh.prg
  * harbour/source/debug/dbgtarr.prg
    ! fixed typo in VALID block declaration - it was array by mistake
    * removed unnecessary code related to GET behavior
    * use new __dbgInput() format
2008-10-17 10:41:48 +00:00
Viktor Szakats
5d9cdfab9c 2008-10-17 10:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtobj.prg
  * source/debug/dbgthsh.prg
  * source/debug/debugger.prg
  * source/debug/dbgtarr.prg
    * Changed rest of GETs to __dbgInput()

  * source/rtl/listbox.prg
    - Removed saving cursor position and color, 
      and changing default color.

  ; NOTE: Couldn't replicate Mono display RTE.
2008-10-17 08:17:58 +00:00
Przemyslaw Czerpak
7d0e105059 2008-10-17 03:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/dbgtwin.prg
    * use hb_scroll() instead of scroll()

  * harbour/source/debug/tbrwtext.prg
    ! fixed screen redrawing in horizontal movement

  * harbour/source/debug/debugger.prg
  * harbour/source/debug/dbgtinp.prg
    ! replaced GET/GETLIST objects by HbDbInput()
    ! fixed some interface incompatibilities with Clipper debugger
    * removed HB_NO_READDBG and code using GET classes - HbDbInput()
      works better and is much simpler in use.
    % do not use __GetListActive()/__GetListSetActive() - now debugger
      does not touch GET/GETLIST so it's not necessary to save/restore
      GETLIST state
      Now all references (except HBCLASS) to external .prg code in
      debugger have been removed.
      TODO: remove HB_NO_READDBG from other debugger files replacing
            code inside with __dbgInput()/HbDbInput().
            I would like to leave it for someone else and return to
            core code modifications.
2008-10-17 01:13:38 +00:00
Przemyslaw Czerpak
d16d2b1e34 2008-10-17 00:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/debug/Makefile
  + harbour/source/debug/dbgtinp.prg
    + added HbDbInput class for simple user input (GET)

  * harbour/source/debug/debugger.prg
    ! changed __dbgInput() to use HbDbInput() class instead of ACCEPT
      It fixes all bad visual end edit bad effects caused by ACCEPT.
      TODO: replace all GET references in debugger code with HbDbInput class.
2008-10-16 22:08:10 +00:00
Viktor Szakats
126b02960f 2008-10-16 14:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.bat
  * make_b32.mak
  * make_vc.bat
  * make_vc.mak
  * make_gcc.mak
    * HB_BUILD_VERBOSE=yes is now the default. If someone 
      is wanting to build Harbour from source and is bothered 
      by the compiler command-lines being shown, these can 
      be turned off with HB_BUILD_VERBOSE=no.
      These lines are IMO very important to see, which options 
      were exactly used when Harbour was built, I personally 
      archive these logs along with the builds.
2008-10-16 12:34:30 +00:00
Viktor Szakats
0817945bc4 2008-10-16 14:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    * Changed -b switch to -l-.
      -b debug mode causes more problems than good for Harbour 
      core/contrib.
2008-10-16 12:24:03 +00:00
Viktor Szakats
296b308154 2008-10-16 13:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    + Readded -b when HB_BUILD_STATIC=yes.
      Now it should work.

  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    % Deleted -l- switch when HB_BUILD_STATIC=yes.
      Line numbers are automatically enabled when 
      -b switch is used.

  * source/debug/debugger.prg
    * Renamed getdbginput() -> __dbgInput()

  ; NOTE to TOFIX: Do we need "Mono display" these days? :)
2008-10-16 11:22:07 +00:00
Przemyslaw Czerpak
7c8bc37bdd 2008-10-16 13:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/debugger.prg
    + added __dbgAChoice() - simple AChoice() replacement which uses
      internally HBDbBrowser() class
    * replaced AChoice() with __dbgAChoice()
    * replaced @ ... SAY ... by hb_dispOutAt()
2008-10-16 11:08:37 +00:00
Viktor Szakats
31dbf52795 minor formatting to prev 2008-10-16 06:46:55 +00:00
Viktor Szakats
992016b359 2008-10-16 08:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/common.ch
  * contrib/hbziparc/hbziparc.prg
  * source/rtl/tclass.prg
  * source/rtl/hbini.prg
    * Minor formatting. (hb_Is*() -> hb_is*())

  * contrib/hbct/ctrand.prg
  * contrib/hbct/numconv.prg
  * contrib/hbct/cttime.prg
  * contrib/hbct/showtime.prg
  * contrib/hbwhat/hbwhat.ch
  * utils/hbrun/hbrun.prg
  * source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgthsh.prg
  * source/debug/dbgtarr.prg
  * source/rtl/alert.prg
  * source/rtl/tbrowse.prg
    % ValType() -> IS*() / hb_is*()

  * contrib/hbwhat/hbwhat.ch
    % Using common.ch instead of replicating logic.
    * Some formatting.

  * utils/hbtest/hbtest.prg
    * Minor formatting.
2008-10-16 06:44:26 +00:00
Viktor Szakats
d04381ed75 2008-10-16 08:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbwhat/wincore.prg
    ! One STATIC made THREAD STATIC.
    ! STATIC vars renamed to s_*.
2008-10-16 06:11:39 +00:00
Viktor Szakats
f9616d47a4 2008-10-16 07:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/tpersist.prg
  * contrib/hbgd/gd.prg
  * contrib/hbgd/tests/tostring.prg
    * MemoWrit() -> hb_MemoWrit()

  * contrib/hbgd/gd.prg
    ! Fixed potential RTE.
2008-10-16 05:53:06 +00:00
Viktor Szakats
34de935979 2008-10-16 07:40 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/achoice.prg
    % Minor optimization.

  * source/rtl/achoice.prg
  * source/rtl/menuto.prg
  * source/rtl/tbrowse.prg
  * source/rtl/tclass.prg
    * Minor formatting.

  * source/rtl/tobject.prg
    * Removed '#pragma DEBUGINFO=OFF' as it's no more 
      needed.

  * source/debug/dbgthsh.prg
  * source/debug/debugger.prg
    * Copied hb_CStr() as __dbgCStr() to debug.lib.
    * Changed calls from hb_CStr() to __dbgCStr().

  * source/debug/dbgtmenu.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgwa.prg
    * Remaining BOX commands changed to hb_dispBox().

  * source/debug/dbghelp.prg
    ! Fixed one hb_dispBox() call with numeric frame parameter.
2008-10-16 05:40:51 +00:00
Przemyslaw Czerpak
97500be08b 2008-10-16 04:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/dbgbrwsr.prg
  * harbour/source/debug/dbgtwin.prg
  * harbour/source/debug/tbrwtext.prg
  * harbour/source/debug/dbgwa.prg
  * harbour/source/debug/debugger.prg
  * harbour/source/debug/dbghelp.prg
  * harbour/source/debug/dbgtmenu.prg
  * harbour/source/debug/dbgtmitm.prg
    * use hb_dispOutAt()/hb_dispBox() instead of DispOutAt()/DispBox()
    ! fixed using ADel()/AIns() with xHarbour extended parameters
    ! fixed RT debugger errors caused by missing ::nTabWidth and ::colorSpec
      in HBBrwText class
    ! fixed processing source code with TABs (chr(9))
    ; TOFIX: "Mono Display" causes RT error due to missing color index
             range checking. It also does not change all colors immediately
    ; TOFIX: getdbginput(): writing out of window area, scrolling internal
             buffer, cursor navigation, interrupting by ESC
2008-10-16 02:24:29 +00:00
Przemyslaw Czerpak
45c437c917 2008-10-16 00:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/dbgtobj.prg
  * harbour/source/debug/dbgbrwsr.prg
  * harbour/source/debug/dbgtwin.prg
  * harbour/source/debug/dbgmenu.prg
  * harbour/source/debug/dbgthsh.prg
  * harbour/source/debug/tbrwtext.prg
  * harbour/source/debug/debugger.prg
  * harbour/source/debug/dbgtarr.prg
  * harbour/source/debug/dbgtmenu.prg
  * harbour/source/debug/dbgtmitm.prg
    * use #define HB_CLS_NOTOBJECT to disable inheritance from HBObject
      in internal debugger classes.
      Here is complete list of other .prg functions still used by hbdebug
      library:
         GET, __GETLISTACTIVE, __GETLISTSETACTIVE, HBGETLIST, ACHOICE,
         HB_CSTR, HBCLASS
2008-10-15 22:42:54 +00:00
Przemyslaw Czerpak
b8bfdd4d75 2008-10-15 21:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/tbrwtext.prg
    ! refresh rows after active line changing for proper color updating
2008-10-15 19:33:56 +00:00
Przemyslaw Czerpak
bc1ec5f01a 2008-10-15 20:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/tbrwtext.prg
    ! fixed vertical navigation to be compatible with old debugger
      and Clipper
    ! fixed horizontal scrolling to the size of maximal line
      not to the size of current line
    % use single call to hb_aTokens() to convert source code into array
2008-10-15 18:03:34 +00:00
Przemyslaw Czerpak
7b5f7784fb 2008-10-15 19:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/dbgbrwsr.prg
    ! added missing #include "common.ch"
    ! added missing colorBlock variable in HBDBColumn class
    % replaced .prg wrappers for type checking with native
      harbour class type validation
2008-10-15 17:08:21 +00:00
Viktor Szakats
a11e7bdfa2 2008-10-15 18:12 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/tbrwtext.prg
    * Replaced with new implementation from Lorenzo Fiorini.
      Sent to the list on 2008.07.26.
    ; NOTE: Some issue were reported with this, but it's again 
            a step into the right direction, please try to update 
            this code to better resemble to Clipper and to fix 
            possible error. Thanks.
    ; Remaining RTL .prg dependencies:
      - ACHOICE() (just one call)

  * source/debug/debugger.prg
    * Using hb_MemoWrit() instead of MemoWrit()

  * source/rtl/achoice.prg
    % Minor opt.
2008-10-15 16:29:47 +00:00
Viktor Szakats
57e094986e 2008-10-15 17:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgthsh.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgwa.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgtmenu.prg
    + Added minimal Alert() clone, named ___dbgAlert().
    + Replaced Alert() with __dbgAlert() calls.
    + Added minimal TBColumn() implementation, named HBDbColumn().
    + Replaced TBColumnNew() with HBDbColumnNew() calls.
    + Enabled HB_NO_READDBG for all sources. This isn't 
      perfect, just a step into the right direction.
    ; Please test above modifications.
    ; Remaining RTL .prg dependencies:
      - HBEDITOR()
      - ACHOICE()

  * source/debug/dbgwa.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgtmenu.prg
    * Formatted to Harbour standards.

  * source/rtl/tobject.prg
  * source/rtl/tclass.prg
    + Added '#pragma DEBUGINFO=OFF'.
    ; NOTE: Maybe it'd be better to rewrite these in .c, 
            also for speed. If possible.

  * source/rtl/alert.prg
    ! Minor typo.
2008-10-15 15:55:11 +00:00
Przemyslaw Czerpak
3ed8136c80 2008-10-15 17:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/source/vm/estack.c
  * harbour/source/vm/hvm.c
  * harbour/source/debug/dbgentry.c
  * harbour/source/debug/debugger.prg
    * moved debugRequest flag and debugger internal structure
      pointer to HVM stack
    * allocate debugger internal structure dynamically in thread
      thread local area when PCODE with debug information is executed
    * changed STATIC s_oDebugger to THREAD STATIC
    * send HB_DBG_VMQUIT after each thread termination when
      debugger is activated
      Now debugger can be used in MT programs and each thread can be
      debugged separately (each has its own debuger). Please only
      remember that thread sharing console window can overwrite other
      threads debugger screen. There is also one limitation which I'll
      try to remove later: only main thread debugger keeps information
      about file wide STATIC names and line numbers with possible break
      point places. This data should be shared between debuggers.
2008-10-15 15:51:02 +00:00
Przemyslaw Czerpak
11fe9fff36 2008-10-15 13:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/source/vm/hvm.c
  * harbour/source/vm/estack.c
    * disabled all debugger related bindings and variables when
      HB_NO_DEBUG macro is set
    % moved s_fDebuging to HVM function stack frame to eliminate
      saving/restoring this variable in each function/message call
      Note: if you think it's good to block linking .prg code compiled
            with -b (debugger support) with HVM compiled with HB_NO_DEBUG
            then it's enough to disable whole hb_dbg_SetEntry() function
            in hvm.c when HB_NO_DEBUG macro is set.
2008-10-15 11:32:43 +00:00
Viktor Szakats
f9eb741d28 2008-10-15 10:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/dirstruc.txt
    * Updated.
2008-10-15 08:16:27 +00:00
Viktor Szakats
d54f03c81e 2008-10-15 10:09 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    * Removed disabling -b for non-debug builds.
    ; We aim to remove RTL .prg dependencies from hbdebug.lib, 
      either by local implementation, .c rewrite, or force 
      disabling debug mode in more core files.
      Until this happens, one will have to be careful with 
      using -b switch to compile Harbour. These are the core .prg 
      modules currently used by hbdebug.lib:
      - HBGETLIST(), GET(), __GET(), __GETLISTACTIVE(), __GETLISTSETACTIVE(), READINSERT(), READMODAL()
      - HBCLASS()
      - HBOBJECT()
      - HBEDITOR()
      - TBCOLUMNNEW()
      - ACHOICE()
      - ALERT()

  * source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgmenu.prg
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgtmenu.prg
  * source/debug/dbgtmitm.prg
    + Readded '#pragma DEBUGINFO=OFF'.
2008-10-15 08:13:42 +00:00
Viktor Szakats
9bb2620762 2008-10-15 02:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/langapi.c
  * utils/hbtest/rt_class.prg
    * Cleanup to previous modif.
2008-10-15 00:34:00 +00:00
Viktor Szakats
5c252e761e 2008-10-15 01:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgmenu.prg
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgtmenu.prg
  * source/debug/dbgtmitm.prg
    - Removed '#pragma DEBUGINFO=OFF'. See solution below.

  * make_b32.mak
  * make_gcc.mak
  * make_vc.mak
    * Forcing -b- (disabling debug info) for all core 
      .prg functions. Compiling anything in core with 
      -b would cause infinite loops, when trying to use 
      the debugger.
      QUESTION: Is HB_NO_READDBG still needed?
2008-10-14 23:59:06 +00:00
Viktor Szakats
2c241eb512 2008-10-15 01:40 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- lib/b32
  - lib/vc
  - bin/b32
  - bin/vc
  - obj/b32
  - obj/vc
    - Removed dirs from SVN. They are automatically created 
      by the build scripts.
2008-10-14 23:42:47 +00:00
Przemyslaw Czerpak
caadc6fa2e 2008-10-15 01:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/hvm.c
    ! clear HVM stack return value before use in initialization code
2008-10-14 23:39:35 +00:00
Viktor Szakats
cbde426c34 2008-10-15 01:04 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgmenu.prg
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgtmenu.prg
  * source/debug/dbgtmitm.prg
    + Added '#pragma DEBUGINFO=OFF' to debugger 
      sources. Otherwise compiling full Harbour with 
      -b was causing an infinite loop. (this is now 
      the default when building with 
      'HB_BUILD_DEBUG=yes'.

  * source/rdd/nulsys/nulsys.c
    ! Added DBSELECTAREA(), DBSTRUCT(), HEADER(), 
      RECSIZE(), LUPDATE()
      so that programs can be built with -b and 
      hbnulrdd.lib. hbdebug.lib/dgbwa.prg uses 
      symbols above.
2008-10-14 23:20:31 +00:00
Przemyslaw Czerpak
b0a88e24ff 2008-10-15 00:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbxvm.h
  * harbour/source/vm/hvm.c
    - removed to unused functions

  * harbour/source/vm/thread.c
    - removed unnecessary casting
2008-10-14 22:32:03 +00:00