Commit Graph

1717 Commits

Author SHA1 Message Date
Viktor Szakats
e51ed4c072 2008-07-02 11:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
     ! Fixed DLL creation for MSVC (and maybe compilers, too).
       Thanks to Marek Paliwoda for the hint.

   * contrib/hbtpathy/tpos2.c
     ! Blind attempt to fix OS/2 compile error.
2008-07-02 09:23:45 +00:00
Viktor Szakats
3635cff5ce 2008-07-01 18:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* harbour-ce-spec
   * harbour-w32-spec
   * include/hbver.h
   * harbour.spec
     * RC1 -> RC2

   * contrib/hbziparch/hbziparc.c
     ! Fixed potential GPF in HBZIPCLEANUP().
     ! HBZIPCLEANUP() changed to be a HB_FUNC() (from HB_EXIT_FUNC()), 
       so now it has to be called manually, but at least it's 
       now doing something useful. (HB_EXIT_FUNC() in .c code 
       never gets executed by itself).
2008-07-01 16:32:21 +00:00
Viktor Szakats
666179e324 2008-06-30 14:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbextern.ch
     + New inet functions added.

   * source/rtl/hbinet.c
     ! Blind fix for Linux compile error.
2008-06-30 12:48:06 +00:00
Viktor Szakats
b1118f3481 2008-06-30 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
   * source/rtl/set.c
   * source/vm/fm.c
     ! Fixed _SET_HBOUTLOG, _SET_HBOUTLOGINFO handling in fm.c.
       hb_setget*() functions cannot be used here as the set 
       system is deinited at this point. So local buffers are 
       holding the values.
2008-06-30 09:28:58 +00:00
Viktor Szakats
e7f78f1985 2008-06-28 08:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
   * include/hbset.h
   * source/rtl/set.c
   * source/vm/fm.c
   * source/vm/extrap.c
     + Added: Set( _SET_HBOUTLOGINFO[, <cValue>] ) -> <cOldValue>
       Default value: ""
       This user defined text will be included in each hb_out.log 
       messages. This way it's possible to include custom information 
       in these entries to help identify and locate them.
     ! Fixed a few string not marked with HB_I_() translation 
       marker.
2008-06-28 06:59:37 +00:00
Viktor Szakats
20b5345725 2008-06-27 14:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/Makefile
     * After this change, HB_CONTRIBLIBS will _override_ the 
       default list of contribs, rather than adding them to 
       the default list (which BTW contains everything since 
       this week, so there's no much point anyway, besides if 
       someone was hosting local contribs in the Harbour contrib 
       dir).

   * include/hbver.h
     - Removed recenly added HB_VERSION 0x010000.
     * Instead I've changed both .prg level and .c level __HARBOUR__ 
       to contain this more granular (full) version number.
     ; NOTE: If someone is relying on the value of __HARBOUR__ in 
             .prg code, the values should be multiplied by 256.
2008-06-27 12:28:57 +00:00
Viktor Szakats
0e53a69d71 2008-06-27 13:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbstdgen.ch
   * include/hbver.h
     * Cleanups to previous change.
     ! Fixed HB_STD_CH_ to not be #defined in .prgs by default.
2008-06-27 11:23:39 +00:00
Viktor Szakats
53c7ccc18b 2008-06-27 12:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbstdgen.ch
   * include/hbver.h
   * include/hbdefs.h
   * source/pp/pplib.c
   * source/pp/ppcore.c
   * source/pp/hbpp.c
   * source/common/hbver.c
   * source/common/hbverdsp.c
   * contrib/hbsqlit3/hbsqlit3.c
   * contrib/examples/pp/hbppdef.h
     * Changed .c level __HARBOUR__ to have the same value 
       as the existing .prg level one.
     * PP now gets the __HARBOUR__ define directly from the .c 
       level instead of generating it locally.
     ; QUESTION: Should or shouldn't we change __HARBOUR__ 
       to contain revision number too? (0x0100 -> 0x01000)
       This would allow for a greater level of development 
       opportunities between minor revisions, more "agile" 
       development.

   * include/hbpp.h
   * source/pp/ppcore.c
     - Two __XHARBOUR__ guards removed.
