Commit Graph

9879 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
987fff2601 2009-02-16 17:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbinfo.ch
    + added DBI_ISTEMPORARY

  * harbour/include/hbapirdd.h
  * harbour/source/rdd/wafunc.c
    + added hb_rddCreateTableTemp() C function to create temporary
      table which are automatically deleted on close. All indexes and
      memo files for such tables are also in temporary files and
      automatically deleted on close. Please remember that Harbour uses
      OS functions to create temporary files so it's installation dependent
      how much disk space is available for them. Some RDDs may also do
      not create temporary files but keep everything in memory if they
      decide it's more efficient.

  * harbour/source/rdd/dbcmd.c
    + added .prg function to create temporary files:
         dbCreateTemp( <cAlias>, <aStruct>, <cRDD>, ;
                       <cCodePage>, <nConnection> ) -> <lSuccess>
      Not all RDDs have to support it. It's verified by support for
      DBI_ISTEMPORARY dbInfo() action.

  * harbour/include/hbrdddbf.h
  * harbour/include/hbrddnsx.h
  * harbour/include/hbrddcdx.h
  * harbour/include/hbrddntx.h
  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
  * harbour/source/rdd/dbfnsx/dbfnsx1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    + added support for temporary tables in native RDDs.

   Most of above modifications were done by Viktor Szakats.
2009-02-16 16:39:39 +00:00
Przemyslaw Czerpak
21881669c3 2009-02-16 15:03 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/thread.c
    ! fixed typo in PTHREAD (*nixes) version of hb_threadMutexTimedLock()
      (.prg HB_MUTEXLOCK() with timeout parameter)
    ! unlock HVM in *nix version of hb_threadWait()
    ; added TODO note
