Commit Graph

9567 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
810fd37bee 2008-12-16 10:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
    * pacified BCC warning

  + harbour/tests/mt/mttest11.prg
    + added new test for asynchronous screen updating in MT mode
2008-12-16 09:04:47 +00:00
Pritpal Bedi
8da300e9cc 2008-12-15 08:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvtwin.ch
    + Added more constants.

  * harbour/contrib/gtwvg/wvgwin.c
    + Added functions to manipulate ChooseFont() WINAPI.

  * harbour/contrib/gtwvg/wvgsysw.prg
    + Implemented WvgFontDialog(), WvgFon() Xbase++ compatible classes.

  * harbour/contrib/gtwvg/tests/demoxbp.prg
    + Incorporated WvgFontDialog() and WvgFont() functionality.

    ;IMPORTANT: XBase++ documentation describes that WvgFontDialog() 
                cannot be opened in modeless state under Windows. 
                Additionally it also states that its event blocks cannot
                be implemented in Windows. It is possible only in OS/2.

                But Harbour implementation of WvgFontDialog() has
                provided this important functionality in Windows also.
                You can :display the font dialog in modeless state as
                well as :activate* codeblocks also get fired.
2008-12-15 16:19:21 +00:00
Pritpal Bedi
1bb24af967 2008-12-12 12:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvtwin.ch
    + Added more constants.
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
  * harbour/contrib/gtwvg/wvgsysw.prg
    ! Fixed some variable usages. Sorry for reckless uplod a couple of hours before.
2008-12-12 20:04:10 +00:00
Pritpal Bedi
21304a7ce1 2008-12-12 10:06 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgsysw.prg

  + harbour/contrib/gtwvg/wvgsysw.prg
    + Started WvtSysWindow(), WvgFontDialog() classes compatible with Xbase++.

  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! Implemented more methods and properties upto Xbase++ documentation.

  * harbour/contrib/gtwvg/wvgwin.c
    ! More functions and cleanup of existing ones.

  * harbour/contrib/gtwvg/wvgparts.ch
    + Added More constants.  

  * harbour/contrib/gtwvg/tests/demoxbp.prg
    ! Added more feature implemenattion.

    ;THANKS: Przemek for fixing mingw compilation.
2008-12-12 18:14:26 +00:00
Przemyslaw Czerpak
065a119f51 2008-12-12 18:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapicls.h
  * harbour/source/vm/codebloc.c
  * harbour/source/vm/proc.c
  * harbour/source/vm/classes.c
    + added support for messages in PROCFILE()
    * modified PROCFILE() and HB_METHODNAME() output - PROCFILE()
      should be fully Clipper compatible and HB_METHODNAME() works
      in a little bit different way for evaluated codeblocks created
      in methods or associated with method and returns (b)<class>:<msg>
      instead of (b)<method> so the output is more similar to xHarbour.

  * harbour/contrib/gtwvg/gtwvg.h
    ! disabled NONAMELESSUNION - wvgwin.c uses TVINSERTSTRUCT item
      member without union name what breaks MINGW compilation
    * added hardcoded TVIS_EXPANDPARTIAL when it does not exist
      in header files - MINGW 3.4 does not have it.