2008-06-27 10:27:35 +00:00
Przemyslaw Czerpak
6b28dbb75b 2008-06-25 16:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbver.h
    * removed unnecessary EOL inside comment

  * harbour/contrib/hbodbc/odbc.c
    ! use valid integer type instead of explicit casting in function call.
      Such casting is vary dangerous and may cause unpredictible results
      when integer value has different binary size

  * harbour/contrib/hbtpathy/Makefile
  * harbour/contrib/hbtpathy/common.mak
  * harbour/contrib/hbtpathy/telepath.ch
  * harbour/contrib/hbtpathy/tplinux.c
  * harbour/contrib/hbtpathy/tpwin32.c
  * harbour/contrib/hbtpathy/tpos2.c
  * harbour/contrib/hbtpathy/telepath.prg
  * harbour/contrib/hbtpathy/readme.txt
  * harbour/contrib/hbtpathy/tests/testtp.prg
    * converted EOL style to native
    * set valid SVN attributes

  * harbour/contrib/hbapollo/Makefile
    * disabled non W32 builds, SDE exists only for MS-Windows

  * harbour/contrib/hbziparch/Makefile
    ! fixed C flag setting for Linux builds

  * harbour/source/pp/ppcore.c
    * formatting

  * harbour/source/rtl/valtoexp.prg
    ! fixed empty date conversion

  * harbour/hbgtmk.sh
  * harbour/make_xmingwce.sh
  * harbour/make_deb.sh
  * harbour/make_rpmw32.sh
  * harbour/make_gcc.sh
  * harbour/make_rpm.sh
  * harbour/make_xmingw.sh
  * harbour/make_tgz.sh
  * harbour/make_rpmce.sh
  * harbour/contrib/hbmzip/make_gcc.sh
  * harbour/contrib/hbsqlit3/make_gcc.sh
  * harbour/contrib/make_gcc_all.sh
  * harbour/contrib/hbziparch/make_gcc.sh
  * harbour/contrib/hbnf/make_gcc.sh
  * harbour/contrib/hbhpdf/tests/files/cp932.txt
  * harbour/contrib/hbhpdf/make_gcc.sh
  * harbour/contrib/rddado/make_gcc.sh
  * harbour/contrib/gtwvg/make_gcc.sh
  * harbour/contrib/hbpgsql/make_gcc.sh
  * harbour/contrib/rddads/make_gcc.sh
  * harbour/contrib/hbclipsm/make_gcc.sh
  * harbour/contrib/mtpl_gcc.sh
  * harbour/contrib/hbfimage/make_gcc.sh
  * harbour/contrib/hbgd/tests/bld.sh
  * harbour/contrib/hbgd/make_gcc.sh
  * harbour/contrib/hbmisc/make_gcc.sh
  * harbour/contrib/hbtip/make_gcc.sh
  * harbour/contrib/hbbmcdx/make_gcc.sh
  * harbour/contrib/hbvpdf/make_gcc.sh
  * harbour/contrib/hbbtree/make_gcc.sh
    * set valid SVN EOL attribute
2008-06-25 14:49:22 +00:00
Viktor Szakats
50bd195fab 2008-06-23 20:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbextern.ch
     * HB_GETREADVAR() added.
2008-06-23 18:07:36 +00:00
Viktor Szakats
e1a143f6e9 2008-06-22 22:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbapierr.h
   * source/rtl/errorapi.c
   * source/rdd/hbsix/sxtable.c
   * contrib/hbct/charonly.c
   * contrib/hbct/charevod.c
   * contrib/hbct/charone.c
   * contrib/hbct/pos1.c
   * contrib/hbct/ascpos.c
   * contrib/hbct/token1.c
   * contrib/hbct/atnum.c
   * contrib/hbct/count.c
   * contrib/hbct/replace.c
   * contrib/hbct/ctpad.c
   * contrib/hbct/justify.c
   * contrib/hbct/remove.c
   * contrib/xhb/hbxml.c
   * contrib/hbmzip/hbmzip.c
   * contrib/hbtip/utils.c
     * Changed remaining &hb_errFuncName -> HB_ERR_FUNCNAME
     + Added compatibility comments.
     ! Fixed hb_errFuncName value (changed to 1 to be the 
       same as HB_ERR_FUNCNAME).
     ; NOTE: 3rd party developers are encouraged to use 
             HB_ERR_FUNCNAME instead of hb_errFuncName. 
             There is no change in functionality.
       [TOMERGE 1.0.0RC1]
2008-06-22 20:55:06 +00:00
Viktor Szakats
314c5e850d 2008-06-22 21:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
     + Added HB_OS_WIN_64 macro to replace _WIN64.
       [TOMERGE 1.0.0RC1]

   * contrib/hbwhat32/_winsys.c
   * contrib/hbwhat32/_winsock.c
   * contrib/hbwhat32/_wincall.c
   * contrib/gtwvg/wvtutils.c
     ! Fixed WIN64 compile errors.
       [TOMERGE 1.0.0RC1]

   * contrib/hbw32/dllcall.c
   * contrib/hbw32/w32_ole.c
     * _WIN64 -> HB_OS_WIN_64
       [TOMERGE 1.0.0RC1]
2008-06-22 19:07:01 +00:00
Viktor Szakats
b2b7c6570a 2008-06-20 14:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* ChangeLog
     + Marked changes merged with RC1.

   * include/hbgtinfo.ch
     ! Comment typo.
       [TOMERGE RC1]

   * contrib/hbtpathy/tplinux.c
   * contrib/hbtpathy/telepath.prg
     ! Moved some commented "inline" stuff to C level.
       [TOMERGE RC1]
2008-06-20 12:53:51 +00:00
Viktor Szakats
1bb5fadeaf 2008-06-16 11:04 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
     ! Fix to previous commit.