2009-02-16 13:59:06 +00:00
Viktor Szakats
1063d8be8a corrected day of recent entries. 2009-02-16 12:11:37 +00:00
Chen Kedem
8a814395be 2009-02-16 14:02 UTC+0200 Chen Kedem <niki@synel.co.il>
* doc/dirstruc.txt
     * Updated to reflect current state.

   * source/compiler/hbusage.c
   * source/lang/msghe862.c
   * source/lang/msghewin.c
   * source/rtl/tone.c
   * source/rtl/gtos2/gtos2.c
     * Update my email on source files
       (didn't bother to change those under doc).
2009-02-16 12:03:38 +00:00
Viktor Szakats
23127c393a 2009-02-17 12:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbapicdp.h
   * common.mak
   * source/codepage/Makefile
   + source/codepage/ucmacce.c
   + source/codepage/ucmacice.c
   + source/codepage/uc424.c
   + source/codepage/ucmacrom.c
   + source/codepage/ucmacgrk.c
   + source/codepage/uc037.c
   + source/codepage/uc875.c
   + source/codepage/uc1026.c
   + source/codepage/ucascii.c
   + source/codepage/ucatari.c
   + source/codepage/ucmaccyr.c
   + source/codepage/uc1006.c
   + source/codepage/ucnext.c
   + source/codepage/ucmactrk.c
   + source/codepage/uc856.c
   + source/codepage/uc500.c
     + Added missing codepages. Except for multi-byte ones,
       which I believe are not supported by the current
       Harbour infrastructure.

   * utils/hbmk/hbmk.prg
     ! Minor.
2009-02-16 11:50:35 +00:00
Viktor Szakats
cd5c391aff 2009-02-17 11:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added support to pass .hbp files on the command line.

  * contrib/hbwin/wapi_commctrl.c
  * contrib/hbwin/hbwapi.h
    ! Remaining comments changed to ANSI.
2009-02-16 10:53:16 +00:00
Pritpal Bedi
cdaf5e8f4a 2009-02-16 00:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/common.mak
  * harbour/contrib/gtwvg/Makefile
    + Added wvgdarea.prg

  * harbour/contrib/gtwvg/wvgwin.c
    + Added more functions.

  + harbour/contrib/gtwvg/wvgdarea.prg
    + Added WvgDrawingArea(), a helper class to WvgDialog().
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
  * harbour/contrib/gtwvg/wvtwin.ch
    ! Numerous class structure enhancements. More Xbase++ compatibility
      XbpDialog:drawingArea concept implemented in greater details.
      WvgToolbarButtons() now take use of WAPI_ImageList_*() functions.

  * harbour/contrib/hbwin/hbwapi.h
    ! Defines updated to respect pointers also.
  + harbour/contrib/hbwin/wapi_commctrl.c
    + Implemented WAPI ImageList_*() family of functions.

  * harbour/contrib/hbwin/Makefile
  * harbour/contrib/hbwin/common.mak
    + Added wapi_commctrl.c

  * harbour/contrib/gtwvg/tests/demowvg.prg
  * harbour/contrib/gtwvg/tests/demoxbp.prg
    ! Updated TO respect new changes in class structures.
      Xbase++ related components are more compatible now.

    ; TODO: Tooltips on Toolbar Buttons. WHILE implemeting
      XbpDialog:drawingArea concept I have lost track of this
      feature as buttons are now created via image lists and
      Toolbar window is created with CreateWindowEx() instead of
      CreateToolbarWindow().
2009-02-16 08:52:01 +00:00
Viktor Szakats
455502872b 2009-02-17 09:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbapollo/tests/hbapollo.hbp
    + Added filters.
    ; TOFIX: hbapollo test doesn't link with MSVC.

  - contrib/hbapollo/tests/hbmk.bat
  - contrib/gtwvg/tests/hbmk.bat
  - contrib/hbbtree/tests/hbmk.bat
  - contrib/examples/terminal/hbmk.bat
  - contrib/examples/terminal/hbmk_trm_appn.bat
    - Removed batch versions of make files.
      Go to the directory the source are located and
      use the .hbm files where there is one, or just pass
      the .prg name to hbmk.exe.

  * utils/hbmk/hbmk.prg
    ! Fixed handling lib/source files with double extensions.
    ! Fixed to not add empty items to lists in some occasions.
    + Added -q to suppress informational output + header.
2009-02-16 08:25:59 +00:00
Viktor Szakats
f12473a73f 2009-02-17 02:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    - Deleted hbmk*.bat references.
2009-02-16 01:22:49 +00:00
Viktor Szakats
ac54370493 2009-02-17 02:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
- bin/hbmk.bat
  - bin/hbmk_gcc.bat
  - bin/hbmk_os2.cmd
  - bin/hbmk_ow.bat
  - bin/hbmk_b32.bat
  - bin/hbmk_vc.bat
    - Removed make files obsoleted by new hbmk tool.
      Old calling convention, features, switches, envvars
      continue to work.
      WARNING: If you've called hbmk as hbmk.bat,
               you'll need to change that to simply hbmk.

  * contrib/hbodbc/odbc.c
    * Minor formatting.

  * utils/hbmk/hbmk.prg
    ! Fixed owatcom link commands. (it was also wrong
      in hbmk.bat)
    + Added -debug support for owatcom. (untested)
    + Added rsxnt/rsx32 support in an unobtrusive way.
2009-02-16 01:18:00 +00:00
Viktor Szakats
0bbab2a284 2009-02-17 00:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * utils/Makefile
  - utils/hbmake
    - Removed hbmake from repository.
2009-02-15 23:40:18 +00:00
Viktor Szakats
f18b3c3cb2 2009-02-17 00:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/hbusage.c
    + Added Vailton Renato to credit list.

  * utils/hbmk/hbmk.prg
    + Cleanups and additions to help screen.
    ! Fixed dm/dmc compiler ID.

  - config/win/dm.cf
  + config/win/dmc.cf
  * contrib/gtalleg/Makefile
  * contrib/hbwhat/Makefile
    * Digital Mars C compiler ID changed from dm to dmc.
      (they also have a D compiler f.e.)
2009-02-15 23:34:57 +00:00
Viktor Szakats
862fa6e6e5 2009-02-16 22:28 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/gtwvg/tests/gtwvg.hbp
  + contrib/hbapollo/tests/hbapollo.hbp
  + contrib/hbbtree/tests/hbbtree.hbp
  + contrib/hbbtree/tests/test.hbm
    + Added hbmk files.

  * contrib/hbbtree/tests/hbmk.bat
  * contrib/hbbtree/tests/test.prg
    * Cleaned hbct dependency.

  * contrib/hbbtree/Makefile
  * contrib/hbbtree/common.mak
  - contrib/hbbtree/hb_btree.api
  + contrib/hbbtree/hb_btree.h
  * contrib/hbbtree/hb_btree.c
  * contrib/hbbtree/tests/ctest.c
    * Renamed hb_btree.api -> hb_btree.h

  * contrib/examples/terminal/terminal.hbp
    + Added {win} filter.
2009-02-15 21:26:57 +00:00
Viktor Szakats
50d7dbd784 2009-02-16 20:54 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added support for '#' comment lines in .hbm files.
    + Added support to automatically convert slashes/backslashes
      in passed libnames and prg options.
    * Cleanup on computing Harbour location. I didn't test all
      situations here. This should fix previous versions not
      honoring explicit HB_*_INSTALL envvars.
    + Added support for POCC (untested).

   + contrib/hbct/tests/hbct.hbp
   + contrib/examples/terminal/terminal.hbp
   + contrib/examples/terminal/trm_appn.hbm
     + Added new hbmk files to show what it takes to replace
       the current system, but this time fully supporting
       all Harbour platforms.
       To use these just run hbmk, either from the path, or
       by directly pointing to it:
       ..\..\..\bin\hbmk.exe <test.prg>
       ..\..\..\bin\hbmk.exe trm_appn.hbm
       .exe can be dropped as soon as we delete out hbmk.bat file.
2009-02-15 20:14:40 +00:00
Viktor Szakats
3be140b2ec 2009-02-16 18:37 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added POCC and DMC autodetection.
    + Added screen message when no C compiler could be
      autodetected.
    ! owatcom was missing from OS/2 supported compiler 
      internal list.
2009-02-15 17:37:12 +00:00
Viktor Szakats
ad9a1de4a1 2009-02-16 17:45 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added support for -map switch to create a map file.
    + Added support for -run switch to run the created executable.
    + Script files can be passed without '@' prefix if using the
      extension '.hbm'. So 'hbmk myscript.hbm' will now also work.
    + Now possible to negate most switches using a '-' postfix:
      'hbmk -strip-'
    + Added '-notrace'/'-trace-' switches to disable tracing.
    + Some steps towards Windows resource support.
    + Added support for 'cflags=' and 'ldflags=' in .hbp files.
    + Added mini architecture/compiler filter which can be used
      in every line of an .hbp file, and also for every library
      passed on the command line:
      hbmk hello.prg -lonlyforlinux{linux}
      The filter expression can use paranthesis, '&' for AND,
      '|' for OR and '!' for not. F.e.: {linux&!owatcom}
    % Minor optimizations.

  + utils/hbmk/examples
  + utils/hbmk/examples/whoo.hbp
  + utils/hbmk/examples/c4w.hbp
  + utils/hbmk/examples/minigui.hbp
  + utils/hbmk/examples/hwgui.hbp
  + utils/hbmk/examples/fwh.hbp
    + Added few example for .hbp files to support 3rd party
      packages. These may be removed, as it's better if these
      are supplied by the packages themselves.
      NOTE: I took these from hbmake, and they are probably
            obsolete.
2009-02-15 16:46:28 +00:00
Viktor Szakats
15ba3068e3 2009-02-15 08:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added -bldflags option which tells hbmk to also
      apply user build flags (HB_USER_*FLAGS) used when
      building Harbour.
    * Minor internal cleanups.
    ! Typo in help screen.
2009-02-15 07:58:03 +00:00
Viktor Szakats
15918b234c 2009-02-15 02:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    ! Fix to previous commit.
    * Help screen made more compact.
2009-02-15 01:29:22 +00:00
Viktor Szakats
e380960de0 2009-02-15 02:22 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added support for parameters passed in files:
      'hbmk @myprogram.hbm'.
      Multiple scripts can be passed, and they can be
      combined with normal command line options.
      This makes it possible to supply quasi make files
      for programs.
    + Added support for hbmake parameter (.hbp) files. hbmk
      will scan current dir for .hbp files and process them.
      .hbp files can specify user libs, .prg options, can
      control MT, GUI, NULRDD, SHARED, DEBUG, STRIP and can
      select GT. This makes it ideal to offer automatic setup
      for lib dependent programs, f.e. an .hbp can be places
      in contrib test dirs to allow for a configuration free
      make process without the need of any helper batch/script
      files. 3rd party makers can also supply .hbp file for
      the same effect, f.e. xhgtk, hwgui support may be added
      this way, without hard-wiring knowledge into hbmk itself.
      -nohbp disables processing of these files.
    + Added support for HB_GT envvar.
    + -o support for win/msvc.
    ! Fix to GT handling and -shared to for msvc and bcc32.
    ! Fixed some envvar names.

  * utils/hbi18n/hbi18n.prg
    * Minor typo.
2009-02-15 01:21:12 +00:00
Pritpal Bedi
ebb2150ed8 2009-02-14 13:32 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ harbour/contrib/hbwin/wapi_commctrl.c
    + Added WAPI_Image*() functions.

  * harbour/contrib/hbwin/hbwapi.h
    + Added more _par and _ret defines.
    
    ; The idea is to encapsulate Harbour API for WINAPI 
      parameters and return values. Now wapi_commctrl.c 
      looks very clean and easy to understand code.
      Also I have contained all those functions which are
      either not required on normal programming level 
      OR I could not convert, with #if 0 / #endif blocks.
      But the header definitions are pulled from MSDN and 
      have been kept alongwith. This ensures that whenever
      someone will try to implement them, all info will be
      handy.

    ; Please approve the above implementation so that I 
      include these files in the build batches.
2009-02-14 21:46:19 +00:00
Viktor Szakats
fda4d02e93 2009-02-14 19:50 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added -strip/nostrip switch and implemented for GCC/GPP.
    + Added -trace switch to see executed commands.
    + Added negative switches: -std, -st, -nodebug
    + Added detection whether Harbour is installed in default system
      locations on *NIX systems. If it is, turn on shared libraries
      by default for all *NIX systems.
    + Added support for GT selection with -gt??? switch.
      (using .prg method, not .c as in hbmk bash script)
    + Added support for linux/gpp.
    ; NOTE: Some things still missing:
      - details of *NIX stuff, systems libs, switches,
        etc, etc.
      - -fullstatic not yet supported.
      - fmstat/nofmstat. It would be good to find a
        more easily manageable way to influence that.
        Current one is make system dependent and a bit hackish.
      - handling 3rd party libs. These should be supported
        by supplying proper parameter, and we can provide
        example scripts for these libs. Hard-wiring them
        into core Harbour is quite dangerous.
      - "MAIN" function override. I'd rather leave this out,
        and clear up the situation with entry procs.
      - gtsln and gtcrs support.
      - Watcom, OS/2, *NIX not tested.
      - Built-in support for our contribs. For clear
        separation of components contribs shouldn't be
        referred to in this core component.
      - Filtering foreign system libs passed on the command
        line for platforms not needing them. The goal is to
        be able to use as simple and _portable_ hbmk command
        lines as possible.
      - Support for POCC, DM.
    ; TODO:
      - Switch to portable command lines in hbmk.bat files.
        (Win9x will be supported again).
      - Remove bin/hbmk*.bat, bin/hbmk*.cmd, util/hbmake/*.
      - Cleanup on variable names in hbmk.prg.

  * tests/testid.prg
    * Minor cleanup.
2009-02-14 18:47:59 +00:00
Viktor Szakats
9440a0000b 2009-02-14 17:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    ! Fixes after testing with MSVC and MINGW both static and dynamic mode.
2009-02-14 16:35:17 +00:00
Viktor Szakats
e5713107b1 2009-02-14 14:23 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    - Added support for -o option for win/bcc32.

  - tests/hbmk_vc.bat
  - tests/hbmk_b32.bat
  + contrib/hbmysql/utils/hbmk.bat
  - contrib/hbmysql/utils/hbmk_b32.bat
  - contrib/hbmysql/utils/hbmk_vc.bat
  + contrib/hbmysql/tests/hbmk.bat
  - contrib/hbmysql/tests/hbmk_b32.bat
  - contrib/hbmysql/tests/hbmk_vc.bat
  + contrib/hbct/tests/hbmk.bat
  - contrib/hbct/tests/hbmk_b32.bat
  - contrib/hbct/tests/hbmk_vc.bat
  + contrib/hbodbc/tests/hbmk.bat
  - contrib/hbodbc/tests/hbmk_b32.bat
  - contrib/hbodbc/tests/hbmk_vc.bat
  + contrib/xhb/tests/hbmk.bat
  - contrib/xhb/tests/hbmk_b32.bat
  - contrib/xhb/tests/hbmk_vc.bat
  + contrib/hbtpathy/tests/hbmk.bat
  - contrib/hbtpathy/tests/hbmk_b32.bat
  - contrib/hbtpathy/tests/hbmk_vc.bat
  + contrib/hbmsql/tests/hbmk.bat
  - contrib/hbmsql/tests/hbmk_b32.bat
  - contrib/hbmsql/tests/hbmk_vc.bat
  + contrib/hbsqlit3/tests/hbmk.bat
  - contrib/hbsqlit3/tests/hbmk_b32.bat
  - contrib/hbsqlit3/tests/hbmk_vc.bat
  + contrib/hbole/tests/hbmk.bat
  - contrib/hbole/tests/hbmk_b32.bat
  - contrib/hbole/tests/hbmk_vc.bat
  + contrib/hbmzip/tests/hbmk.bat
  - contrib/hbmzip/tests/hbmk_b32.bat
  - contrib/hbmzip/tests/hbmk_vc.bat
  + contrib/hbapollo/tests/hbmk.bat
  - contrib/hbapollo/tests/hbmk_b32.bat
  - contrib/hbapollo/tests/hbmk_vc.bat
  + contrib/hbfbird/tests/hbmk.bat
  - contrib/hbfbird/tests/hbmk_b32.bat
  - contrib/hbfbird/tests/hbmk_vc.bat
  + contrib/hbziparc/tests/hbmk.bat
  - contrib/hbziparc/tests/hbmk_b32.bat
  - contrib/hbziparc/tests/hbmk_vc.bat
  + contrib/hbnf/tests/hbmk.bat
  - contrib/hbnf/tests/hbmk_b32.bat
  - contrib/hbnf/tests/hbmk_vc.bat
  + contrib/hbcurl/tests/hbmk.bat
  - contrib/hbcurl/tests/hbmk_b32.bat
  - contrib/hbcurl/tests/hbmk_vc.bat
  + contrib/rddsql/tests/hbmk.bat
  - contrib/rddsql/tests/hbmk_b32.bat
  - contrib/rddsql/tests/hbmk_vc.bat
  + contrib/hbhpdf/tests/hbmk.bat
  - contrib/hbhpdf/tests/hbmk_b32.bat
  - contrib/hbhpdf/tests/hbmk_vc.bat
  + contrib/rddado/tests/hbmk.bat
  - contrib/rddado/tests/hbmk_b32.bat
  - contrib/rddado/tests/hbmk_vc.bat
  + contrib/gtwvg/tests/hbmk.bat
  - contrib/gtwvg/tests/hbmk_b32.bat
  - contrib/gtwvg/tests/hbmk_vc.bat
  + contrib/hbpgsql/tests/hbmk.bat
  - contrib/hbpgsql/tests/hbmk_b32.bat
  - contrib/hbpgsql/tests/hbmk_vc.bat
  + contrib/rddads/tests/hbmk.bat
  - contrib/rddads/tests/hbmk_b32.bat
  - contrib/rddads/tests/hbmk_vc.bat
  + contrib/hbclipsm/tests/hbmk.bat
  - contrib/hbclipsm/tests/hbmk_b32.bat
  - contrib/hbclipsm/tests/hbmk_vc.bat
  + contrib/hbfimage/tests/hbmk.bat
  - contrib/hbfimage/tests/hbmk_b32.bat
  - contrib/hbfimage/tests/hbmk_vc.bat
  + contrib/hbgd/tests/hbmk.bat
  - contrib/hbgd/tests/hbmk_b32.bat
  - contrib/hbgd/tests/hbmk_vc.bat
  + contrib/hbmisc/tests/hbmk.bat
  - contrib/hbmisc/tests/hbmk_b32.bat
  - contrib/hbmisc/tests/hbmk_vc.bat
  + contrib/hbgf/tests/hbmk.bat
  - contrib/hbgf/tests/hbmk_b32.bat
  - contrib/hbgf/tests/hbmk_vc.bat
  + contrib/hbtip/tests/hbmk.bat
  - contrib/hbtip/tests/hbmk_b32.bat
  - contrib/hbtip/tests/hbmk_vc.bat
  + contrib/hbwin/tests/hbmk.bat
  - contrib/hbwin/tests/hbmk_b32.bat
  - contrib/hbwin/tests/hbmk_vc.bat
  + contrib/hbvpdf/tests/hbmk.bat
  - contrib/hbvpdf/tests/hbmk_b32.bat
  - contrib/hbvpdf/tests/hbmk_vc.bat
  + contrib/hbbtree/tests/hbmk.bat
  - contrib/hbbtree/tests/hbmk_djg.bat
  - contrib/hbbtree/tests/hbmk_b32.bat
  - contrib/hbbtree/tests/hbmk_vc.bat
  + contrib/hbcrypt/tests/hbmk.bat
  - contrib/hbcrypt/tests/hbmk_b32.bat
  - contrib/hbcrypt/tests/hbmk_vc.bat
  + contrib/hbssl/tests/hbmk.bat
  - contrib/hbssl/tests/hbmk_b32.bat
  - contrib/hbssl/tests/hbmk_vc.bat
  + contrib/hbwhat/tests/hbmk.bat
  - contrib/hbwhat/tests/hbmk_b32.bat
  - contrib/hbwhat/tests/hbmk_vc.bat
  - source/rdd/usrrdd/example/hbmk_b32.bat
  - source/rdd/usrrdd/example/hbmk_vc.bat
    % Updated for new hbmk.bat and hbmk.exe.
2009-02-14 13:26:30 +00:00
Viktor Szakats
24768861bf 2009-02-14 13:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
    + Added linux/owatcom, os2/icc support. (completely untested)
2009-02-14 12:26:53 +00:00
Viktor Szakats
f7289cf019 2009-02-14 13:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * common.mak
  * utils/Makefile
    + Added hbmk to make systems.

  * utils/hbmk/hbmk.prg
    + Update. Second pass, it's now ready for testing. I've
      only tried with BCC yet.
      Please test and if possible update internal setup
      for various platforms/compilers.
2009-02-14 12:18:24 +00:00
Przemyslaw Czerpak
3240e158a7 2009-02-14 10:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/memvars.c
    % small optimization in __MVSAVE()
2009-02-14 09:44:23 +00:00
Viktor Szakats
1c75d2b214 2009-02-13 22:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ utils/hbmk
  + utils/hbmk/hbmk.prg
  + utils/hbmk/Makefile
    + Added hbmk .prg implementation. First pass, work in progress,
      unfinished. It aims to fully replace hbmk.bat, hbmk_os2.cmd
      and possibly/eventually hbmk bash script, with similar
      functionality. Beyond that it's meant to support all
      compiler/platform combination we happen to have under /config.
2009-02-13 21:14:47 +00:00
Francesco Saverio Giudice
6e58e1d506 2009-02-13 21:57 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/bin/hbmk.bat
    * added more temp envvar cleanup
2009-02-13 20:57:55 +00:00
Viktor Szakats
4bc0533891 2009-02-13 20:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
  * tests/rddtest/make_c52.bat
  * tests/run_prg.bat
  * tests/hbmk_gnu.bat
  * tests/hbmk_vc.bat
  * tests/hbmk_b32.bat
  * tests/run_prg_all.bat
  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
  * bin/postinst.bat
  * make_vc.bat
  * make_gnu_os2.cmd
  * make_gnu.bat
  * contrib/make_b32_all.bat
  * contrib/mtpl_b32.bat
  * contrib/make_vc_all.bat
  * contrib/mtpl_vc.bat
  * contrib/examples/pp/hbmk.bat
  * contrib/examples/guestbk/hbmk.bat
  * contrib/examples/pe/hbmk.bat
  * contrib/examples/hbsqlit2/tests/hbmk.bat
  * contrib/examples/uhttpd/hbmk.bat
  * contrib/examples/dbu/hbmk.bat
  * contrib/examples/terminal/hbmk.bat
  * contrib/examples/terminal/hbmk_trm_appn.bat
  * contrib/examples/hscript/hbmk.bat
  * contrib/examples/rl/hbmk.bat
  * utils/hbdoc/hbmk.bat
  * utils/hbextern/make_c5x.bat
  * utils/hbmake/hbmk.bat
  * utils/hbtest/make_c5x.bat
  * utils/hbtest/make_xpp.bat
    * Minor formatting.
    * Cleanups to refer to simply 'hbmk'.

  ; TODO: Add support for other than bcc/msvc compiler for
          HB_USER_LIBS. Change HB_USER_LIBS settings to
          contain the raw lib list without extensions.
          This is where batch capabilities end, so this
          might need a .prg rewrite.
2009-02-13 19:24:37 +00:00
Viktor Szakats
24037047eb 2009-02-13 19:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    % Compiler detection made faster.
    ; TOFIX: MinGW requires different library names than the rest
             of compilers, so it currently won't work for hbmk.bat
             files where HB_USER_LIBS is set.

  + contrib/examples/pp/hbmk.bat
  - contrib/examples/pp/hbmk_b32.bat
  - contrib/examples/pp/hbmk_vc.bat
  + contrib/examples/guestbk/hbmk.bat
  - contrib/examples/guestbk/hbmk_b32.bat
  - contrib/examples/guestbk/hbmk_vc.bat
  + contrib/examples/pe/hbmk.bat
  - contrib/examples/pe/hbmk_b32.bat
  - contrib/examples/pe/hbmk_vc.bat
  + contrib/examples/hbsqlit2/tests/hbmk.bat
  - contrib/examples/hbsqlit2/tests/hbmk_b32.bat
  - contrib/examples/hbsqlit2/tests/hbmk_vc.bat
  + contrib/examples/uhttpd/hbmk.bat
  - contrib/examples/uhttpd/hbmk_b32.bat
  - contrib/examples/uhttpd/hbmk_vc.bat
  + contrib/examples/terminal/hbmk.bat
  - contrib/examples/terminal/hbmk_b32.bat
  - contrib/examples/terminal/hbmk_vc.bat
  + contrib/examples/terminal/hbmk_trm_appn.bat
  - contrib/examples/terminal/hbmk_b32_trm_appn.bat
  - contrib/examples/terminal/hbmk_vc_trm_appn.bat
  + contrib/examples/rl/hbmk.bat
  - contrib/examples/rl/hbmk_b32.bat
  - contrib/examples/rl/hbmk_vc.bat
  + utils/hbdoc/hbmk.bat
  - utils/hbdoc/hbmk_b32.bat
  - utils/hbdoc/hbmk_vc.bat
  + utils/hbmake/hbmk.bat
  - utils/hbmake/hbmk_b32.bat
  - utils/hbmake/hbmk_vc.bat
    % Changed to generic make files.
2009-02-13 18:02:34 +00:00
Viktor Szakats
300c43f10c two minor debug stuff removed 2009-02-13 17:47:58 +00:00
Viktor Szakats
0c530e72e1 2009-02-13 18:43 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/examples/dbu/hbmk.bat
  - contrib/examples/dbu/hbmk_b32.bat
  - contrib/examples/dbu/hbmk_vc.bat
  + contrib/examples/hscript/hbmk.bat
  - contrib/examples/hscript/hbmk_b32.bat
  - contrib/examples/hscript/hbmk_vc.bat
    % Converted compiler specific make files to generic ones.
2009-02-13 17:43:36 +00:00
Viktor Szakats
b23cd8dba5 2009-02-13 18:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Added automatic architecture detection on Windows NT and above.
    + Added automatic compiler detection on Windows NT and above.
      (mingw, msvc, bcc32 and owatcom are detected - in that order)
      The given compiler should be properly setup, with compiler
      executable in PATH or current dir.

    ; NOTE: This makes it possible to get rid of all hbmk_b32.bat and
            hbmk_vc.bat files and at the same time automatically
            add support for OpenWatcom and MinGW for all our tests,
            examples, etc. I'll replace all special hbmk_b32.bat 
            and hbmk_vc.bat files with generic local hbmk.bat files, 
            which can be used with any supported compilers.
2009-02-13 17:39:31 +00:00
Viktor Szakats
500e362615 2009-02-13 17:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Allow mixing -mt, -gui, -shared, -debug switches 
      with the input files.
      So 'hbmk_vc testapp -gui' will now work.
2009-02-13 16:35:06 +00:00
Viktor Szakats
a09a5fd92c 2009-02-13 17:26 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Added support for pure .c projects. (like pp)

  * contrib/examples/pp/hbmk_b32.bat
  * contrib/examples/pp/hbmk_vc.bat
  * contrib/examples/guestbk/hbmk_b32.bat
  * contrib/examples/guestbk/hbmk_vc.bat
  * contrib/examples/pe/hbmk_b32.bat
  * contrib/examples/pe/hbmk_vc.bat
  * contrib/examples/hbsqlit2/tests/hbmk_b32.bat
  * contrib/examples/hbsqlit2/tests/hbmk_vc.bat
  * contrib/examples/uhttpd/hbmk_b32.bat
  * contrib/examples/uhttpd/hbmk_vc.bat
  * contrib/examples/dbu/hbmk_b32.bat
  * contrib/examples/dbu/hbmk_vc.bat
  * contrib/examples/terminal/hbmk_b32.bat
  * contrib/examples/terminal/hbmk_b32_trm_appn.bat
  * contrib/examples/terminal/hbmk_vc.bat
  * contrib/examples/terminal/hbmk_vc_trm_appn.bat
  * contrib/examples/hscript/hbmk_b32.bat
  * contrib/examples/hscript/hbmk_vc.bat
  * contrib/examples/rl/hbmk_b32.bat
  * contrib/examples/rl/hbmk_vc.bat
  * utils/hbdoc/hbmk_b32.bat
  * utils/hbdoc/hbmk_vc.bat
  * utils/hbmake/hbmk_b32.bat
  * utils/hbmake/hbmk_vc.bat
    % Much simplified batch files. Actually the content of vc
      and b32 are fully identical, so you can easily create new
      flavours for GCC and OpenWatcom by simply making a copy by
      the name hbmk_gcc.bat or hbmk_ow.bat. Et voila.
    ; NOTE: As indicated, these won't work with Win9x anymore.

  * contrib/examples/pp/hbppcore.c
    + Added <ctype.h> to make it compile with recent Harbour.
2009-02-13 16:28:30 +00:00
Viktor Szakats
bf033badc4 2009-02-13 16:35 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Added detection for .PRG written in uppercase.
      (needed for DBU original sources.)
    ! Fixed to set 'echo off'

  * contrib/examples/guestbk/hbmk_b32.bat
  * contrib/examples/guestbk/hbmk_vc.bat
  * contrib/examples/dbu/hbmk_b32.bat
  * contrib/examples/dbu/hbmk_vc.bat
  * utils/hbdoc/hbmk_b32.bat
  * utils/hbdoc/hbmk_vc.bat
  * utils/hbmake/hbmk_b32.bat
  * utils/hbmake/hbmk_vc.bat
    % Switched to use hbmk instead of using local logic.

  * ChangeLog
    + Added one item to previous entry.
2009-02-13 15:36:02 +00:00
Viktor Szakats
b1a27cbed7 2009-02-13 16:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    + Added autodetection of Harbour dirs. So this batch will
      now work when called from any directories, and even if
      '/bin' dir is added to the PATH. IOW, it's not anymore
      necessary to supply these envvars in normal cases:
      HB_INSTALL_PREFIX, HB_BIN_INSTALL, HB_LIB_INSTALL,
      HB_INC_INSTALL. If someone moves this batch file away
      from its original place, these envvars can still be used
      to point to the Harbour tree, but support for this may
      be removed in the future to keep things simple.
    + Added support for multiple .prg files on the command line.
      The first will be the main program.
    + Added support to supply .c files on the command line.
      [these features need Windows NT or upper]
    ; TODO: Test OpenWatcom. I had to remove -fo and FILE
            directives from script, if this was required we
            need to find a solution to support multiple
            input files.

  * bin/hbmk_b32.bat
  * bin/hbmk_vc.bat
    + Now these files can be called from any directories and even
      when '/bin' dir is added to the PATH.
    + Added support for unlimited number of command line parameters.
      [these features need Windows NT or upper]
    * Changed to not interfere with 'echo off' setting of the
      caller.

  ; NOTE: After this change it's possible to get rid of all
          non-customized version of hbmk_b32.bat/hbmk_vc.bat
          files in the source tree. I plan to remove these in
          the near future. The rest can be simplified in most
          places. This will only cause some inconvenience
          for developers still using Win95/98/ME.

  + bin/hbmk_gcc.bat
  + bin/hbmk_ow.bat
    + Added make batch files to MingW/GCC and OpenWatcom.

  * contrib/hbwin/win_tprn.prg
    ! Fixed recent typo.

  * include/hbstdgen.ch
    - Removed #undef __FILE__. I understand this isn't needed anymore.
2009-02-13 15:12:42 +00:00
Viktor Szakats
15944de000 2009-02-13 13:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
    + Added Windows 7 and Windows Server 2008 R2 detection.

  * source/rtl/dateshb.c
    * Minor formatting.
2009-02-13 12:08:09 +00:00
Viktor Szakats
e7ca29fad0 2009-02-13 12:09 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/examples/terminal/hbmk_b32.bat
  + contrib/examples/terminal/hbmk_b32_trm_appn.bat
  + contrib/examples/terminal/hbmk_vc.bat
  + contrib/examples/terminal/hbmk_vc_trm_appn.bat
    + Added build batches, one generic for client and server,
      and one special for trm_appn.
    ; NOTE: Turn off Unicode when building these apps.
2009-02-13 11:10:49 +00:00
Maurilio Longo
a05c032678 2009-02-13 11:15 UTC+0100 Maurilio Longo (maurilio.longo@libero.it)
* harbour/include/hbthread.h
  * harbour/source/vm/thread.c
    ! fixed a bug on OS/2 MT implementation adding a new function,
      _hb_cond_timed_wait() because when a semaphore gets posted it has
      to be reset, otherwise it does not stop new threads entering it in a wait.
2009-02-13 10:18:28 +00:00
Przemyslaw Czerpak
bdc6e81793 2009-02-13 11:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/source/pp/hbpp.c
  * harbour/source/pp/ppcore.c
  * harbour/source/compiler/hbmain.c
    + added support for dynamically calculated #define results
    ! removed old code which was adding __FILE__ #define constant
      It was not working correctly like in other compilers ignoring
      #include
    + added __FILE__ and __LINE__ #define directives using dynamically
      calculated results - now it works as expected respecting #include
      directives and the implementation is local to PP without any hacks
      in core compiler code.

  * harbour/contrib/hbct/files.c
    * added support for optional milliseconds part in HB_FSETDATETIME()/
      HB_FGETDATETIME().

  * harbour/source/rtl/philes.c
    ! minor fix in return value
2009-02-13 10:04:16 +00:00
Viktor Szakats
b8bd30f542 2009-02-13 10:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
  * contrib/examples/terminal/trm_client.prg
    + Added HB_EXTERN_START/END.

  * include/hbdefs.h
    + Added some comments from the original mail from Przemek.
2009-02-13 09:53:13 +00:00
Pritpal Bedi
eab18c603b 2009-02-13 00:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgcore.c
    ! Fixed hb_wvt_Get|SetStringAttrib()s to respect return errcode.

  + harbour/contrib/examples/terminal
  + harbour/contrib/examples/terminal/terminal.prg
  + harbour/contrib/examples/terminal/terminal.ch
  + harbour/contrib/examples/terminal/trm_server.prg
  + harbour/contrib/examples/terminal/trm_client.prg
  + harbour/contrib/examples/terminal/trm_appn.prg
  + harbour/contrib/examples/terminal/reame.txt
    + Added components for Harbour Terminal Protocol

    Welcome in the world of Harbour Terminal Protocol
    =================================================
    
    Harbour Terminal Protocol is build on three components:
    
    1) Terminal Server
    2) Terminal Client
    3) The Harbour Application
    
    Terminal Server
    ===============
       Source    => trm_server.prg
       Link      => GTWVG
       Run       => trm_server.exe 2011
       Parameter => <TCP/IP Port number - [D] 8085 ]
       Mode      => MT ( Multi Threaded )
    
       Terminal Server will reside on the same machine or network ( as of now )
       where Harbour Application resides. Harbour Application must be able
       to be run by ShellExecute() WINAPI function issued by the Terminal Server.
    
    
    Terminal Client
    ===============
       Source    => trm_client.prg
       Link      => GTWVG
       Run       => trm_client.exe  <IP - 127.0.0.1 | vouch.dynalias.com>
                                    <Port where Terminal Server is Listening - 2011>
                                    <Harbour Application - c:\harbour\contrib\examples\terminal\trm_appn.exe>
                                    [Parameters - Norammly Supplied to Appln - Separated by SPACE ]
                                    [InitDirectory - Harbour Application's Startup Folder ]
       Mode      => ST ( Single Threaded )
    
       Terminal Client can be distributed anywhere there is ACCESS TO designated TCP/IP port,
       be it a network clinet or any computer having internet avalable.
       Parameters supplied TO Harbour Client can be on command line or as an .ini file.
       .Ini file may contain these entries:
    
          ServerIP      =  127.0.0.1 | vouch.dynalias.com
          ServerPort    =  2011
          Application   =  c:\harbour\contrib\examples\terminal\trm_appn.exe
          Parameters    =  any number of parameters separated by a space
          InitDirectory =  Complete Folder path from where Harbour Appln will be invoked.
    
       IF parameters are supplied as .ini file, then .ini filename ( without path ) will be the
       only parameter - note - only one parameter passed on the command line.
    
    
    Harbour Application
    ===================
       Source(s)  => trm_appn.prg | Your program sources +
                     terminal.prg +
                     terminal.ch
       Link       => GTWVG
       Run        => No
       Mode       => ST ( Single Thread )
    
       Main() FUNCTION in Harbour Application will have TO be modified TO accept
       one additional parameter <cServerInfo> at the END of the usual parameters
       your application is accepting as ususal. And make sure that you send the same
       number of parameter either on the command line or through .ini file.
       <cServerInfo> parameter is supplied by Harbour Terminal Server.
    
       At just start of the Harbour Application, immediately after variable definitions
       in main() add these lines:
    
       FUNCTION Main( [p1] [, p2] [, p3], cServerInfo )
          LOCAL x, y
    
          // Required it initialize the GTWVG window
          SetColor( 'N/W,W/B,W+/N' )
          CLS
          ? ' '
    
          #ifdef __REMOTE__
             // cServerInfo will be supplied by the Remote Server
             //
             RmtSvrSetInfo( cServerInfo )
    
             IF ( nServerPort := RmtSvrSetInfo( 1 ) ) <> NIL .and. nServerPort > 0
                IF !RmtSvrInitialize( NTRIM( nServerPort ), 60/*nTimeoutClient*/, 0.5 /*nTimeRefresh*/ )
                   Quit
                ENDIF
             ENDIF
          #endif
    
          ...
          ...
    
          RETURN
    
    
       Must remember to issue - ANNOUNCE HB_NOSTARTUPWINDOW - somewhere in your sources
       Please note that we do not want to show up the Harbour console on the server so
       HB_NOSTARTUPWINDOW symbol must be defined.
    
       And this is the only requirement for your appln to be NET ready.
    
    
    Technical Overview
    ==================
       Client connects to Server.
       Server looks for a free port - 45000+.
       Server invokes Harbour Application with client supplied parameters + <cSerrverInfo==45000+>.
       Harbour Application itself behaves as server on start listening on designated port.
       Server informs back to Client about this port where Harbour Application is listening.
       Client connects to Harbour Application on designated port.
       If connection is successful, Server closes the connection from Client and Application.
       Client and Application then have the direct communication.
       Client transmits the keystrokes and Application reacts TO those events as IF supplied via keyboard.
       Application transmits the screen buffer back TO client IF there have been any changes.
       Application also transmits special commands, call them 'Remote Procedure Calls'.
       Client responds TO received buffer according TO instruction it contains.
       Client retrieves buffer per command basis.
       Events are not serialized.
    
    
    The Bottom Line
    ===============
       The protocol above works as expected but is not as sophisticated as it should be.
       GTNET as Przemek has been talking about will be the perfect solution though this
       can be the basis FOR future enhancements. A lot can be improved, i.e., remote
       printing, etc., which I hope you Gurus can implement in no times.
    
       It is my humble contribution TO the Harbour world.
    
    
    Regards
    Pritpal Bedi <pritpal@vouchcac.com>
    a student of software analysis & design