2008-12-12 17:04:16 +00:00
Przemyslaw Czerpak
fa31aa6f70 2008-12-11 19:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbthread.h
  * harbour/source/vm/thread.c
    + added hb_atomic_set(), hb_atomic_get(), hb_atomic_inc() and
      hb_atomic_dec() functions which operates on HB_COUNTER or smaller
      type if it's necessary for some platforms which can be access/assign
      increment/decrement in MT safe atom operations.
      hb_atomic_dec() returns true if counter is 0 after decrementation

  * harbour/include/hbatomic.h
    ! fixed compilation in Linux and OpenWatcom

  * harbour/include/hbapiitm.h
  * harbour/source/rtl/itemseri.c
    + make hb_itemSerialize() and hb_itemDeserialize() public functions
    ! fixed serialization items with internal item references

  * harbour/source/vm/hvm.c
    * release memvars after closing RDDs

  * harbour/source/debug/dbgentry.c
    ! fixed buffer overflow reported by Rodrigo

  * harbour/source/vm/macro.c
  * harbour/source/compiler/hbmain.c
    * formatting

  * harbour/include/hbexprb.c
    ! fixed wrongly recognized functions with HB_I18N_ prefix as
      HB_I18N_GETTEXT()

  * harbour/include/hbapi.h
  * harbour/include/hbstack.h
  * harbour/include/hbthread.h
  * harbour/source/vm/estack.c
  * harbour/source/vm/thread.c
  * harbour/source/vm/hvm.c
    + added support for I18N in HVM.
      Each thread can have it's own i18n set.
      When new thread is created then it inherits i18n set from parent
      thread and both uses the same set (please remember about it if you
      will want to make some direct modifications on active i18n set
      internals).
      When thread change active i18n set then it effects only this thread
      and new threads which will be create later. It does not change i18n
      in other existing threads.
    + added functions to set/get pointer to active i18n set in HVM
         void * hb_vmI18N( void )
         void   hb_vmSetI18N( void * )

  * harbour/include/hbapi.h
  * harbour/source/rtl/hbi18n.c
    + added i18n module. Now only for internal Harbour usage without support
      for optional switching to alternative implementations.
      I'll add such functionality later when I will work on native gettext
      support.

      The following public .prg functions has been added:
         HB_I18N_GETTEXT[_STRICT]( <cMsgID> [, <cContext> ] )
               -> <cTranslatedMsgID> | <cMsgID>
         HB_I18N_NGETTEXT[_STRICT]( <nValue>, <cMsgID> | <acMsgID> ;
                                    [, <cContext> ] )
               -> <cTranslatedMsgID> | <cMsgID> | <acMsgID>[ <nIndex> ]
      This is minimal support necessary for .prg code which has to exists
      in each i18n module working with Harbour.

      The following functions had been added as public C API:
         PHB_ITEM hb_i18n_gettext( PHB_ITEM pMsgID, PHB_ITEM pContext )
         PHB_ITEM hb_i18n_ngettext( PHB_ITEM pNum,
                                    PHB_ITEM pMsgID, PHB_ITEM pContext )

      The following functions had been added as private HVM C API:
         void   hb_i18n_init( void )
         void   hb_i18n_exit( void )
         void   hb_i18n_release( void * cargo )
         void * hb_i18n_alloc( void * cargo )
      They have to be supported by alternative i18n modules

      The following functions has been added to manage Harbour i18n
      translations sets:

         HB_I18N_CREATE()
                  -> <pI18N>
            Creates new empty I18N translation set

         HB_I18N_CODEPAGE( [<pI18N>,] [<cNewCP>], [<lBase>], [<lTranslate>] )
                  -> <cOldCP>
            Gets or sets Harbour codepage used by translation set
            <pI18N> - I18N translation set,
                      if it's not given then currently active I18N set is used
            <cNewCP> - new CP ID. Must be linked with application
            <lBase> - when it's .T. then get/set base massages CP instead of
                      translated massages CP
            <lTranslate> - if it's .T. then translate base (<lBase>==.T.) or
                           final messages in I18N set from previous CP to
                           given one. Base messages translation in synced
                           with context ID translation.

         HB_I18N_PLURALFORM( [<pI18N>,] [<cNewForm>|<bNewForm>], [<lBase>] )
                  -> <cOldForm>|<bOldForm>
            Gets or sets plural form used for final or base messages
            <pI18N> - I18N translation set,
                      if it's not given then currently active I18N set is used
            <cNewForm> - language ID of plural form, f.e.: "EN", "PL", "LT".
                         Now only three above are supported. Please add rules
                         for other languages to source/rtl/hbi18n.c.
            <bNewForm> - codeblock used to calculate plural form indexes.
                         can be used instead of character representation but
                         it's not storred in serialized I18N set
            <lBase> - when it's .T. then get/set base massages plural form
                      instead of translated massages one.

         HB_I18N_DESCRIPTION( [<pI18N>,] [<cNewDescription>] )
                  -> <cOldDescription>
            Gets or sets translation set description. After serialization
            up to 32 bytes is stored in header which can be easy used to
            determinate type of translation file.
            <pI18N> - I18N translation set,
                      if it's not given then currently active I18N set is used
            <cNewDescription> - new description

         HB_I18N_ADDTEXT( <pI18N>, <cMsgID>, <cTrans> | <acTrans> [, <cContext> ] )
                  -> NIL
            Adds new message with translation to i18n translation set
            <pI18N> - I18N translation set
            <cMsgID> - original message
            <cTrans> - translated message
            <acTrans> - array with translated messages used for plural forms
            <cContext> - message context

         HB_I18N_SET( [ <pI18N> | NIL ] )
                  -> <lActive>
            Sets given I18N translation set as default one used by
            HB_I18N_[N]GETTEXT[_STRICT]() functions or remove translation
            set for calling thread when passed parameter is NIL
            <pI18N> - I18N translation set
            Returns logical value which is .T. when i18n set is active

         HB_I18N_SAVETABLE( [<pI18N>] )
                  -> <cTable>
            Returns I18N translation as string item which can be stored
            in file or database
            <pI18N> - I18N translation set, if it's not given then currently
                      active I18N set is used

         HB_I18N_RESTORETABLE( <cTable> )
                  -> <pI18N> | NIL
            Restores I18N translation set from strin item.
            <cTable> - I18N translation set in string representation
            On success it returns new <pI18N> set otherwise NIL if <cTable>
            is not valid item created by HB_I18N_SAVETABLE() or it's corrupted.

         HB_I18N_HEADERSIZE()
                  -> <nHeaderSize>
            Returns size of header used by i18n serialized version

         HB_I18N_CHEK( <cTable> | <cHeader> [, @<cDescription> ] )
                  -> <lValid>
            <cTable> - i18n translation set serialized by HB_I18N_SAVETABLE
            <cHeader> - header of i18n translation set
                        ( LEFT( <cTable>, HB_I18N_HEADERSIZE() )
            <cDescription> - optional parameter passed by reference where
                             will be sored i18n translation set description
                             extracted from valid header
            Returns logical value indicating if given table or header is
            valid serialized by HB_I18N_SAVETABLE() data. It does not
            decode the table though it validates size and control sums.

      These functions are optional and some future alternative implementations
      may not support all of them and/or may provide some other functions.

    + added unofficial .prg function __I18N_HASHTABLE() which allows to
      access hash table used by i18n translation set or create new translation
      set with given hash table. It's helper functions for developers which
      will work on Harbour i18n tools and should not be used by Harbour users.

      Unlike original gettext Harbour allows to use language with many
      plural forms as base one. In such case programmer should activate
      at application startup default i18n translation set with base plural
      form valid for base application language, f.e. by:
         pI18N := hb_i18n_create()
         hb_i18n_pluralForm( pI18N, <cLangID> | <bForm>, .t. )
         hb_i18n_set( pI18N )
      .prg code example:

         #xtranslate _( <x,...> ) => hb_i18n_gettext_strict( <x> )
         #xtranslate _N( <x,...> ) => hb_i18n_ngettext_strict( <x> )

         proc main()
            local pI18N, i

            pI18N := hb_i18n_create()
            hb_i18n_pluralForm( pI18N, "PL", .t. )
            hb_i18n_set( pI18N )

            for i := 0 to 30
               ? i, _N( i, {"grosz", "grosze", "groszy"} )
               if i > 0 .and. i % 10 == 0
                  wait
               endif
            next
         return

      In .pot files created during compilation by Harbour with -j option
      for above code we have the following entries for message with plural
      forms:
            msgid "grosz"
            msgid_plural "grosze"
            msgid_plural2 "groszy"
            msgstr[0] ""
      The msgid_plural2 (and others if language has more plural forms)
      is Harbour extension which is not gettext compatible.


      The above implementation is base version but should be fully functional.
      Now we will need functions to safe/read i18n files and tools to mange
      .pot files: merge them, edit translations, create final binary i18n
      translation sets. Because we are using gettext compatible .pot files
      then for some of such jobs we can use original gettext tools but we
      need at least function which will create translation set from one or
      more .pot files.
      We should also agree some default localization(s) for files containing
      translated data, their name convention and environment variable(s)
      to set default language. It's not strictly necessary and each user
      can have his own implementation but it would help in adding new
      translations by final users to any Harbour application which will
      respect them. We can use LANG envvar to extract preferred language
      and use the same path as executed application looking for files
      <appname>-<lang>.hil files though it may create some problems for
      OSes which support only 8.3 file names so we can also define that
      HB_I18N envvar has higher priority and points to expected translation
      file.

  * harbour/include/hbextern.ch
    - removed old __i18n_*() functions
    + added current i18n functions
2008-12-11 18:47:46 +00:00
Pritpal Bedi
e0d79bbb7a 2008-12-09 12:46 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + wvghtmlv.prg

  * harbour/contrib/gtwvg/hbgtwvg.ch
    + HB_GTI_ACTIVATESELECTCOPY
    + HB_GTE_CTLCOLOR

  * harbour/contrib/gtwvg/gtwvg.c
    + hb_gtInfo( HB_GTI_ACTIVATESELECTCOPY )
      This has the same effect as to activating the select/copy operation
      from the sys menu of the application. This way you can define
      any key to begin this operation as:

         SetKey( K_RBUTTONUP, {|| hb_gtInfo( HB_GTI_ACTIVATESELECTCOPY ) } )

      and to start copy operation it will be enough to perform right
      click and then dragging the text with left button down.
    
      :TODO: Implementation in GTWVT.

  + harbour/contrib/gtwvg/wvghtmlv.prg
    + Added WvgHTMLViewer() class compatible with XbpHTMLViewer().
      It is a fully functional implementation as per Xbase++ documentation
      except for method :setHTML( cHTMLtext )

  * harbour/contrib/gtwvg/wvggui.c
    + Added evenh handlling for WV_CTLCOLOR* messages.

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

  * harbour/contrib/gtwvg/wvg3stat.prg
  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcheck.prg
  * harbour/contrib/gtwvg/wvglistb.prg
  * harbour/contrib/gtwvg/wvgmle.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgpushb.prg
  * harbour/contrib/gtwvg/wvgradio.prg
  * harbour/contrib/gtwvg/wvgsle.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgtreev.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! Heavy changes especially in event handlling management.
    + ::setColorFG( nRGB ) and ::setColorBG( nRGB ) implemented for
      WvgSLE(), WvgMLE(), WvgStatic(), WvgCheckBox(), WvgRadioButton(),
      WvgTreeView(), WvgListBox().
  
  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Some finer additions.

  + harbour/contrib/gtwvg/tests/demoxbp.prg
    Added new demo with pure Xbase++ code clubbing all the committed classes
    till date including WvgHTMLViewer().
    ;
    Compile as : hbmk_b32 -mt demoxbp
2008-12-09 21:32:44 +00:00
Przemyslaw Czerpak
b46a548172 2008-12-08 16:30 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkslib.sh
    ! fixed last modification

  * harbour/doc/Makefile
  + harbour/doc/cmpopt.txt
    + added small description for Harbour compile time optimization

  * harbour/include/hbexpra.c
    + allow to use hb_mutexCreate() as static variable initializer, f.e.:
         static s_mtxarr := { "MTX1" => hb_mutexCreate(), ;
                              "MTX2" => hb_mutexCreate(), ;
                              "MTX3" => hb_mutexCreate() }
  * harbour/include/hbexprb.c
    % comment

  * harbour/source/common/expropt2.c
    + added some missing optimizations for date constants
    + added optimization for multiple negate expressions
2008-12-08 15:28:49 +00:00
Pritpal Bedi
b60157c4ed 2008-12-07 22:22 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + wvg3stat.prg
    + wvgbitmp.prg
    + wvgmle.prg
    + wvgsle.prg

  * harbour/contrib/gtwvg/wvgparts.ch
    + New constants to handle new classes.

  + harbour/contrib/gtwvg/wvgbitmp.prg
    + Code skelton of WvgBitmap class ( non-functional yet ).
  + harbour/contrib/gtwvg/wvg3stat.prg
    + Wvg3State() class compatible to Xbase++ Xbp3State().
  + harbour/contrib/gtwvg/wvgmle.prg
    + WvgMLE() class compatible with Xbase++ XbpMLE().
  + harbour/contrib/gtwvg/wvgsle.prg
    + WvgSLE() class compatible with Xbase++ XbpSLE().

  * harbour/contrib/gtwvg/wvgwin.c
    + Added new functions for new classes.

  * harbour/contrib/gtwvg/wvgcheck.prg
  * harbour/contrib/gtwvg/wvgdatar.prg
  * harbour/contrib/gtwvg/wvglistb.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgradio.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtreev.prg
  * harbour/contrib/gtwvg/wvghwnd.prg
    ; Heavy changes in class framework.
    
  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Added functionality of Wvg3State() and WvgSLE(), WvgMLE() classes.

    ; IMPLEMENTATION : Point to <Xbase++ Dialogs> menu option, click on any
                       Active-X Control, Play with all controls : clicks,
                       double clicks, resize. Watch statusbar panels, click on 
                       <Tools> toolbar button, the resulting panel contains
                       latest classes SLE, MLE, CHECKBOX, RADIO, 3STATE.
2008-12-08 06:48:32 +00:00
Przemyslaw Czerpak
e800e93018 2008-12-07 17:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkslib.sh
    ! added support for absolute paths in passed object or static library
      list

  * harbour/config/bsd/gcc.cf
    ! added missing HB_CCACHE in gcc calls
2008-12-07 16:10:03 +00:00
Pritpal Bedi
11130f186b 2008-12-06 19:08 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgcheck.prg
    + wvgdatar.prg
    + wvgradio.prg

  + harbour/contrib/gtwvg/wvgcheck.prg
  + harbour/contrib/gtwvg/wvgdatar.prg
  + harbour/contrib/gtwvg/wvgradio.prg
    + Added WvgCheckBox(), WvgRadioButton(), DataRef() Xbase++ compatible classes.

  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvglistb.prg
  * harbour/contrib/gtwvg/wvgpushb.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgtreev.prg
  * harbour/contrib/gtwvg/wvghwnd.prg
    ; Heavy changes in class framework.
    + Many new winapi functions.
    ! Optimized use of hb_ACallBack().
    - WinApi functions replaced by Harbour core functions.
    
  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Added functionality of WvgCheckBox() and WvgRadioButton() classes.
      Now thses classes implement DataRef() class also. Work-in-progress.

    ;TODO : Few functions in wvgwin.c are not UNICODE compliant yet.
     DONE   All functions are now UNICODE compliant.

    ;Viktor, can you compile GTWVG on 64bits platform ?

    ;REQUEST : Can someone familiar with Xbase++ come forward to 
               write a small test program based on implemented classes.
               Please exclude all that functionality which is not yet
               implemented.
2008-12-07 03:28:16 +00:00
Pritpal Bedi
da6a915f14 2008-12-04 23:56 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/tests/hbmk_b32.bat
    + xhb.lib - just to take use of hb_ToOutDebug(). While under heavy
      changes I need to keep the debugging info intact. Final sources
      will not have this included.

  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvtwin.ch
  * harbour/contrib/gtwvg/winback.prg
  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvglistb.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgpushb.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgtreev.prg
  * harbour/contrib/gtwvg/wvghwnd.prg
    + Implemented ( partially ) WvgTreeView(), WvgListBox() classes.
    ; Heavy changes in class structure, introduction  of new functions,
      refinement of old ones, heavy implementtaion of hb_ACallBack()s. 
    
  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Added functionality of WvtTreeView() and WvtListBox() classes.

    ;TODO : Few functions in wvgwin.c are not UNICODE compliant yet.
2008-12-05 08:08:23 +00:00
Miguel Angel Marchuet Frutos
abb9eed2f8 2008-12-04 11:09 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
* contrib/hbbmcdx/bmdbfcdx.c
  * contrib/hbbmcdx/hbbmcdx.h
    ! fixed partially BM_DbSetFilterArray, and added new features to rdd synced
      with dbfcdx.
2008-12-04 10:22:08 +00:00
Miguel Angel Marchuet Frutos
ec3c2b40ac 2008-12-04 10:11:55 +00:00
Przemyslaw Czerpak
5721fcf996 2008-12-03 18:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbstr.c
    ! added missing call to va_end() in hb_snprintf()

  * harbour/source/vm/classes.c
    + added internal helper function __objSetClass()

  * harbour/source/rtl/valtoexp.prg
    * set class in expressions serialized by hb_valToExp()

  * harbour/source/rtl/valtostr.c
    % optimized hb_strToExp()

  * harbour/contrib/xhb/hbcompat.ch
    ! removed unnecessary conversion for HB_ISPOINTER() in xHarbour part.
2008-12-03 17:34:28 +00:00
Antonio Carlos Pantaglione
b214da8839 2008-12-03 15:05 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
* contrib/hbziparc/hbziparc.prg
     ! hb_UnzipFile() to accept empty password like ""
2008-12-03 17:00:10 +00:00
Pritpal Bedi
3427a246c4 Added omitted changelog entry 2008-12-02 15:35:53 +00:00
Przemyslaw Czerpak
5348f0c1d4 2008-12-02 13:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbstr.c
  * harbour/config/w32/xcc.cf
    ! fixed XCC compilation

  * harbour/contrib/gtwvg/wvgwin.c
    ! changed _MAX_PATH to MAX_PATH - not all compilers support _MAX_PATH
2008-12-02 12:46:19 +00:00
Przemyslaw Czerpak
16f9a67e9f 2008-12-02 11:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/Makefile
  * harbour/contrib/xhb/common.mak
  + harbour/contrib/xhb/xhbarr.c
    + added aSplice(), aRemove() and aMerge() functions - code borrowed
      from xHarbour by Ron Pinkas.
    ! fixed GPF trap in these functions

  * harbour/contrib/xhb/xhbfunc.c
    + added CSTR()

  * harbour/contrib/xhb/hbcompat.ch
    ! changed name of xHarbour include files - they where changed few
      months ago and now they are the same as in Harbour.
      To xHarbour users: please update hbcompat.ch in xHarbour CVS

  * harbour/contrib/xhb/filestat.c
    ! fixed UNICODE compilation

  * harbour/contrib/xhb/hblognet.prg
  * harbour/contrib/xhb/hblog.prg
    * formatting

  * harbour/contrib/hbnf/tempfile.prg
    ! do not use HB_ISBYREF() .prg function - this function does not
      exist in Harbour and does not work correctly in xHarbour

  * harbour/include/hbapiitm.h
  * harbour/source/vm/macro.c
  * harbour/source/vm/codebloc.c
  * harbour/source/vm/hashes.c
  * harbour/source/vm/garbage.c
  * harbour/source/vm/itemapi.c
  * harbour/source/vm/memvars.c
    * cleanup

  * harbour/contrib/gtwvg/Makefile
    ! fixed typo

  * harbour/contrib/gtwvg/hbgtwvg.ch
    * added new line at the end of file and changed non ANSI C // comments
      to /* */ - this file is included by C code too.

  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wincallb.c
    * pacified some warnings and fixed possible access to uninitialized data

  * harbour/source/compiler/harbour.y
  * harbour/source/compiler/harbour.yyc
    ! fixed possible double freeing of memory blocks in #line directives
      TOMERGE[1.0]

  * harbour/common.mak
  * harbour/source/compiler/hbmain.c
  + harbour/source/compiler/compi18n.c
    * moved hb_compI18n*() functions to separate file covered by GPL with
      Harbour exception - Thank to Mindaugas

  * harbour/include/hbcomp.h
  * harbour/include/hbcompdf.h
  * harbour/include/hbexpra.c
  * harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt1.c
  * harbour/source/compiler/Makefile
  * harbour/source/compiler/ppcomp.c
    * added support for plural forms:
         hb_i18n_ngettext[_noop|_strict]( <nExp>, <cText> | <acText> ;
                                          [, <cContext> )
      <acText> is accepted only as array of literal strings even if
      _strict suffix is missing - if it's a problem then we can change it.
      hb_i18n_ngettext_noop() is reduced only when it has valid parameters
      The default plural index expression used for reduction at compile
      time is: iif( <nExp> == 1, 1, 2 )
      If second parameter of hb_i18n_ngettext_noop() is <cText> or <acText>
      length is 1 then it's reduced to <cText> or acText[1] else if second
      parameter is <acText> with more then 1 item then it's reduced to
         <acText>[ iif( <nExp> == 1, 1, 2 ) ]
      and if <nExp> is literal numeric expression is farther reduced to
      given array item. Otherwise is not reduced and warning is generated.
      The plural forms in .pot files are generated as:
         msgid ""
         msgid_plural ""
         msgid_plural2 ""
         [...]
         msgid_pluralN ""
         msgstr[0] ""
      Then real message ID is only msgid (with context if any) and
      msgid_plural* is used only for information. When the same msgid
      is used more then once in different hb_i18n_ngettext*() calls then
      plural messages are merged.
      Please remember that for strict gettext compatibility only two plural
      forms are allowed.
    * extended i18n warnings for simple types validation, f.e.:
         hb_i18n_gettext( .t. )
    * do not generate empty .pot file when source code does not contain any
      hb_i18n_*() functions
    * store in .pot files references to real source file names with paths
      respecting #include directives
    * use hb_compIdentifierNew() to hash i18n messages at compile time
    ! fixed possible bad escape encoding of i18n strings
    + added support to control -j[01] flag using #pragma directive

      Before I'll begin to work on runtime support please test these
      modifications and inform me about problems you can see with the
      above version and missing functionality.
2008-12-02 10:26:51 +00:00
Pritpal Bedi
45d9122f5a 2008-11-30 23:49 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! Cleanup - leftover trace calls.
2008-12-01 07:50:46 +00:00
Pritpal Bedi
cfc5ad17f6 2008-11-30 23:05 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgparts.ch
    + wincallb.c
    + wincback.prg
    + wvglistb.prg
    + wvgpushb.prg
    + wvgstatb.prg
    + wvgstatc.prg
    + wvgtreev.prg

  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgsink.c
  * harbour/contrib/gtwvg/wvgutils.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/hbgtwvg.ch
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvtwin.ch
  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgmenub.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! More synchronization, more events firings, etc.

  + harbour/contrib/gtwvg/wincback.prg
  + harbour/contrib/gtwvg/wincallb.c
    Now PRG/C level callback procedures/code blocks/methods 
    are made available by Andy Wos. A big thank you. 

       :nWndProc := HB_AsCallBack( 'MYWNDPROC', Self )

       METHOD MYWndProc( hWnd, nMessage, nwParam, nlParam )
          IF nMessage == WM_LBUTTONDOWN
             Win_MessageBox( , 'Prg level callback procedure!, 'Info' )
             RETURN 0
	  ENDIF
 
          RETURN 1

       Before this mechanism was available with only C callbacks which 
       were of limiting nature. It has made our life so easy.

  + harbour/contrib/gtwvg/wvglistb.prg
  + harbour/contrib/gtwvg/wvgcombo.prg
  + harbour/contrib/gtwvg/wvgpushb.prg
  + harbour/contrib/gtwvg/wvgstatb.prg
  + harbour/contrib/gtwvg/wvgstatc.prg
  + harbour/contrib/gtwvg/wvgtreev.prg
    + Added Xbase++ compatible new classes. 
       NOTE: Still a work-in-progress, subject to heavy changes.
       Basic functionality is working and class skeletons are in place.
       The partially functional classes added are:
          WvgStatusBar()
          WvgStatic()
          WvgPushButton()

  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Added functionality of new classes.

    ; TOFIX: harbour/contrib/gtwvg/wvggui.c
             Przemek, can you please look into this stripped down
             version of gtwvg.c. It has memory leak in inkey() and 
             hb_gtInfo() functions. To test, just resize the window
             and exit, boooom, a big hb_out.log with above mem leak 
             entries. I am sure I just stripped some important loop
             but am unable to locate where.
2008-12-01 07:31:45 +00:00
Przemyslaw Czerpak
7ad0d5f23f 2008-11-26 18:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
    * changed hb_itemPutNLen() function to create integer item only
      when conversion to HB_LONG does not change value of passed double
      argument. It fixes some problems like restoring non integer double
      values with 0 decimal places by __MVRESTORE()

  * harbour/source/rtl/val.c
    % minor optimization
2008-11-26 17:21:08 +00:00
Pritpal Bedi
9279f182f6 2008-11-25 09:15 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
    + Hot Tracking of toolbar buttons.

    ;TODO: Buttons from resources.
           System defined buttons.
           Buttons with dropdown menues.
           Buttons with disabled/hot images.
2008-11-25 17:20:49 +00:00
Pritpal Bedi
23f63ba827 2008-11-25 02:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/hbgtwvg.ch
  * harbour/contrib/gtwvg/wvtwin.ch
  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    + Added WvgToolBar() class demonstrating limited features.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Added WvgToolBar() functionality. Click on ActiveX dialogs and
      see the difference between two two types of buttons. It is just
      limited featured toolbar. Extended version will follow. 

    ;THANKS - Bitmap management code is lifted from GTWVW. 
              Thanks Budyanto for this well written code.
              I examined many implementations but found this piece
              of code satisfying.
                Just tweaked to make UNICODE compliant.
2008-11-25 10:35:07 +00:00
Przemyslaw Czerpak
f3a3469af0 2008-11-24 16:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/ppcore.c
  * harbour/source/rtl/run.c
  * harbour/source/rtl/errorint.c
  * harbour/source/rtl/trace.c
  * harbour/contrib/xhb/hboutdbg.c
    * pacified warnings and updated some possibly danger constructions

  * harbour/source/vm/memvars.c
    % improved the performance of __MVRESTORE()
    ; TOFIX: this code has Clipper incompatible extension which may cause
      that incorrect values will be restored - numeric double values with
      0 as default number of decimal places for str() formatting are
      wrongly converted to integers loosing fractional part of number.
2008-11-24 15:40:18 +00:00
Przemyslaw Czerpak
2e6b5eee7d 2008-11-24 12:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hberrors.h
  * harbour/source/compiler/hbgenerr.c
    + added new compile time error (file write error)

  * harbour/source/pp/ppcore.c
  * harbour/source/rtl/errorint.c
  * harbour/source/compiler/genhrb.c
  * harbour/source/compiler/genc.c
  * harbour/source/rtl/run.c
  * harbour/source/vm/estack.c
    * pacified warnings - Lorenzo please verify it compiling with C header
      files from Ubuntu.

  * harbour/contrib/xhb/filestat.c
    ! fixed UNICODE compilation

  * harbour/contrib/gtwvg/wvgsink.c
    ! added #define NONAMELESSUNION to fix MinGW compilation
2008-11-24 11:33:13 +00:00
Pritpal Bedi
39b634fbb7 2008-11-23 17:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/Makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgtoolb.prg 

  * harbour/contrib/gtwvg/hbgtwvg.ch
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgmenub.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  + harbour/contrib/gtwvg/wvgtoolb.prg
    ! Initial commit.
  * harbour/contrib/gtwvg/wvgwnd.prg
    
    ! Usual cleanup plus new functions/members etc.
2008-11-24 01:28:12 +00:00
Pritpal Bedi
d8655db0a9 2008-11-23 15:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/Makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgmenub.prg
2008-11-23 23:01:21 +00:00
Pritpal Bedi
882bd891a2 2008-11-23 13:27 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
    + static void hb_gt_wvt_FireMenuEvent( PHB_GTWVT pWVT, int iMode, int menuIndex )
    + WM_ENTERMENULOOP
    + WM_EXITMENULOOP
    ! WM_COMMAND - Enhanced

  * harbour/contrib/gtwvg/wvggui.c
    + Same as with gtwvg.c

  * harbour/contrib/gtwvg/wvgsink.c
    + Experimental TypeLib info extraction function. Disabled for now.

  * harbour/contrib/gtwvg/wvgwin.c
    + Many new Win_* winapi functions.

  * harbour/contrib/gtwvg/hbgtwvg.ch
    + HB_GTI_MENU

  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  + harbour/contrib/gtwvg/wvgmenub.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
    + Implemented ( partially but functional ) Xbase++ compatible
      WvgMenuBar() and WvgMenu() classes.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Demonstrated WvgMenuBar() and WvgMenu() implementation
      by picking up the real-time Xbase++ code.

  ; NEXT: WvtToolBar() class per XbpToolBar().
2008-11-23 22:22:39 +00:00
Pritpal Bedi
7ec06640e7 2008-11-22 15:57 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ harbour/contrib/gtwvg/tests/myharu.pdf
2008-11-22 23:59:16 +00:00
Pritpal Bedi
aa745d2d18 2008-11-22 15:39 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
    ! Fixed to honor parent GT if that is alien.

  * harbour/contrib/gtwvg/wvggui.c
    ! Thorough synchronized hb_gtInfo() slots.
      Every info gives results as expected, the only 
      poiint to remeber is that those values are based on :fontHeight/Width
      set by the user at startup, though the font is never created.
      So MaxCol() will return the ( Windows client area size / fontWidth ).
      At any given moment this value is measured from actual size of the
      window. Though this information is irrelevant in this context
      but still it works.

  * harbour/contrib/gtwvg/wvgsink.c
    ! Fixed few left-over unreleased memory blocks.
      More synchronized code.

    ; TOFIX: With some active-x's, for example, Shell.Explorer.2, 
      object never unreference itself to 0 and hence GlobalAlloc()ated
      memory never gets released. Though I made extensive debugging 
      but do not know where I should look into this matter.     

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

  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
    ! More synchronizations, method implementations, etc.
      Still a work in progress.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Changed menu prompts to depict correct usage.
    + Added more prompts and deleted unwanted ones.
2008-11-22 23:54:44 +00:00
Viktor Szakats
6d9e671cb3 2008-11-19 21:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
    ! hbw32 -> hbwin
2008-11-19 20:49:54 +00:00
Viktor Szakats
50defb24c8 2008-11-19 19:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
  * source/vm/extend.c
    + Added hb_stordl() which is similar to hb_stords() but 
      accepts a Julian date in long numeric format similarly 
      to hb_retdl().

  * contrib/xhb/Makefile
  * contrib/xhb/common.mak
  + contrib/xhb/filestat.c
    + Added FILESTATS() function.
      Work of Giancarlo Niccolai / xhb.
      Minor cleanups made.
    ; Please test. (Only Win32/BCC platform was tested.)
2008-11-19 18:35:51 +00:00
Viktor Szakats
15ee96f92c 2008-11-19 18:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/codepage/cpuakoi.c
    ! Fixed CP reference to point to KOI8-U instead of KOI8.
      Reasons: 1) KOI8-U was used in the _comment_.
               2) Ukrainian quasi standard is KOI8-U instead of KOI8.
                  http://aspell.net/charsets/cyrillic.html
               3) CP KOI8-U wasn't used previously anywhere, yet 
                  was added by same author.
      I hope the author (Pavel Tsarenko) will be able to verify 
      this change.