2008-06-16 09:05:52 +00:00
Viktor Szakats
9f76180566 2008-06-16 01:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
   * include/hbset.h
   * source/rtl/set.c
   * source/vm/fm.c
   * source/vm/extrap.c
     + Added: Set( _SET_HBOUTLOG[, <cFileName>] ) -> <cOldFileName>
       Default value: "hb_out.log"
       This replaces hb_fm.log and hb_ex.log, and makes it possible 
       for the applications to control the filename where these 
       internal Harbour outputs are written to.

   * source/rtl/gtwvt/gtwvt.c
     % Minor redundancy removed.
2008-06-15 23:48:53 +00:00
Viktor Szakats
e708033e0e 2008-06-13 19:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.h
   * source/rtl/gtwvt/gtwvt.c
   * tests/wvtext.prg
     + Added hb_gtInfo( HB_GTI_SELECTCOPY, <cMenuText> )
       to set the menu text ("Mark and Copy" on startup).
       cMenuText mustn't be zero length. Setting the menu text 
       also enables select&copy automatically. The call 
       will return the previously set menu text. To get 
       the menu text without setting a new one, use: 
       hb_gtInfo( HB_GTI_SELECTCOPY, "" )
       This is good if someone wants to adapt the menu 
       text to the OS's or app's language.

   * doc/en/hb_apiit.txt
   * include/hbapi.h
   * include/hbapiitm.h
   * source/rtl/gtwin/gtwin.c
   * source/rtl/hbgtcore.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtwvt/gtwvt.c
   * source/vm/macro.c
   * source/vm/debug.c
   * source/vm/itemapi.c
   * source/vm/hvm.c
   * source/vm/arrays.c
   * source/vm/extend.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/sdf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/delim1.c
   * source/rdd/dbf1.c
   * source/rdd/dbffpt/dbffpt1.c
   * contrib/hbw32/w32_ole.c
   * contrib/gtwvg/gtwvg.c
   * contrib/rddads/ads1.c
   * contrib/hbmisc/spd.c
   * contrib/hbbmcdx/bmdbfcdx1.c
   * contrib/examples/rdddbt/dbfdbt1.c
     * I did a mistake in 1999 by giving the name hb_itemPutCPtr() 
       to the function which would have to be correctly named 
       hb_itemPutCLPtr() (notice the 'L' for 'length').
       So, now this was renamed to hb_itemPutCLPtr(), and stub was 
       added with the old name, and Harbour code was changed to use 
       the new one. I've also added hb_itemPutCPtr2() as a version 
       not requiring len parameter, the proper name would be hb_itemPutCPtr() 
       for this, but we cannot use without breakin compatiblity.

       IMPORTANT: I'd strongly suggest all 3rd parties to update 
       their code to use the call hb_itemPutCLPtr() instead of 
       hb_itemPutCLPtr().

       The final goal would be to have hb_itemPutCPtr() with two 
       parameters instead of the hakish looking hb_itemPutCPtr2().

       I'd welcome any opinions how to reach this goal. I didn't want to 
       break compatiblity with 3rd parties this time, but IMO we may do 
       it in 1.1, or even before 1.0.

     ! The above also fixes the (potential) problem when hb_retc_buffer()'s 
       szText parameter was evaluated twice if HB_API_MACROS was #defined.
2008-06-13 17:26:48 +00:00
Pritpal Bedi
8520cab552 2008-06-13 10:56 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtfunc.c
   * harbour/include/hbapigt.h
     + Added Palette implementation by color index.
       Hb_GtInfo( HB_GTI_PALETTE, nIndex[, nNewRGB ] ) -> nOldRGB
   
   * harbour/tests/wvtext.prg
     * Updated to demonstrate above functionality.
2008-06-12 18:01:04 +00:00
Pritpal Bedi
8d4e65a1a0 2008-06-13 09:12 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/include/hbgtinfo.ch
     + Added functionality to change Palette. 
       Hb_GtInfo( HB_GTI_PALETTE, aNewPalette ) -> aOldPalette
       <aNewPalette> must be of 16 elements containg RGB colors.

   * harbour/tests/wvtext.prg
     * Updated to demonstrate palette info.
     ; TODO : Hb_GtInfo( HB_GTI_PALETTEBYINDEX, nIndex[, nNewRGB ] ) -> nOldRGB
       Needs deeper modifications in GT core. Needs additional parameter 
       in core setup. Will commit today.
2008-06-12 16:21:57 +00:00
Pritpal Bedi
c04afe2af3 2008-06-11 12:30 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtwvt/gtwvt.h
   * harbour/include/hbgtinfo.ch
     + Added HB_GTI_CLOSABLE
       Hb_GtInfo( HB_GTI_CLOSABLE, TRUE|FALSE ) -> lPrevState
       TRUE enables the "X" button, FALSE disbles it.
     + Added functionality to respond to WM_CLOSE message. 
       If application returns 1 then application is exited.
    
   * harbour/tests/wvtext.prg
     + Added functionality to demonstrate above feature.