2009-02-13 08:39:30 +00:00
Viktor Szakats
f6dc1367ad 2009-02-13 09:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/rddads/rddads.h
    ! Added missing extern directive.

  * contrib/hbwin/common.mak
  * contrib/hbwin/Makefile
    + Added hbwapi.h to installed headers.
2009-02-13 08:26:11 +00:00
Pritpal Bedi
3f3a49eb8f 2009-02-12 11:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
- harbour/include/hbwapi.h
  + harbour/contrib/hbwin/hbwapi.h
2009-02-12 19:45:10 +00:00
Pritpal Bedi
db9e9390e8 2009-02-12 11:23 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ harbour/include/hbwapi.h

    As this header will be required fot many libraries in contrib
    I have placed it in core folder. It will pave me the way to 
    isolated WINAPI wrappers as discussed earlier. Before I begin to
    shift functions in harbour/contrib/hbwin please feel free to
    include in this header whatever you feel will be required
    for such transition.
2009-02-12 19:27:56 +00:00
Viktor Szakats
86e84ba537 2009-02-12 12:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/lang/msgrukoi.c
  * source/lang/msgruwin.c
  * source/lang/msguakoi.c
  * source/lang/msguawin.c
  * source/lang/msgru866.c
  * source/lang/msgua866.c
    ! Fixed date format to be DD.MM.YYYY.