2008-11-19 17:16:08 +00:00
Viktor Szakats
a883092600 2008-11-19 13:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.mak
  * make_gcc.mak
  * make_vc.mak
    * Smoothened the difference between HARBOURFLAGS and 
      HARBOURFLAGSDLL under the name HARBOURFLAGSLIB.
      Now all core .prg modules will be compiled with -n1 
      Harbour switch. This also means double compilation 
      of .prg modules for static/dynamic libs could be 
      optimized out as the object files are the same in 
      both modes.
      TODO: Make -n1 switch unnecessary.

  * contrib/mtpl_gcc.mak
    + Added -n1 to HARBOURFLAGS. This way Harbour functions 
      in libs will never be considered as entry points in 
      executables or when any such module is built as dynamic 
      lib in the future.

  * contrib/make_gcc_all.sh
    * Minor formatting.
2008-11-19 13:10:13 +00:00
Viktor Szakats
230eeecfc5 2008-11-19 09:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
  * mpkg_tgz.sh
    ! Fixed OSX/Darwin builds:
      - to not require harbour.dylib for binary tools supplied 
        in .tgz package. This way, hbrun/hbmake/hbdoc/hbtest 
        will work out of the box without the need for any 
        special installation or extra manual procedure, or 
        any change whatsoever in the user/system environment. 
        The change also doesn't prevent user installing Harbour 
        to system dirs and/or to utilize harbour.dylib in every way.
      - so that hbmk script creates '-static' executables by default.
        This will make all programs created by hbmk to work out of the 
        box without any special trick described above, or explicit 
        need to use '-static' switch.
        You can override this with '-shared' switch.
      ; [ The price to pay is slightly larger binary package 
          and executable sizes. ]

  * make_gnu.sh
    * Minor sync in help text with recent change.

  * common.mak
    ! Old typo.