2008-06-11 19:35:37 +00:00
Viktor Szakats
0a4b1fcdb6 2008-06-11 19:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbgtinfo.ch
   * source/rtl/gtwvt/gtwvt.c
     ! Fixed stupid typo from me. This is why maximized size 
       didn't want to get right.
     ! Fixed to not reposition non-maximized windows while 
       resizing them and their top/left corner was off screen.
     ! Fixed to not allow font screen below a certain limit 
       (3x4 pixels). This fixes some of the more obvious cases 
       when window gets trashed.
     ! Fixed to not resize the windows when toggling the 
       resizing feature using HB_GTI_RESIZABLE.
     + Added to disable maximize icon after maximizing and 
       reenable it on the first resize attempt.
     - Removed TIMER related stuff as it's very difficult 
       (or impossible) to support on other platforms.
       Timer support could be added to hbw32.lib, though.
     * Some cleanups.
     ; Remaining TOFIXes:
       - Window trashing when settling on a size which 
         cannot be properly filled with the console. Try with 
         vertically or horizontally narrow window shapes.
       - Mark&Copy is still trashing when swapping directions 
         with the selection compared to the starting position.

   * tests/wvtext.prg
     ! Added missing SVN keywords properties.
     ! Added missing SVN eol property.
     ! Fixed to use the default font to have a more common 
       ground for testing.
     + Added markers to the corners to easily spot chopped 
       borders.

   * contrib/xhb/Makefile
   * contrib/xhb/common.mak
     - Removed some xhb specific non-standard headers from 
       the list of those getting installed to the Harbour central 
       include dir. Only hbcompat.ch, hbcompat.h and xhb.ch 
       goes now to the official include dir. After this change 
       has been merged with RC1, xhb.lib may be included in 
       the default build.
       [TOMERGE RC1]

   * contrib/hbw32/tests/testdll.prg
     + Added some more DLL calling samples.
2008-06-11 17:39:35 +00:00
Przemyslaw Czerpak
3f9251e4ae 2008-06-11 18:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdate.h
  * harbour/source/rtl/dates.c
    + added hb_dateUnformat() - code by David G. Holm extracted from CTOD()
    * updated copyright note to point original author of hb_dateFormat()
      and hb_dateUnformat()

  * harbour/source/rtl/dateshb.c
    * use hb_dateUnformat() in CTOD()
2008-06-11 16:23:02 +00:00
Przemyslaw Czerpak
8d0a5f3542 2008-06-11 04:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
    * added optimization for DTOS( <date_constant> ), f.e.:
      static s := DTOS( 0d20080611 )
2008-06-11 02:10:29 +00:00
Przemyslaw Czerpak
3b543d3039 2008-06-11 01:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbwince.c
    ! fixed typo in GetDriveTypeA()
    * temporary disabled GetDriveTypeW() call because not all CRTLs for
      WinCE support it

  * harbour/include/hbexpra.c
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
  * harbour/source/compiler/harbour.y
  * harbour/source/compiler/harbour.yyc
    * added full expression list stripping - it enables optimizations
      in few additional places
    ! fixed code to always refresh expression address after direct or
      indirect reduction - seems that we have some memory leaks and
      possible GPFs not located so far
   Please make tests with your code.