2009-02-12 11:48:50 +00:00
Viktor Szakats
bc6e1a9b3e 2009-02-12 10:57 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
  * include/hbapi.h
  * source/common/hbprintf.c
  * source/common/hbstr.c
    + Temporarily enabled local hb_snprintf() implementation.
    ; Please test. If it's okay, we can enable it permanently.

  * contrib/rddsql/sddmy/make_b32.bat
  * contrib/rddsql/sddmy/make_vc.bat
  * contrib/rddsql/sddpg/make_b32.bat
  * contrib/rddsql/sddpg/make_vc.bat
  * contrib/rddsql/sddfb/make_b32.bat
  * contrib/rddsql/sddfb/make_vc.bat
    ! Fixed typos for VC flavours.
    % Removed unnecessary INCLUDE path.

  * source/vm/maindllp.c
    ! Updated dll name for Borland and MSVC.

  * source/lang/msguawin.c
  * source/lang/msgua866.c
  * source/lang/msguakoi.c
    ! Fixed corrupted equal char in code.
    ! Fixed date format.
    ! Fixed CP IDs and descriptions in UA866 and UAKOI.
    ! Restored 'CA-Cl*pper' in comment.
    ; Please verify me.
2009-02-12 10:03:45 +00:00
Petr Chornyj
b48e515893 2009-02-12 11:43 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* /source/lang/msguawin.c
  * /source/lang/msgua866.c
  * /source/lang/msguakoi.c
    * Minor changes.
2009-02-12 09:46:17 +00:00
Petr Chornyj
c70e787f15 2009-02-12 01:49 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* /source/lang/msguawin.c
  * /source/lang/msgua866.c
  * /source/lang/msguakoi.c
    * Corrected bad Ukrainian localization
2009-02-12 09:13:22 +00:00