2008-11-19 08:05:19 +00:00
Przemyslaw Czerpak
61cd9e0e8c 2008-11-19 06:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * updated OS release version checking for new OpenSuse distros
    * removed r from uname parameters used in get_hbplatform() function
    + added support for HB_MK_STATIC=yes|no envvar which allows to control
      default -static/-shared hbmk switch. It should be set before hb*
      scripts are created

  * harbour/harbour.spec
    * updated OS release version checking for new OpenSuse distros

  * harbour/mpkg_tgz.sh
    * changed installer envelope code to not use 'sed' and reenabled it
      in default builds. Now it should work with different *nixes.
      Please test.
2008-11-19 05:26:09 +00:00
Viktor Szakats
cce8d5b9f7 removed high bytes (UTF-8 chars probably). 2008-11-18 17:47:34 +00:00
Viktor Szakats
29b79449fd 2008-11-18 13:55 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_gcc.sh
  * common.mak
    ! Fixed previous and even older workaround for cyclic 
      reference in common.mak when used with GNU-make.
    ; Please review/test.
2008-11-18 13:05:21 +00:00
Pritpal Bedi
00a802ac7b 2008-11-18 00:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/common.mak
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! Minor typos - strict Harbour code quality warnings.
2008-11-18 08:45:54 +00:00
Pritpal Bedi
5c2e4521ce 2008-11-17 23:59 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/Makefile
  * harbour/contrib/gtwvg/common.mak
    + wvgdlg.prg 
      
  * harbour/contrib/gtwvg/gtwvg.c
    ! Fixed one more issue with screen repaint behavior when
      window was changing size due to font settings.

  * harbour/contrib/gtwvg/wvgcore.c
  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/hbgtwvg.ch
  * harbour/contrib/gtwvg/wvggui.h
  * harbour/contrib/gtwvg/wvgax.prg
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! A reshuffling exercise, Wvt*Classes inching towards
      Xbase++ compatibility, more synchronizations.
      
  + harbour/contrib/gtwvg/wvgdlg.prg
    + Added WvgDialog() class on lines with XbpDialog().

  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Active-X controls hosted with WvgDialog(), pure Windows GT. 
      Previously these were being hosted in WvtCrt() console.