2008-06-10 23:17:39 +00:00
Viktor Szakats
755f8f039c 2008-06-09 21:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed windows size after maximize.
     * Temporary restored "instant resize" on mouse move.

   + contrib/hbw32/dllcall.c
   * contrib/hbw32/common.mak
   * contrib/hbw32/Makefile
     + Added DLL interface. From xhb. Work of several authors.
     ; I've applied some modifications made by Alex Strickland.
     ; The API calls below are implemented:
       XBase++ compatible:
       - DLLLoad()
       - DLLUnload()
       - DLLPrepareCall()
       - DLLExecuteCall()
       - DLLCall()
       Proprietary:
       - LoadLibrary() - Same as DLLLoad()
       - FreeLibrary() - Same as DLLUnload()
       - GetProcAddress()
       - CallDLL()
       - CallDLLBool()
       - GetLastError()
       - SetLastError()
     ! Fixed GetProcAddress() passed ordinals to always be 
       WORDs casted to DWORD.
     ! Fixed a few possible buffer overruns.
     * Cleanup, format, etc.
     ; Compile with HB_NO_ASM if you use BCC55 and don't have 
       TASM32 (or upgrade to free BCC58 which contains TASM32).
     ; "C struct" support was stripped (but that seems only a 
       small portion.
     ; Please test. I doesn't work me for simple test code, 
       I have no idea why.
     ; TOFIX: Replace MessageBox() calls with RTEs.
     ; TOFIX: Solve any name clashing problems and/or use namespace 
              for the proprietary interface.

   * include/hbapierr.h
     + HB_ERR_FUNCNAME() added to replace &hb_errFuncName
2008-06-09 19:21:46 +00:00
Viktor Szakats
a5ac639119 2008-06-09 07:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* tests/wvtext.prg
   * include/hbgtinfo.ch
   * include/hbgtcore.h
   * source/rtl/hbgtcore.c
   * source/rtl/gtwvt/gtwvt.c
     * Changed the way notifications work. It's now platform 
       neutral and more simple.
       hb_gtInfo( HB_GTI_NOTIFIERBLOCK, {|nEvent, ...| myhandler( nEvent, mycustomdata, ... ) })
       may be used to set it. Use NIL to disable it. The purpose of 
       this is to be able to get notifications from GT related
       user interactions not initiated inside the apps UI world.
       F.e. to save screen size after the user has changed it, 
       or to have a last chance to commit tables, set flags, etc 
       when user (or OS) closed the app window.
     + Added basic support to handle return values from notifier.
     ! Added missing SVN header to wvtext.prg
     ; TOFIX: New TIMER stuff in GTWVT should be replace by 
              a platform neutral solution, which is probably MT.
              (see also "background events")
     ; TOFIX: Is there a way to force "non-full content" resize 
              on the window level? This way we could avoid 
              current trashing while resizing.
2008-06-09 06:07:59 +00:00
Viktor Szakats
c6e89d45a8 2008-06-09 06:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* tests/wvtext.prg
   * include/hbgtinfo.ch
   * include/hbgtcore.h
   * source/rtl/gtwvt/gtwvt.h
   * source/rtl/gtwvt/gtwvt.c
     ! Fixed a few warnings.
     ! Fixed bad selection behaviour when starting the 
       selection (to not let it "stick" to the upper left corned).
     - Removed predefined symbols as a way to control GT 
       behaviour.
     * HB_GTI_MARKCOPY -> HB_GTI_SELECTCOPY to use more generic 
       terminology.
     * HB_GTI_RESIZEABLE -> HB_GTI_RESIZABLE
2008-06-09 04:39:36 +00:00
Pritpal Bedi
6c50fbe3a3 2008-06-08 16:03 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com
* harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtwvt/gtwvt.h
   * harbour/source/rtl/hbgtcore.c
   * harbour/include/hbgtinfo.ch
     + HB_GTI_MARKCOPY
       Added feature to toggle "Mark and Copy" Sysmenu option with:
          Hb_GtInfo( HB_GTI_MARKCOPY, TRUE|FALSE ) -> lPrevState

       Removed necessity to have Hb_NoCopyConsole() to not include it.
       Now appln always HAS this SysMenu option. 

     + HB_GTI_RESIZEABLE
       Added feature to toggle resizing of appln window as:
          Hb_GtInfo( HB_GTI_RESIZEABLE, TRUE|FALSE ) -> lPrevState

       Function Hb_NoResizeableWindow() still hold good for startup.
       You always can activate/deactivate this feature from within appln.

       Few more optimizations while resizing, still work in progress.  
       
   * harbour/tests/wvtext.prg
     * Updated to demonstrate above functionality.
2008-06-08 23:14:43 +00:00
Viktor Szakats
7d952c4d8e 2008-06-08 15:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbgtinfo.ch
     + Added comment to compatibility #defines, to not use 
       them, since they deprecated.
       [TOMERGE RC1]
     * HB_GTI_CB_* -> HB_GTE_* (stands for GT Event). Removed 
       plain GTI_ versions, GTI_* range is frozen, pls don't 
       and new codes to them and especially don't use them in 
       core code.

   * include/hbgfx.ch
   * include/hbgfxdef.ch
   * contrib/gtwvg/gtwvg.c
   * source/rtl/gtxwc/gtxwc.c
   * source/rtl/gtwvt/gtwvt.c
     * GFX_* constants renamed to HB_GFX_*. The old ones are 
       still working but it's recommended to update to use HB_GFX_*.
       #define HB_GT_NO_XHB to disable the compatibility #defines, 
       if it collides with your code or you want to test after 
       transition.
     ; [TOMERGE RC1]

   * source/rtl/dirdrive.c
     ! Guarded C53 undoc functions with HB_C52_UNDOC, which is enabled 
       so it won't make a difference in default builds.
     ; [TOMERGE RC1]

   * source/rtl/filesys.c
     ! Fixed hb_fsIsDrv() to use GetDriveTypeA() API, to avoid some 
       win32 system MessageBox() to be shown when certain types of 
       drives (f.e. USB reader devices) are queried.
     ; Please test.
     ; TOFIX: hb_fsChDrv() suffers from the same problem.
     ; [TOMERGE RC1 - after testing]

   * contrib/hbcurl/hbcurl.c
   * contrib/rddads/adsfunc.c
   * contrib/rddads/ads1.c
     % Optimized out explicit function name strings in RTE calls.
     ! The above is actually a fix (I hope) for the one in 
       hb_adsCheckLock(). Error text also made more consistent.
     ; [TOMERGE RC1 - after testing]

   * contrib/hbw32/w32_prn.c
     % Minor optimizations, cleanups.
2008-06-08 13:30:28 +00:00
Pritpal Bedi
1e9b0b7f3e 2008-06-06 20:45 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/source/rtl/hbgtcore.c
   * harbour/include/hbgtcore.h
   * harbour/include/hbgtinfo.ch
   * harbour/source/rtl/gtwvt/gtwvt.c
   * harbour/source/rtl/gtwvt/gtwvt.h
     + Added building blocks for CallBacks to be set with Hb_GtInfo( GTI_* ).
   * harbour/tests/wvtext.prg
     + Test program to taste few of the callbacks.

     /* This also sets the ground for futuristic multi-window GT 
        I have kept MW GT code out of current implementation.
        This implementation does not interfere nor affects current functionality.

        A work in progress.

        Viktor, I have found a way to implement 'consol shearing, working on it
        and for that to happen these building blocks are a must.

        Przemek, please review the structure of <PHB_PGT>. I have added a few members.
        Please bear with my meagre knowledge if I did something stupid, just correct it.
     */
2008-06-07 04:31:50 +00:00
Przemyslaw Czerpak
a46b864cca 2008-06-06 10:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/source/pp/ppcore.c
    + added hb_pp_errorCount() which returns total number of errors
      which appeared during preprocessing

  * harbour/source/pp/hbpp.c
    * added new switch:
         -u[<file>] use command def set in <file> (or none)
    * if neither -o nor -v is specified then -w is default action
    + added to default search paths INCLUDE envvar
    * set application exit code to non 0 value if errors appear
      during preprocessing

  * harbour/source/compiler/harbour.yyc
  * harbour/source/compiler/harbour.y
    ! added support for expression list without parenthesis used in
      statements - Clipper compatibility fix.
2008-06-06 08:21:49 +00:00
Phil Barnett
76757c1875 Modified include/hbver.h and harbour.spec to 1.0.0-RC1 2008-06-05 04:52:18 +00:00
Viktor Szakats
760625456e 2008-06-04 11:41 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbver.h
     + Added HB_VERSION unified version identifier:
       three bytes: major + minor + revision (0x000909)
       This is to aid 3rd parties to detect version.
       [RC1]

   * contrib/hbsqlit3/make_b32.bat
   * contrib/hbsqlit3/hbsqlit3.c
     ! SQLITE3_OPEN(): Fixed potential leak.
     + BCC warnings are now suppressed for the foreign code only, 
       and this is now effective in all build systems.
     * Code formatting.
2008-06-04 09:46:23 +00:00
Phil Barnett
9c6c65c681 Commit files for tagging RC1 2008-06-04 04:58:24 +00:00
Przemyslaw Czerpak
bdf43f67b2 2008-06-03 18:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  * harbour/include/hbextern.ch
  + harbour/source/rtl/hbrun.c
    + added function to execute commands which returns application
      exit code:
         HB_RUN( <cCommand> ) -> <nErrorLevel>
2008-06-03 16:09:00 +00:00
Viktor Szakats
83b872a811 2008-06-03 09:11 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/rdd.api
     + Added necessary conversions.
     ; NOTE: 3 functions are not yet implemented in Harbour.

   * contrib/hbw32/w32_regc.c
   * contrib/hbw32/tests/testreg.prg
     % Optimizations.
     * Formatting.

   * contrib/hbw32/w32_ole.c
     ! Fixed indentation.

   * contrib/hbhpdf/harupdf.c
     ! Fixed hpdf_ReadFromStream() fixed to not overflow 
       to buffer in hb_storlen_buffer().
2008-06-03 07:14:05 +00:00
Przemyslaw Czerpak
e97fbe0fb0 2008-06-02 19:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
    + added compile time INT( <num> ) optimization

  * harbour/source/compiler/hbusage.c
    * updated -k? description to show "(default)" for really set flags
2008-06-02 17:55:48 +00:00
Przemyslaw Czerpak
ff04244669 2008-06-02 16:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprb.c
    ! do not optimize HB_BIAND(), HB_BITOR() and HB_BITXOR() when only
      one parameter is passed to keep RT error compatibility
    * use hb_compExprListStrip() to optimize function calls also when
      parameters are passed in parenthesis, f.e.:
         ? CHR(65), CHR((65))
      It's not Clipper compatible and disabled by -kc switch.
      Viktor it will interact with some hbtest tests when compile time
      optimization used by Clipper gives different results then RT function
      f.e. CHR( ( 256 ) ). Please think if we should keep it.
      It's important optimization if someone uses constant values or
      expressions defined in parentheses.
2008-06-02 14:46:20 +00:00
Przemyslaw Czerpak
ed3ab32b06 2008-06-02 15:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbsqlit3/hbsqlit3.c
    ! use char * instead of LPSTR to compile in non Windows environment
    ! fixed one printf() parames
    ! fixed casting and parameter type in sqlite3_blob_open()

  * harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt1.c
  * harbour/source/common/expropt2.c
    - removed unused hb_compExprAsLong()
    + added hb_compExprAsLongNum(), hb_compExprReduceBitFunc()
    + added compiletime optimizatiob for HB_BIT*() functions:
      HB_BITAND(), HB_BITOR(), HB_BITXOR(), HB_BITSET(), HB_BITRESET()
      HB_BITSHIFT(), HB_BITNOT(), HB_BITTEST()
2008-06-02 13:41:00 +00:00
Przemyslaw Czerpak
cea797cf4d 2008-06-02 13:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
    + added hb_compExprReducePower() and compile time optimization for:
         <NumConst1> ^ <NumConst2>
    + added compile time optimization for:
         <NumConst1> % <NumConst2>
      when <NumConst1> or <NumConst2> is not integer value
    NOTE: both optimizations are not Clipper compatible and disabled
          when -kc compiler switch is used
2008-06-02 11:33:06 +00:00
Viktor Szakats
c85b65ba18 2008-06-01 23:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbvm.h
   * source/vm/hvm.c
   * source/vm/extrap.c
     ! Fixed OS/2 problem reported by David.
       (BTW, do we need really need to remove the exception 
       handler before exiting? If yes, shouldn't we do the 
       same under Win32?)

   * source/common/hbstr.c
     ! Silenced one 'loss of significant digit' BCC warning.
2008-06-01 22:06:51 +00:00
Przemyslaw Czerpak
2a89109763 2008-05-31 14:44 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbmacro.ch
  * harbour/source/vm/macro.c
  * harbour/source/vm/hvm.c
    - removed HB_MACRO_STATEMENTS and HB_SM_PREPROC
2008-05-31 12:45:01 +00:00
Viktor Szakats
4a48b29855 2008-05-31 09:57 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
     * For __BORLANDC__:
       _declspec( dllexport ) -> __declspec( dllexport )
       _declspec( dllimport ) -> __declspec( dllimport )
       to suppress warning: Non-ANSI keyword used: '_declspec'.
       NOTE1: This warning could be normally seen when compiling 
              contrib/rddads/ads1.c after the recent addition 
              of -w switch to enable BCC warnings.
       NOTE2: Neither look like ANSI C, and both are undocumented 
              in BCC.
     ; Please test.

   * include/hberrors.h
   * source/compiler/hbgenerr.c
     + Pointless historical surprise added.

   * contrib/mtpl_b32.mak
     - Removed duplicate -d switch.

   * contrib/rddads/ads1.c
     + Empty line.

   * TODO
     - Removed TBrowse() item.
2008-05-31 08:09:09 +00:00
Viktor Szakats
5bd52e37c3 2008-05-30 18:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
   * include/hbinit.h
   * source/compiler/harbour.yyc
   * source/compiler/harbour.y
     * HARBOUR_YYDEBUG -> HB_YYDEBUG
       (do we need this? it's a synomym for YYDEBUG)
     * HARBOUR_STRICT_ANSI_C -> HB_STRICT_ANSI_C
       (do we need this?)
     + HB_PCRE_REGEX added.
     + HB_PCRE_REGEX_BCC added.
     + HB_POSIX_REGEX added.
     - HB_MACRO_STATEMENTS
2008-05-30 16:12:39 +00:00
Viktor Szakats
f7e81a1402 2008-05-30 12:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
     - Removed WIN32_LEAN_AND_MEAN to make things more standard.
       We're losing some compile time performance for Windows build, 
       but it's marginal. Runtime performance is not affected.

   * contrib/hbgd/gdwrp.c
     * Removed BCC55 hack to workaround WIN32_LEAN_AND_MEAN 
       problem.
2008-05-30 10:18:29 +00:00
Viktor Szakats
b788d7d5f1 2008-05-30 12:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.ch
   * include/hbsetup.h
   * source/common/hbverdsp.c
   * source/vm/arrays.c
     - HB_FUNC_CALLCONV - no longer used.
     - HARBOUR_OBJ_GENERATION - no longer used.
     + Added profiler setting to build info.
     - YACC debug setting removed frmo build info.
     * Build info strict compatibility line now says 5.2e/5.3b.
     * HB_EXTENSION renamed to "non-portable extension"
     - HB_COMP_STRONG_TYPES - no longer used.
     - HB_FIX_ACOPY_BUG
       Replaced with a HB_C52_STRICT guard, but locally 
       overridden to always be strict (thus replicating 
       the bug). This means no change in functionality 
       for default builds. In any ways this is not a decision 
       to make by the Harbour users. If anyone had this 
       locally #defined anyway, pls shout.
     ; NOTE: It's nice that I'm removing unused stuff, but 
             my impression is that by time we have added 
             quite some new such settings burried in the code, 
             so if you're aware of any such ones, please 
             add them to hbsetup.h (or let's discuss which 
             ones to add).
2008-05-30 10:14:32 +00:00
Przemyslaw Czerpak
5472511ddc 2008-05-30 02:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/source/vm/hvm.c
  * harbour/source/vm/extrap.c
    * moved code to set exception handler from hvm.c to extrap.c
    + added void hb_vmSetExceptionHandler( void ) to set exception
      filter
    ! fixed problem with C++ builds caused by missing extern "C"
      declaration for exception handlers in extrap.c
2008-05-30 00:48:06 +00:00
Viktor Szakats
f42f92f69c 2008-05-29 20:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
     - HB_NO_BCC_MAX_OPENFILES_HACK - no longer used.

   * include/hbsetup.h
     - HB_ASORT_OPT_ITEMCOPY - no longer used.
     - HB_FAST_STOD - no longer used.
2008-05-29 19:06:15 +00:00
Przemyslaw Czerpak
4662f73fd3 2008-05-28 16:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour-ce-spec
  * harbour/harbour-w32-spec
  * harbour/harbour.spec
  * harbour/make_rpmce.sh
  * harbour/make_rpmw32.sh
  * harbour/make_rpm.sh
    * removed --with zlib switch - now zlib will be created in all builds
    * added hbzlib library
    * added hbmzip library - MiniZIP wrapper to manage ZIP files

  * harbour/contrib/Makefile
    * added hbmzip library to default builds

  * harbour/include/hbzlib.h
    ! changed \ in include path
    ! added relative paths for LCC and XCC

  * harbour/bin/hb-func.sh
    * updated for hbzlib library in core code and hbmzip in contrib

  * harbour/utils/hbdot/Makefile
  * harbour/utils/hbrun/Makefile
    * added hbzlib library to linked library list

  * harbour/include/hbzlib.h
  * harbour/bin/hb-func.sh
  * harbour/make_gcc.mak
  * harbour/config/darwin/gcc.cf
  * harbour/config/hpux/gcc.cf
  * harbour/config/linux/gcc.cf
  * harbour/config/sunos/gcc.cf
  * harbour/config/bsd/gcc.cf
  * harbour/utils/hbdot/Makefile
  * harbour/utils/hbrun/Makefile
    + added support for compilation with HB_EXT_ZLIB macro
      It forces using external (OS) ZLIB library instead of hbzlib.
      Still some other make files should be updated to respect it.
2008-05-28 14:37:33 +00:00
Viktor Szakats
31bd015517 2008-05-28 14:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * include/Makefile
   + include/hbzlib.ch
   + include/hbzlib.h
   * include/hbextern.ch
   + source/rtl/hbzlib.c
   * source/rtl/Makefile
   * contrib/make_b32_all.bat
   * contrib/make_vc_all.bat
   * contrib/make_gcc_all.sh
   * contrib/Makefile
   + contrib/hbmzip
   + contrib/hbmzip/Makefile
   + contrib/hbmzip/common.mak
   + contrib/hbmzip/make_b32.bat
   + contrib/hbmzip/make_vc.bat
   + contrib/hbmzip/make_gcc.sh
   + contrib/hbmzip/hbmzip.ch
   + contrib/hbmzip/ioapi.c
   + contrib/hbmzip/zip.c
   + contrib/hbmzip/unzip.c
   + contrib/hbmzip/ioapi.h
   + contrib/hbmzip/crypt.h
   + contrib/hbmzip/zip.h
   + contrib/hbmzip/unzip.h
   + contrib/hbmzip/hbmzip.c
   + contrib/hbmzip/readme.txt
   + contrib/hbmzip/tests
   + contrib/hbmzip/tests/bld_b32.bat
   + contrib/hbmzip/tests/bld_vc.bat
   + contrib/hbmzip/tests/myzip.prg
   + contrib/hbmzip/tests/myunzip.prg
     + Added hbzlib.h which is a simple wrapper to source/hbzlib/zlib.h.
     * Moved ZLIB specific Harbour wrappers and header from /contrib/hbzlib
       to /source/rtl.
     + Added /contrib/hbmzip lib based on /contrib/hbzlib.
       Copy + modify was used to keep the repo history.
       hbmzip contains all the MiniZip parts from former /contrib/hbzlib.
       New hbmzip header file: hbmzip.ch
     + Added new Harbour level zip functions to hbextern.ch.
     ; TODO: Remove /contrib/hbzlib, add core hbzlib to lib lists.
2008-05-28 12:39:33 +00:00
Przemyslaw Czerpak
2c051a4220 2008-05-28 11:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrdddbf.h
  * harbour/include/hbapirdd.h
  * harbour/source/rdd/workarea.c
  * harbour/source/rdd/dbcmd.c
  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/usrrdd/usrrdd.c
  * harbour/contrib/rddads/ads1.c
  * harbour/contrib/hbbmcdx/bmdbfcdx1.c
    + added ULONG ulConnection parameter to DROP() and EXISTS()
      RDD node methods
    + added 4-th parameter with ulConncetion index to [HB_]DROP() and
      [HB_]EXISTS() functions
2008-05-28 09:48:57 +00:00