2008-11-18 08:16:08 +00:00
Viktor Szakats
ab6a849699 2008-11-18 03:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* ChangeLog
    * Two recent TODOs in entries marked as [DONE] by this change:
      2008-11-18 01:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
      (It was "broken" due to enhancements, see the TODOs. Thanks anyway.)
2008-11-18 02:05:40 +00:00
Viktor Szakats
f5a6a8112f 2008-11-18 02:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
    ! Fix to previous fix to maximize the window when the initial 
      size would be too big to fit on screen (stupid omission).
      Now the previously cited sizing problem is alright.

  * source/vm/fm.c
    + Replaced HB_NO_FM_STAT and HB_FM_STAT envvars 
      with HB_FM_STAT=yes|no (maybe 0|1 or on|off woud be 
      better or could be accepted as alternatives or 
      replacement). This is to avoid ambiguity when both 
      envvars were set or the app default is not known.
    + Added HB_FM_STATISTICS_DYN_OFF to turn off mem tracking 
      by default when stat module is linked in.

  * source/common/hbverdsp.c
    * Minor cosmetic.
2008-11-18 01:59:51 +00:00
Przemyslaw Czerpak
2fb971abd9 2008-11-18 01:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_gcc.sh
  * harbour/make_gcc.mak
    ! fixed GCC builds broken by modifications in common.mak
2008-11-18 00:35:51 +00:00
Pritpal Bedi
4da9dbd24d 2008-11-16 23:22 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
    ! Resizing: some recent changes reverted back.
    ; TODO: reversal in GTWVT also. It breaks some pre-initialization issues.

  * harbour/contrib/gtwvg/wvgax.prg
    ! Better detection if COM object fails to be created.

  + harbour/contrib/gtwvg/wvggui.c
  + harbour/contrib/gtwvg/wvggui.h
    + Initial commit of pure GUI GT based on GTWVG named WGU.
      ; Subject to heavy changes onwards.
        WGU will become the basis of WvgDialog() plus inherited 
        sub-classes.

  * harbour/contrib/gtwvg/makefile
  * harbour/contrib/gtwvg/common.mak
    + Added new files.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Now <Dialog One> is working properly. 
      It now opens in new thread if it is odd and as usual if even.
    + <Modeless Dialogs><Experiment #1>
      ! Just to have experiments on WGU GT.
2008-11-17 08:13:32 +00:00
Viktor Szakats
be56aaa8b8 2008-11-16 23:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/wvgsink.c
    * Minor cleanup to hb_strncat() (it's best to use 
      'sizeof( target ) - 1' for size, if target is a char 
      array. The buffer was off by one on the good direction.)

  * ChangeLog
    ! ChangeLog was again saved as Unicode. Please guys TURN 
      THIS OFF for good.
2008-11-16 22:08:33 +00:00
Pritpal Bedi
3161755cff 2008-11-16 13:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
    ! Slight fix in WM_PAINT message.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    + Added menu option to open a GET session in GTWVT console.
      ; I was studying to call multiple GTs ( GTWVG and GTWVT ) same time.
        It can be and it also opens up a lot more possibilities.
    
      ; Thanks Przemek for superb basic engine.

    + Added RMChart Active-X manipulation. It is free OCX and 
      can be downloaded from http://www.rmchart.com/
      ; Select from the <Active-X Controls> option.
        Press F11 repeatedly to see 6 different charts.
        Press F12 to change some attributes.
2008-11-16 21:06:09 +00:00
Pritpal Bedi
6d093c56ab 2008-11-16 07:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/gtwvg.h
    ! Further tuned up the resizing behavior. Viktor please check.
2008-11-16 15:31:09 +00:00
Przemyslaw Czerpak
913d287aca 2008-11-16 15:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    + added support for built in GCC atomic functions: __sync_*()
      They are present in GCC >= 4.1 if given CPU supports them. For
      x86 CPU family the ones we use need at least i486 CPU. Please make
      tests with other CPUs like PPC. If given platform/CPU does not support
      them then GCC generate call to function __sync_*_<N>() where <N>
      is size of given type used in atomic operation instead of storing
      inlined assembler code.
2008-11-16 14:31:37 +00:00
Pritpal Bedi
15dbc1c7e3 2008-11-15 23:59 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvgcrt.prg
    ! Further tuned up the resizing behavior. Silly typos.
2008-11-16 08:05:11 +00:00