Commit Graph

1633 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
ad374294bd 2008-01-15 10:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    ! do not define [U]LONGLONG when HB_DONT_DEFINE_BASIC_TYPES macro
      is set
2008-01-15 09:31:22 +00:00
Przemyslaw Czerpak
74e6b4f63f 2008-01-12 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
  * harbour/include/hbapiitm.h
  * harbour/source/vm/itemapi.c
    - removed hb_itemLockReadCPtr()/hb_itemLockWriteCPtr()/hb_itemUnLockCPtr()
      Whole modification which will address all different aspects it to
      complex to introduce it now. I'll return to this problem after
      1.0 release
2008-01-12 12:20:12 +00:00
Przemyslaw Czerpak
2c5bb1c719 2008-01-11 18:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprb.c
    * removed unused variable
2008-01-11 17:13:51 +00:00
Przemyslaw Czerpak
3611daa5a2 2008-01-11 18:01 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapiitm.h
  * harbour/source/vm/itemapi.c
    + added new functions:
         BOOL hb_itemParamStore( USHORT uiParam, PHB_ITEM pItem )
         BOOL hb_itemParamStoreForward( USHORT uiParam, PHB_ITEM pItem )
      They copy/move pItem body to parameter passed by reference and
      return TRUE when operation was done successfully (uiParam was passed
      by reference)
    + added new functions for string manipulation:
         char * hb_itemLockReadCPtr( PHB_ITEM pItem, ULONG * pulLen );
         char * hb_itemLockWriteCPtr( PHB_ITEM pItem, ULONG * pulLen );
         void   hb_itemUnLockCPtr( char * pszString );
      It's recommended to use them instead of hb_itemGetCPtr().
      Pointer to string buffer returned by hb_itemLockReadCPtr() will
      be always valid even if source item will be cleared, destroyed or
      overwritten until hb_itemUnLockCPtr() is called. Each locked string
      has to be unlocked to avoid memory leaks. After unlocking the string
      pointer cannot be longer used.
      hb_itemLockWriteCPtr() works like hb_itemLockReadCPtr() but string
      pointer returned by this function is writable so user can change
      the body of string item. It's the _ONLY_ one way when it's possible.
      Modifying string items using pointers returned by hb_parc() or
      hb_itemGetCPtr() or extracted directly from HB_ITEM body is _FORBIDDEN_
      and can cause unpredictable results (GPF when constant/readonly memory
      pages are changed, changing many different items which share the same
      memory buffer, etc.).
      This is code illustrates how to use hb_itemLockReadCPtr()/
      hb_itemUnLockCPtr() and it's also good example why hb_itemGetCPtr()
      is very danger function and cannot be used in such case - if you
      replace hb_itemLockReadCPtr() with hb_itemGetCPtr() and remove
      hb_itemUnLockCPtr() then you will have buggy code.

         HB_FUNC( MYFUNC )
         {
            PHB_ITEM pObject = hb_param( 1, HB_IT_OBJECT )
            if( pObject )
            {
               char * pszName1, * pszName2;
               PHB_ITEM pResult;

               pResult = hb_objSendMsg( pObject, "POP", 0 );
               pszName1 = hb_itemLockReadCPtr( pResult, NULL );
               pResult = hb_objSendMsg( pObject, "POP", 0 );
               pszName2 = hb_itemLockReadCPtr( pResult, NULL );
               if( pszName1 && pszName2 )
                  hb_retc_buffer( hb_xstrcpy( NULL,
                              "[", pszName1, "]-[", pszName2, "]", NULL ) );
               hb_itemUnLockCPtr( pszName1 );
               hb_itemUnLockCPtr( pszName2 );
            }
         }

      This code shows how to use hb_itemLockWriteCPtr():
         proc main()
            local cVal, cVal2
            cVal := cVal2 := "ABC"
            STRPUT( @cVal2, 2, 42 )
            ? cVal, cVal2
         return
         #pragma begindump
         #include "hbapiitm.h"
         HB_FUNC( STRPUT )
         {
            PHB_ITEM pString = hb_param( 1, HB_IT_STRING );
            ULONG ulAt = hb_parnl( 2 );
            if( pString && ulAt && ISNUM( 3 ) )
            {
               ULONG ulLen;
               char * pszValue;
               pszValue = hb_itemLockWriteCPtr( pString, &ulLen );
               if( pszValue )
               {
                  if( ulAt <= ulLen )
                     pszValue[ ulAt - 1 ] = ( char ) hb_parni( 3 );
                  hb_itemUnLockCPtr( pszValue );
               }
            }
         }
         #pragma enddump

  * harbour/include/hbcompdf.h
  * harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/compiler/hbmain.c
  * harbour/source/compiler/cmdcheck.c
  * harbour/source/compiler/hbusage.c
    * removed HB_I18N_SUPPORT macro and enabled I18N code in default build
2008-01-11 17:01:34 +00:00
Mindaugas Kavaliauskas
40d7f55063 2008-01-11 17:32 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/include/hbexprb.c
  * harbour/source/compiler/hbmain.c
    ! added string escaping before to i18n .pot files
    + added hb_i18n_gettext_strict() support for compiler. This function 
      generates warning if argument is not literal string. See discussion 
      on mailing list from 2007-11-23 to 2007-11-29, for details.
2008-01-11 15:30:31 +00:00
Przemyslaw Czerpak
4d9930caa6 2008-01-09 15:03 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/estack.c
    * added missing static to s_initSymbol declaration

  * harbour/include/hbgtinfo.ch
  * harbour/source/rtl/scroll.c
    * formatting

  * harbour/common.mak
    * added empty line necessary for some make systems (f.e. wmake)

  * harbour/bin/hb-func.sh
    * changed system libs order to avoid problems on some platforms

  * harbour/bin/pack_src.sh
    * collect information about repository files using 'svn status -v'
      command instead of scanning .svn/entries files to avoid problems
      with different formats used by SVN

  * harbour/include/hbchksum.h
  * harbour/include/hbset.h
    ! added missing extern in few function prototypes

  * harbour/include/hbclass.ch
    * use HB_CLS_PARAM_LIST macro instead of ... for strict C52 mode

  * harbour/source/common/hbfsapi.c
    + added missing const to one declaration

  * harbour/source/common/hbstr.c
    * minor cleanup in hb_stricmp()

  * harbour/source/rtl/inkey.c
    ! casting to avoid negative values during char to int translation

  * harbour/source/rtl/mouse53.c
    * added one internal definition

  * harbour/source/rtl/philes.c
    * removed unnecessary #include(s)
    * added missing const to one declaration

  * harbour/source/rtl/valtype.c
  * harbour/source/vm/hashfunc.c
    * cleanup RT error call to eliminate hb_paramError() function

  * harbour/source/pp/pplib.c
  * harbour/source/vm/runner.c
  * harbour/source/vm/debug.c
  * harbour/source/vm/arrayshb.c
  * harbour/source/vm/classes.c
  * harbour/source/vm/hvm.c
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtfunc.c
  * harbour/source/rtl/hbinet.c
  * harbour/source/rtl/hbregex.c
  * harbour/source/rtl/idle.c
  * harbour/source/rtl/errorapi.c
  * harbour/source/rtl/hbtoken.c
  * harbour/source/rtl/direct.c
  * harbour/source/rdd/dbcmd.c
  * harbour/source/rdd/dbcmd53.c
  * harbour/source/rdd/fieldhb.c
  * harbour/source/rdd/hbsix/sxcompr.c
  * harbour/source/rdd/hbsix/sxcrypt.c
  * harbour/source/compiler/hbcmplib.c
  * harbour/contrib/hbrddads/adsfunc.c
  * harbour/contrib/hbrddads/adsmgmnt.c
    - removed unnecessary calls to hb_ret()
    % replaced hb_itemRelease( hb_itemReturn( pItem ) ) with
      hb_itemReturnRelease( pItem )
    % replaced hb_itemPut*( hb_arrayGetItemPtr( pArray, ... ), ... ) with
      hb_arraySetNI( pArray, ... )

  * harbour/source/macro/macro.y
  * harbour/source/macro/macro.yyc
  * harbour/contrib/xhb/cstructc.c
  * harbour/contrib/hbw32/w32_ole.c
  * harbour/contrib/hbgtwvg/wvtcore.c
    * cleaned typos with double ;;

  * harbour/source/vm/extend.c
  * harbour/source/rtl/math.c
    * cleaned HB_EXPORT usage

  * harbour/source/pp/ppcore.c
    ! fixed Harbour extension which allows to use match marker
      at the beginning of rule definition

  * harbour/source/main/harbour.c
    ! fixed hex conversion in FM log module - fix done by Phil Krylov
      in xHarbour

  * harbour/source/rdd/nulsys/nulsys.c
    + added dummy version of DBEVAL() and DBFILTER() - these functions
      are used in RTL

  * harbour/contrib/hbct/bitnum.c
    + added INTNEG(), INTPOS()

  + harbour/contrib/hbct/ctrand.prg
    + added RANDOM(), RAND() - borrowd from xHarbour by Pavel Tsarenko

  + harbour/contrib/hbct/setrc.c
    + added SETRC()

  * harbour/contrib/hbct/getinput.prg
    % minor optimization

  * harbour/contrib/hbct/Makefile
  * harbour/contrib/hbct/common.mak
    * updated for new files

  * harbour/contrib/hbnf/tempfile.prg
    * use HB_FTempCreate() - modification borrowed from xHarbour
      TOFIX this function uses hb_isbyref() which does not exist
      in Harbour

  * harbour/config/w32/msvc.cf
    + added -nologo flag for cl.exe (Phil Krylov's modification borrowed
      from xHarbour

  * harbour/config/w32/mingw32.cf
    - removed repeated definitions

  * harbour/config/w32/install.cf
    ! added alternative install rule for command.com with max line size limit
2008-01-09 14:04:12 +00:00
Viktor Szakats
8ceb521c43 restored unwanted modification 2008-01-08 18:37:10 +00:00
Viktor Szakats
995b647af4 2008-01-08 19:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbclass.ch
     ! Enabling HB_CLS_NO_DECORATION if compiled with HB_C52_STRICT, 
       since in strict mode some PP extensions required by the 
       decoration feature are not available.
       (Thanks Przemek for the tip)
2008-01-08 18:36:06 +00:00
Przemyslaw Czerpak
11f489338e 2007-12-22 11:28 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkslib.sh
    + added -fPIC to GCC parameters - it's necessary on some platforms
    + use .sl suffix for shared library in HP-UX

  * harbour/bin/hb-func.sh
    + use .sl suffix for shared library in HP-UX

  * harbour/bin/postinst.bat
    * removed < > from email address

  * harbour/include/hbgtcore.h
  * harbour/source/rtl/gtkeycod.c
  * harbour/source/rtl/gtdos/gtdos.c
  * harbour/source/rtl/gtos2/gtos2.c
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
    * fixed typo in function name - it should be hb_gt_dos_keyCodeTranslate()
      not hb_gt_dos_keyCodeTanslate()

  * harbour/make_tgz.sh
    * updated for non GNU tar versions

  * harbour/ChangeLog
    * replaced TABs with SPACEs
2007-12-22 10:28:28 +00:00
Przemyslaw Czerpak
609f24e2e4 2007-12-20 11:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  * harbour/include/hbgtcore.h
  + harbour/source/rtl/gtkeycod.c
    + added hb_gt_dos_keyCodeTanslate() - based on hb_gt_ReadKey()
      from GTDOS by David G. Holm <dholm@jsd-llc.com>

  * harbour/source/rtl/gtdos/gtdos.c
  * harbour/source/rtl/gtos2/gtos2.c
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
    * use hb_gt_dos_keyCodeTanslate() to eliminate repeated code

  * harbour/contrib/hbrddads/Makefile
  * harbour/contrib/hbpgsql/Makefile
    * updated code to locate directories with header files

  * harbour/source/rtl/hbini.prg
    ! fixed typo in HB_IniRead()

  * harbour/source/rtl/persist.prg
    ! eliminated internal static variable
2007-12-20 10:45:01 +00:00
Przemyslaw Czerpak
ed89a813a2 2007-12-19 13:05 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbmath.h
  * harbour/source/rtl/math.c
    * cleaned matherr API, now it works in the same way on all
      platforms - this modification fixes also some strange
      results when math functions were called with wrong arguments
      on some platforms

  * harbour/contrib/hbct/trig.c
  * harbour/contrib/hbct/finan.c
  * harbour/contrib/hbct/ctmath2.c
    * updated for new matherr API and cleaned some minor problems

  * harbour/contrib/hbct/files.c
    ! use DATE and TIME parameters formated like for DOS in OS2
      version of SETFDATI() - David,  if possible please repeat
      the test from my previous commit, thank you.
2007-12-19 12:05:59 +00:00
Przemyslaw Czerpak
3a934f0ae8 2007-12-18 11:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
    * reverted conversion to UTF8 of national characters (svn diff)

  * harbour/include/hbdate.h
  * harbour/source/common/hbdate.c
    + added hb_timeStrGet()

  * harbour/contrib/hbct/files.c
    * use hb_timeStrGet() instead of sscanf()
    + added OS2 version of SETFDATI() - please test it !!!
      I'm interesting in results of this code compiled with OS2
      Harbour build:
         proc main()
            local cFile:="_tst.tmp"
            FCLOSE(FCREATE(cFile))
            ? FILEDATE(cFile), FILETIME(cFile)
            ? SETFDATI(cFile,STOD("20061129"),"12:34:45")
            ? FILEDATE(cFile), FILETIME(cFile)
            ? SETFDATI(cFile)
            ? FILEDATE(cFile), FILETIME(cFile)
            FERASE(cFile)
         return
2007-12-18 10:18:02 +00:00
Przemyslaw Czerpak
cb47250bfc 2007-12-17 21:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
  * harbour/include/hbgtcore.h
  * harbour/source/rtl/gtapi.c
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gt_tpl/gt_tpl.c
  * harbour/source/rtl/gtdos/gtdos.c
  * harbour/source/rtl/gtwin/gtwin.c
  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtos2/gtos2.c
  * harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gtsln/gtsln.c
  * harbour/source/rtl/gttrm/gttrm.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/gtgui/gtgui.c
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/contrib/hbct/ctwin.c
  * harbour/contrib/hbgtwvg/gtwvg.c
  * harbour/source/rtl/gtalleg/gtalleg.c
  * harbour/source/rtl/gtalleg/ssf.h
  * harbour/source/rtl/gtalleg/fixedth.sfc
    * added missing const to few declarations
    * formatting and minor code cleanup

  * harbour/source/rtl/hbgtcore.c
    ! fixed GTNUL registration

  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/source/rtl/gtstd/gtstd.c
    * moved static variables to dynamic GT area

  * harbour/contrib/hbct/files.c
    ! fixed DOS version
2007-12-17 20:22:32 +00:00
Przemyslaw Czerpak
b30055548c 2007-12-16 13:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbfsapi.c
    + added OS2 version of hb_fsFileExists() and hb_fsDirExists()
      Please test - I do not have OS2

  * harbour/source/rdd/dbf1.c
    ! removed unnecessary printf() message I left by mistake

  * harbour/contrib/hbct/files.c
    + added OS2 version of SETFATTR()
      Please test - I do not have OS2

  * harbour/config/os2/global.cf
    + added temporary workaround for possible problems with some
      GNU make versions

  * harbour/make_deb.sh
    + build hbpgsql when libpq-dev is installed

  * harbour/include/clipdefs.h
    * do not define PBYTE, PSHORT, PUSHORT, PLONG, PULONG, PBOOL, PVOID
      when HB_OS_OS2 && HB_DONT_DEFINE_BASIC_TYPES is defined
2007-12-16 12:32:41 +00:00
Przemyslaw Czerpak
8469a5d29c 2007-12-13 16:55 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
  * harbour/source/rtl/gtapi.c
    ! fixed DISPCOUNT() return value
    * cleaned some GT functions declarations
2007-12-13 15:55:56 +00:00
Przemyslaw Czerpak
1b46d933d7 2007-12-07 10:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtapi.c
  * harbour/source/rtl/inkeyapi.c
  * harbour/source/rtl/mouseapi.c
    - removed hb_gt_*(), hb_inkey_*(), hb_mouse_*() functions
    + implemented HB_GTSELF_*() functions and changed HB_GTSUPER_*()
      ones to operate on GT context passed ad 1-st parameter.
      Now GT API allows to create many GTs working simultaneously
    + added hb_gt_Base() core function which returns GT context
      it will be extended soon to allow using many GT contexts,
      setting thread default one or switch between them using some
      .prg function.

  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/gttrm/gttrm.c
  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gtcrs/gtcrs.h
  * harbour/source/rtl/gtsln/gtsln.c
  * harbour/source/rtl/gtsln/gtsln.h
  * harbour/source/rtl/gtsln/kbsln.c
  * harbour/source/rtl/gtsln/mousesln.c
  * harbour/source/rtl/gtalleg/gtalleg.c
  * harbour/source/rtl/gtgui/gtgui.c
  * harbour/source/rtl/gtwin/gtwin.c
  * harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/contrib/hbct/ctwin.c
  * harbour/contrib/hbct/ctwin.h
  * harbour/contrib/hbct/ctwfunc.c
  * harbour/contrib/hbgtwvg/gtwvt.h
  * harbour/contrib/hbgtwvg/gtwvt.c
    * updated GT code for new GT API. I still haven't added GT cloning
      to them and only GTTRM is ready to use in multi window MT programs
      but now they can be systematically modified and it can be done
      locally without core code modifications.

  * harbour/contrib/hbgtwvg/wvtutils.c
    ! fixed some memory leaks in Unicode conversions
2007-12-07 09:44:03 +00:00
Mindaugas Kavaliauskas
1e7aadcf86 2007-12-06 11:35 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/lang/msgltwin.c
    * more changes from LT to LTWIN
  * harbour/common.mak
    * restored missing msgltwin.c 
  * harbour/include/hbapi.h
  * harbour/source/vm/hashes.c
    + added hash key support for pointer type
2007-12-06 09:34:22 +00:00
Viktor Szakats
12bb58304e 2007-12-06 02:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbextern.ch
   * common.mak
   * source/codepage/Makefile
   - source/codepage/cpdedos.c
   + source/codepage/cpde850.c
   - source/codepage/cpeldos.c
   + source/codepage/cpel737.c
   - source/codepage/cpesdos.c
   + source/codepage/cpes850.c
   - source/codepage/cpfrdos.c
   + source/codepage/cpfr850.c
   - source/codepage/cptrdos.c
   + source/codepage/cptr857.c
     ! Renamed some codepage modules to include the 
       actual DOS codepage number instead of nothing 
       or generic "dos" name.

   * common.mak
   * source/lang/Makefile
   + source/lang/msgtr857.c
   - source/lang/msgtrdos.c
     ! Rename one language module to be in sync with 
       proper internal ID.
2007-12-06 01:26:32 +00:00
Viktor Szakats
5a278f5646 2007-12-06 01:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* doc/howtosvn.txt
     ! Fixed the SVN propset command to include all needed keywords, 
       not just "Id".

   * common.mak
   * source/codepage/Makefile
   - source/codepage/cpgedos.c
   - source/codepage/cpgeiso.c
   + source/codepage/cpdedos.c
   + source/codepage/cpdeiso.c
     ! Renamed to be in sync with rules and content.

   * source/lang/msgnl.c
     ! svn propset svn:keywords "Author Date Id Revision".
       (to correct my prev commit)

   * include/hbextern.ch
     ! Adjusted CP/MSG module names.
2007-12-06 01:12:29 +00:00
Przemyslaw Czerpak
27487f2460 2007-12-05 08:25 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
    * added HB_GTSELF_*() macros for future use

  * harbour/source/rtl/gtalleg/gtalleg.c
  * harbour/source/rtl/gtalleg/ssf.h
  * harbour/source/rtl/gtalleg/fixedth.sfc
  * harbour/source/rtl/gtalleg/ssf.c
    * replaced one global variable by static one
    * formatting

  * harbour/contrib/hbct/files.c
    ! fixed default attribute mask in FILEATTR(<cFileName>)
2007-12-05 07:26:00 +00:00
Przemyslaw Czerpak
9fdbf7de76 2007-12-04 12:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
    + added some missing HB_GTSUPER_* functions

  * harbour/contrib/hbgtwvg/wvtcore.c
    * use hb_gt*() functions instead of hb_gt_*() ones

  * harbour/contrib/hbgtwvg/wvtutils.c
  * harbour/contrib/hbgtwvg/gtwvt.c
  * harbour/source/rtl/gtwin/gtwin.c
  * harbour/source/rtl/gtgui/gtgui.c
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/source/rtl/gttone.c
  * harbour/source/rtl/gtclip.c
    * minor cleanup in hb_gt_w32_*() function names

  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtclip.c
    * use common for all GT internal Clipboard buffer - thanks to Pritpal
      for a note
2007-12-04 11:52:20 +00:00
Przemyslaw Czerpak
62ed005979 2007-12-03 22:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  * harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/inkey.c
  + harbour/source/rtl/inkeyapi.c
    * moved hb_inkey*() functions to GT subsystem so now they can be
      overloaded by GT drivers and/or operate on different GT context

  * harbour/source/rtl/mouse53.c
    * eliminated to unused static variables

  * harbour/source/rtl/mouseapi.c
    * do not include unnecessary header files

  * harbour/source/rtl/gtchrmap.c
    * replaced // comment by /* ... */
2007-12-03 21:36:22 +00:00
Przemyslaw Czerpak
8abd2b93d8 2007-12-03 11:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
    * removed declaration for not existing function: hb_inkeyGet()

  * harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
    * moved all static variables used by core GT code to HB_GT_BASE
      structure

  * harbour/source/rtl/inkey.c
    * cleanup

  * harbour/contrib/Makefile
    * moved HB_CONTRIBLIBS to the end build library list because they may
      need some other contrib libraries in dependences list
2007-12-03 10:48:50 +00:00
Przemyslaw Czerpak
37cc2dae64 2007-12-02 04:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
  * harbour/source/rdd/hsx/hsx.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/hbpcre/ChangeLog
  * harbour/source/hbpcre/pcrecomp.c
    * minor modifications to pacify some MSVC warnings
2007-12-02 03:33:17 +00:00
Marek Paliwoda
dba04d8750 2007-12-01 21:52 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/include/hbwince.h
    ! Fixed compilation in C++ mode by renaming local variable
      named "template" to "tmplt". "template" is a reserved
      word in MSVC C++.
    + Added few missing WINAPI function declarations under
      MSVC WinCE.

  * harbour/source/common/hbwince.c
    ! Fixed compilation in C++ mode by renaming local variable
      named "template" to "tmplt". "template" is a reserved
      word in MSVC C++.
2007-12-01 20:52:31 +00:00
Marek Paliwoda
83cd6eeabe 2007-11-30 20:25 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/include/hbstack.h
    ! Added HB_EXPORT to hb_stackPop(). Required
      by dll build  with -gc3 switch
    * Removed HB_EXPORT from hb_stackReturnItem()
      and hb_stackSelfItem()
2007-11-30 19:29:27 +00:00
Przemyslaw Czerpak
d80b5e7389 2007-11-30 19:57 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtalleg/gtalleg.c
  * harbour/source/rtl/gtdos/gtdos.c
  * harbour/source/rtl/gtos2/gtos2.c
  * harbour/source/rtl/gtwin/gtwin.c
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/source/rtl/gtgui/gtgui.c
  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gtsln/gtsln.c
  * harbour/source/rtl/gttrm/gttrm.c
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/contrib/libct/ctwin.c
  * harbour/contrib/gtwvg/gtwvt.c
    + added GT ID (int s_GtId)

  * harbour/include/hbapigt.h
  * harbour/source/rtl/gtapi.c
    + added some missing wrappers for hb_gt_* functions to avoid
      including hbgtcore.h by non GT code - such functions separation
      will be important in MT mode where each thread can operate on
      different GT context (window)

  * harbour/contrib/libct/screen2.c
  * harbour/contrib/libct/screen1.c
  * harbour/contrib/libct/ctwfunc.c
    * use hb_gt* functions instead of hb_gt_*() ones

  * harbour/include/hbapigt.h
  * harbour/source/rtl/inkey.c
    * changed hb_setInkeyLast() to hb_inkeySetLast() to keep hb_inkey*()
      prefix in all inkey() related functions
    + added hb_inkeySetText()
    - removed hb_inkeyTranslate()

  * harbour/contrib/libct/setlast.c
    * use hb_inkeySetLast() instead of hb_setInkeyLast()

  * harbour/source/rdd/usrrdd/usrrdd.c
    * removed dummy xHarbour code not usable in Harbour

  * harbour/include/hbapi.h
  * harbour/source/vm/codebloc.c
  * harbour/source/vm/hvm.c
    * added const to BYTE * pCode parameter of hb_codeblockMacroNew()
2007-11-30 18:57:51 +00:00
Przemyslaw Czerpak
6a4c657ed7 2007-11-27 18:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbfsapi.c
    * define INVALID_FILE_ATTRIBUTES when not defined in C header
      files - temporary workaround for missing INVALID_FILE_ATTRIBUTES
      definition in new MSVC versions

  * harbour/include/hbwince.h
    * removed INVALID_FILE_ATTRIBUTES definition
2007-11-27 17:24:27 +00:00
Przemyslaw Czerpak
dbf69c2c15 2007-11-27 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/pack_src.sh
    * updated for recent file name modifications

  * harbour/include/hbgtcore.h
  * harbour/source/rtl/gtclip.c
    * changed hb_gt_w32_SetClipboard() type from void to BOOL

  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
    * added basic input support for DJGPP

  * harbour/contrib/gtwvg/gtwvt.c
    ! fixed memory leak and GPF trap

  * harbour/contrib/gtwvg/wvtutils.c
    ! rewritten and fixed CLIPBOARD functions - Pritpal this functions
      should be removed, they are redundant and works only in MS-Windows
    * make WVT__GETOPENFILENAME() and WVT__GETSAVEFILENAME() Unicode
      ready and fixed possible GPF trap
2007-11-26 23:13:01 +00:00
Przemyslaw Czerpak
67a6e11654 2007-11-25 12:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwmain.c
  * harbour/source/vm/mainwin.c
    ! fixed unnecessary conversion of WinMain() parameters on W32/W64
      when UNICODE macro is set - thanks to Chen

  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/delim1.c
    ! fixed code wrongly synced with xHarbour - in Harbour HB_SET_EOL
      is char* not PHB_ITEM - thanks to Andi

  * harbour/source/compiler/genc.c
    ! fixed file name in generated for C inline code by escaping
      special characters - thanks to Andi

  * harbour/source/rtl/gtwvt/gtwvt.c
    * minor code cleanup

  * harbour/contrib/gtwvg/wvtcore.c
    ! fixed setting default foreground and background color when user
      does not pass it's own one. Previous versions was using _s->background
      and _s->foreground - it was wrong because this variables in all
      GTWVT base GTs (also in xHarbour) contains not default color but
      the color recently used to redraw some part of screen - f.e. after
      exposing some region - it means that they can have any value.
      Such bugs are hard to locate because the same program can be executed
      many times without any problem and suddenly he will use wrong colors
      drawing sth - if you observed such effect then it can be the results
      of the above problem. Now default color is taken from core GT code.
      Two functions make it: hb_wvt_FgColorParam() and hb_wvt_BgColorParam()
      Both accept also colors passed as standard Clipper strings.
      The same should be also fixed in xHarbour just like the problem with
      executing registered user functions when HVM is closing fixed in
      previous commit - even if now it does not cause GPF (due to race
      condition it may be exploited only sometimes) then it does not mean
      it works correctly.
2007-11-25 11:13:12 +00:00
Przemyslaw Czerpak
021bc664d5 2007-11-23 21:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/doc/man/harbour.1
  * harbour/source/compiler/hbusage.c
    + added description for -j switch

  * harbour/include/hbexprb.c
    * replaced // comments by /* */
    * accept <cContext> (domain) parameters of HB_i18nGettext() when
      number of parameters is two or more
      Should we generate compile time warning when wrong number of
      parameters is passed to this function or they are not literal
      strings? Maybe only after -j+ or sth like that?

  * harbour/include/hbclass.ch
  * harbour/include/tbrowse.ch
  * harbour/include/hbpers.ch
  * harbour/include/getexit.ch
    * replaced // comments by /* */
2007-11-23 20:14:30 +00:00
Mindaugas Kavaliauskas
a3cbfe607f 2007-11-23 18:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/include/hbexprb.c
    * changed HB_i18nGettext() to hb_i18n_gettext(), to respect 
      original gettext lowercase function name convention
2007-11-23 16:53:11 +00:00
Viktor Szakats
630119e503 2007-11-23 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* make_b32.mak
   * make_gcc.mak
   * make_vc.mak
   * make_vcce.mak
   * common.mak
     ! Fixed copyrights.
     ! Tabs converted to spaces.
     - CFLAGS not advertised anymore as an official public var to set 
       compiler flags.
       C_USR should be used, which is also GNU make system compatible.

   * make_vc.mak
   * make_vcce.mak
     ! Removed /Y from copy command
       (we're using the COPYCMD trick in core make files).

   - contrib/adordd/access1.prg
   - contrib/adordd/access2.prg
   - contrib/adordd/mysql1.prg
   - contrib/adordd/mysql3.prg
   + contrib/adordd/tests
   + contrib/adordd/tests/access1.prg
   + contrib/adordd/tests/access2.prg
   + contrib/adordd/tests/mysql1.prg
   + contrib/adordd/tests/mysql3.prg
   - contrib/btree/mktest.bat
   + contrib/btree/test/mktest.bat
   - contrib/samples/testdate.prg
   - contrib/samples/testenv.prg
   - contrib/samples/testgaug.prg
   - contrib/samples/testnum.prg
   - contrib/samples/teststat.prg
   - contrib/samples/testtime.prg
   - contrib/samples/tststack.prg
   + contrib/samples/tests
   + contrib/samples/tests/testdate.prg
   + contrib/samples/tests/testenv.prg
   + contrib/samples/tests/testgaug.prg
   + contrib/samples/tests/testnum.prg
   + contrib/samples/tests/teststat.prg
   + contrib/samples/tests/testtime.prg
   + contrib/samples/tests/tststack.prg
     * Test related files moved to test dir.
     ! Added EOLs to the last line in adordd files.

   - contrib/gd/README
   + contrib/gd/readme.txt
     * Renamed to use proper extension.

   * contrib/adordd/common.mak
   * contrib/apollo/common.mak
   * contrib/bmdbfcdx/common.mak
   * contrib/btree/common.mak
   * contrib/directx/common.mak
   * contrib/firebird/common.mak
   * contrib/freeimage/common.mak
   * contrib/gd/common.mak
   * contrib/hbzlib/common.mak
   * contrib/hgf/win32/common.mak
   * contrib/htmllib/common.mak
   * contrib/ole/common.mak
   * contrib/pdflib/common.mak
   * contrib/pgsql/common.mak
   * contrib/libct/common.mak
   * contrib/libgt/common.mak
   * contrib/libnf/common.mak
   * contrib/libmisc/common.mak
   * contrib/mysql/common.mak
   * contrib/odbc/common.mak
   * contrib/rdd_ads/common.mak
   * contrib/samples/common.mak
   * contrib/telepath/common.mak
   * contrib/tip/common.mak
   * contrib/win32/common.mak
   * contrib/xhb/common.mak
     * Formatting made consistent.

   * contrib/adordd/common.mak
   * contrib/bmdbfcdx/common.mak
   * contrib/btree/common.mak
   * contrib/freeimage/common.mak
   * contrib/gd/common.mak
   * contrib/hgf/win32/common.mak
   * contrib/libct/common.mak
   * contrib/libnf/common.mak
   * contrib/mysql/common.mak
   * contrib/odbc/common.mak
   * contrib/pdflib/common.mak
   * contrib/pgsql/common.mak
   * contrib/rdd_ads/common.mak
   * contrib/samples/common.mak
   * contrib/tip/common.mak
   * contrib/xhb/common.mak
     + Added headers.

   * contrib/btree/common.mak
   * contrib/freeimage/common.mak
   * contrib/freeimage/Makefile
   * contrib/hbzlib/common.mak
   * contrib/hbzlib/Makefile
   * contrib/libct/common.mak
   * contrib/libmisc/common.mak
   * contrib/libmisc/Makefile
   * contrib/mysql/common.mak
     ! Library names synced between GNU and non-GNU 
       make systems.
     ! Some libraries renamed to not have a too common 
       or non-descriptive name, like "misc".
       non-GNU hb_btree   -> hbbtree (synced with GNU)
       non-GNU fi_lib     -> hbfreeimage
       GNU     fi_lib     -> hbfreeimage
       non-GNU hbzip      -> hbziparch
       GNU     ziparchive -> hbziparch
       non-GNU libct      -> ct (synced with GNU)
       non-GNU libmisc    -> hbmisc
       GNU     misc       -> hbmisc
       non-GNU mysql      -> hbmysql (synced with GNU)

   * contrib/apollo/Makefile
   * contrib/firebird/Makefile
     ! Fixed space to tabs.

   + contrib/msql/make_b32.bat
   + contrib/msql/make_vc.bat
   + contrib/msql/common.mak
     + Added non-GNU make files.
     ; TOFIX: I cannot compile these still.

   * contrib/msql/Makefile
     ! Added SVN header.
     ; TOFIX: This is a non-standard Makefile.
              Did anyone manage to compile this lib?

   * contrib/adordd/adordd.ch
   * contrib/adordd/adordd.prg
     ! Added EOLs to the last line.

   * utils/hbmake/hbmutils.prg
     * Lib names fixed and changed to reflect the recent 
       changes in contrib.

   * contrib/rdd_ads/rddads.h
     ! Minor cosmetic fix.

   * include/hbextern.ch
   * source/rtl/memofile.c
     ! MEMOWRIT() 3rd parameter marked as extension.
     + HB_MEMOWRIT() function added, which never write the 
       obsolete EOF char at the end of the file.
2007-11-23 02:08:37 +00:00
Mindaugas Kavaliauskas
ce44121edc 2007-11-23 03:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/include/hbcompdf.h
  * harbour/source/include/hbexprop.h
  * harbour/source/include/hbexprb.c
  * harbour/source/compiler/cmdcheck.c
  * harbour/source/compiler/hbmain.c
    + added i18n support
      Implemented -j[filename] switch to indicate output filename. Default 
      filename is <sourcefilename>.pot. If switch -o is used, this file
      is created in speficied output path.
      Output file format is compatible with 'gettext' utils, but not all
      available features are implemented.
      Harbour level function HB_i18nGettext( cText [, cContext ] ) sould be
      used to indicate translatable strings.
      All this commit is commented using #ifdef HB_I18N_SUPPORT and is in 
      development stage. Please, do not use it yet.
2007-11-23 01:55:37 +00:00
Przemyslaw Czerpak
7f59b345ce 2007-11-23 01:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/source/vm/hvm.c
    * make hb_vmPushNumInt() public function

  * harbour/contrib/gtwvg/wvtcore.c
    ! fixed hb_wvt_gtDlgProcMLess() and hb_wvt_gtDlgProcModal()
      - fixed GPF when codeblock are used
      - use hb_vmPushNumInt() instead of hb_vmPushLong() to push
        handles and numbers with potentially unknown size.
        I still suggest to use pointers ITEMs instead of converting
        handles to numbers but I'm leaving such modifications to library
        authors - using hb_vmPushNumInt() is a workaround for striping
        highest 32 bit from handles by hb_vmPushLong() in XP64 
      - use hb_vmRequestReenter() / hb_vmRequestRestore() to avoid crash
        when function/codeblock is executed during HVM has been serving
        an exception (f.e. BREAK/QUIT/RETURN)
2007-11-23 00:20:02 +00:00
Przemyslaw Czerpak
585cdb174c 2007-11-22 14:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
    + added HB_TCHAR_CONVNREV() macro

  * harbour/contrib/gtwvg/wvtutils.c
  * harbour/contrib/gtwvg/wvtcore.c
  * harbour/contrib/gtwvg/gtwvt.c
    * cleaned MinGW warnings
    ! fixed compilation with HB_TR_LEVEL_DEBUG
    * some minor cleanup in UNICODE conversions
2007-11-22 13:22:20 +00:00
Viktor Szakats
6b9e24dd93 2007-11-17 03:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* make_vcce.bat
   * make_vcce.mak
     ! Minor corrections (syncing with existing files).

   * doc/genhtm.bat
     ! Minor fix to make it work out of the box.
     - Some obsolete stuff removed from it.

   * include/hbapiitm.h
   * include/hbapi.h
   * source/vm/itemapi.c
     + Added hb_itemPutCLConst() which is the same as 
       hb_itemPutCConst() but the buffer length can be passed.
       Same as xhb hb_itemPutCRawStatic().

   + contrib/xhb/hbcompat.h
     + Added C level compatibility header file.

   * contrib/win32/w32_ole.c
     ! hb_itemPutCRawStatic() -> hb_itemPutCLConst()
     ! Some more xhb API calls changed to Harbour ones.
     ! TraceLog() -> HB_TRACE()
     ! HB_ITEM s_OleAuto -> PHB_ITEM s_pOleAuto
       TOFIX (new): s_pOleAuto is not freed on app exit.
     ! Fixed a few more internal accesses by using API 
       calls.
     ; NOTE: There are four more complicated problems here 
             to be solved:
             1) hb_stackSetActionRequest() call
             2) Passing direct references to HB_ITEM .value 
                members to external functions.
             3) Storing "hidden" information in string ITEMs 
                prepended after the strings' actual content.
             4) Not freeing s_pOleAuto (this var BTW is used in 
                one static function only)

   * source/rtl/hbinet.c
   * source/rdd/dbcmd.c
     ! Changed some xhb C level API calls to Harbour ones.

   * contrib/xhb/Makefile
   * contrib/freeimage/Makefile
   * contrib/apollo/Makefile
   * contrib/firebird/Makefile
   * contrib/libct/Makefile
   * contrib/telepath/Makefile
   * contrib/pgsql/Makefile
   * contrib/gd/Makefile
   * contrib/libnf/Makefile
   * contrib/tip/Makefile
   * contrib/adordd/Makefile
   * contrib/rdd_ads/Makefile
   * contrib/btree/Makefile
   * contrib/samples/Makefile
   * contrib/mysql/Makefile
   * contrib/odbc/Makefile
   * contrib/pdflib/Makefile
     ! Added C and Harbour public headers to GNU makefiles.
     ! Added one missing SVN header.

   * contrib/pdflib/pdfhbdoc.ch
   * contrib/pdflib/pdf.ch
     ! Added missing SVN headers.

   - contrib/pdflib/pdflib.h
     - Removed this file which belongs to the pdflib 
       package. This package is needed anyway to use 
       this contrib. (but the contrib is badly broken)

   * contrib/pdflib/make_b32.bat
   * contrib/pdflib/make_vc.bat
     ! Minor typo.

   * source/rtl/persist.prg
     ! Prefixed static var name with "s_"
2007-11-17 02:26:51 +00:00
Viktor Szakats
0de23eaa4f 2007-11-16 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.ch
     ! Minor fix in comments.

   * contrib/xhb/hbcompat.ch
     + Added hb_rddInfo() translation for xhb apps.

   * common.mak
   * include/hbextern.ch
   * source/rtl/Makefile
   + source/rtl/natmsgu.c
   * source/rtl/natmsg.c
     + Added Harbour internal version of undocument Clipper 
       Nat*() (and friends) calls. These are always available 
       in core.
       Harbour __natIsAffirm()   = Clipper IsAffirm()
       Harbour __natIsNegative() = Clipper IsNegative()
       Harbour __natMsg()        = Clipper NationMsg()
       Harbour __natSortVer()    = Clipper _NatSortVer()
       Harbour __natMsgVer()     = Clipper _NatMsgVer()

   * utils/hbtest/rt_misc.prg
   * source/rtl/dircmd.prg
   * source/rtl/getsys.prg
   * source/rtl/tgetlist.prg
   * source/rtl/tlabel.prg
   * source/rtl/treport.prg
     ! Now using Harbour internal __NAT*() functions 
       instead of C5.x undocumented calls, so Harbour 
       will now compile with HB_C52_UNDOC turned off.
2007-11-16 13:48:29 +00:00
Viktor Szakats
a35b2d9643 2007-11-14 23:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* common.mak
   * include/hbextern.ch
   * source/rdd/Makefile
   + source/rdd/rddinfo.c
   * source/rdd/dbcmd.c
   + source/rdd/dbdrop.c
   + source/rdd/dbcmd53.c
   + source/rdd/dbexists.c
   + source/rdd/fieldhb.c
     ! Moved away C53 functions to a separate file.
     + Added HB_RDDGETTEMPALIAS() as a documented version 
       of the long existing __RDDGETTEMPALIAS(). The latter 
       name still kept for compatibility.
     ! Moved away non-namespace conformant HB_EXTENSIONs 
       to separate files to cause less harm form those not 
       wanting these or already using these names in app 
       code.
     + Added HB_RDDINFO() namespace conformant version of 
       the RDDINFO() Harbour extension. RDDINFO() still works 
       but it's now defined in a separate file to cause less 
       potential harm.
     - Removed HB_EXTENSION guards from around DBDROP(), DBEXISTS(), 
       RDDINFO(), FIELDLEN(), FIELDDEC(), FIELDTYPE() non namespace 
       conformant Harbour extensions.
     ; Przemek: I'm sorry you didn't bother to answer, so I 
       just can hope these address the problems you were having.

   * source/rdd/sdf1.c
   * source/rdd/delim1.c
     ! Removed two __XHARBOUR__ guards, by making the guarded 
       code the default. We have SET EOL support in Harbour now, 
       so this seems okey. If not, tell.
     ; TOFIX: We still have __XHARBOUR__ #defines in pp/ppcore.c 
       and debug/debugger.prg.

   * include/hbsetup.ch
     ! HB_EXTENSION turned off.
2007-11-14 23:08:54 +00:00
Przemyslaw Czerpak
1a936ea93a 2007-11-14 19:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/source/common/hbwince.c
  * harbour/utils/hbver/hbverfix.c
    * modified for clean compilation with POCC/XCC and ARM processors
2007-11-14 18:00:38 +00:00
Przemyslaw Czerpak
df61dfde04 2007-11-13 14:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_xmingwce.sh
  * harbour/make_xmingw.sh
    * do not create compiler binaries in cross builds
    * use hbce and hbw prefixes for generated build scripts

  * harbour/make_tgz.sh
    * use strip from cross compiler instead of native one

  * harbour/include/Makefile
    + added missing header files

  * harbour/harbour.spec
    * minor cleanup

  * harbour/source/compiler/cmdcheck.c
    * accept internal option delimiters in define value
      (-d option, f.e.: '-dABC="QWE-ASD"')
2007-11-13 13:13:53 +00:00
Przemyslaw Czerpak
c8bc7d5225 2007-11-12 19:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/include/hbassert.h
  * harbour/include/hb_io.h
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/fssize.c
  * harbour/source/rtl/hbinet.c
  * harbour/source/rtl/filesys.c
  * harbour/source/compiler/hbfix.c
  * harbour/source/compiler/hbpcode.c
  * harbour/source/compiler/hbdead.c
  * harbour/source/compiler/genc.c
  * harbour/source/compiler/hbopt.c
  * harbour/source/compiler/gencc.c
  * harbour/source/compiler/hblbl.c
  * harbour/source/compiler/hbstripl.c
  * harbour/utils/hbver/hbverfix.c
  * harbour/utils/hbpp/hbppcore.c
    * removed dependences to unsupported by new MSVC header files
      most of this modifications can be enabled also for standard Win32
      builds

  * harbour/source/common/hbwince.c
    * do not create dummy LocalLock() and LocalUnlock() function in MSVC
      WinCE builds

  * harbour/source/rtl/gtwin/gtwin.c
    + added HB_WINCE_USE_POCKET_CONSOLE macro which enable
      console support in WINCE builds (macro suggested by Marek Paliwoda)

  * harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * changed default window and font size on WinCE to values suggested
      by Marek Paliwoda

   Marek if you have a while please make test with MSVC WinCE/PocketPC
   builds and current SVN code.
2007-11-12 18:22:51 +00:00
Przemyslaw Czerpak
5de7824e15 2007-11-12 16:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapifs.h
  * harbour/source/common/hbfsapi.c
    + added hb_fsMaxFilesError()

  * harbour/source/pp/ppcore.c
  * harbour/utils/hbpp/hbppcore.c
    * use hb_fsMaxFilesError() to avoid direct accessing of errno
      value - some compilers/platforms do not support errno

  * harbour/include/hbdate.h
  * harbour/source/rtl/seconds.c
    + added hb_dateMilliSeconds()

  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/idle.c
  * harbour/source/rtl/inkey.c
    * use hb_dateMilliSeconds() to avoid using clock_t clock()
      some compilers/platforms do not support it

  * harbour/include/hbwince.h
  * harbour/source/common/hbwince.c
    * disabled clock_t clock() emulation - it's not longer used
    + added some declarations for ANSI functions emulated by us
      for WinCE and some defines - code sent by Marek Paliwoda

  * harbour/include/hbwmain.c
  * harbour/source/vm/mainwin.c
    * always use unicode translations with WinMain() parameters for compilers
      which do not set UNICODE macro for WinCE

  * harbour/source/rtl/fserror.c
    * do not include errno.h for HB_WIN32_IO - it's not necessary

  * harbour/utils/hbver/hbverfix.c
    * do not include errno.h for _MSC_VER and HB_WINCE builds

  * harbour/contrib/libmisc/dates2.c
    - commented DATETIME() function - this was not standard DATETIME()
      value but raw ctime() function output and some compilers/platforms
      do not support ctime()

  * harbour/contrib/libnf/getenvrn.c
    + added HB_OS_WIN_32_USED

  * harbour/contrib/mtpl.mak
  * harbour/contrib/pdflib/pdflib.h
    * replaced TABs with SPACEs

  * harbour/include/hbsetup.ch
    ! reenabled HB_EXTENSION in default builds - disabling it makes
      a lot of RDD code unusable and breaks default builds due to
      insufficient dependences
2007-11-12 15:10:28 +00:00
Viktor Szakats
7477bf4448 2007-11-12 01:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
     + Added xhb compatibility #define for hb_storclenAdopt()
       (equivalent to Harbour's hb_storclen_buffer())

   * contrib/xhb/hbcompat.ch
     + Added xhb IsDirectory() <-> hb_DirExists() translation.
       Harbour version works using access(), while xhb version 
       does a filefind, so Harbour will return a more accurate 
       result more quickly, but it won't work with wildcards.

   * source/rtl/persist.prg
     % Using hb_StrShrink()

   * common.mak
   * utils/hbdoc/Makefile
   * utils/hbdoc/ffile1.prg
   * utils/hbdoc/genasc.prg
   * utils/hbdoc/genchm.prg
   * utils/hbdoc/genhtm.prg
   * utils/hbdoc/genng.prg
   * utils/hbdoc/genos2.prg
   * utils/hbdoc/genpdf1.prg
   * utils/hbdoc/genrtf.prg
   * utils/hbdoc/gentrf.prg
   * utils/hbdoc/hbdoc.prg
   * utils/hbdoc/html.prg
   * utils/hbdoc/ng.prg
   * utils/hbdoc/os2.prg
   * utils/hbdoc/rtf.prg
   + utils/hbdoc/teeasc.prg
     + Synced with xhb.
     ; Someone who uses this tool, pls test.

   * common.mak
   * utils/hbmake/Makefile
   * utils/hbmake/ft_funcs.prg
   * utils/hbmake/hbmake.prg
   * utils/hbmake/hbmutils.prg
   * utils/hbmake/pickarry.prg
   * utils/hbmake/radios.prg
   + utils/hbmake/readline.c
   + utils/hbmake/tmake.prg
     + Synced with xhb.
     ; Someone who uses this tool, pls test.
2007-11-12 00:16:26 +00:00
Viktor Szakats
f7de654b8b 2007-11-11 22:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* common.mak
   * source/rtl/Makefile
   + source/rtl/getsys53.prg
   * source/rtl/getsys.prg
   + source/rtl/secondfs.c
   * source/rtl/seconds.c
   + source/rtl/mouse53.c
   * source/rtl/mouseapi.c
     + Some C53 and FlagShip functions moved to separate source file.

   * include/hbextern.ch
   * common.mak
   * source/rtl/Makefile
   + source/rtl/hbstrsh.c
   * utils/hbtest/rt_stra.prg
     + Added hb_StrShrink(<cString>[,<nShrinkBy>]) -> cStringShrinked
       <nShrinkBy> has a default value of 1. Returns empty string 
       on error, returns full string if <nShrinkBy> is zero or negative.
       This function call is meant to be use instead of code like this:
       cString := Left( cString, Len( cString ) - 1 ) ->
       cString := hb_StrShrink( cString, 1 )
       TODO: Maybe to support passing it by reference and make it even 
             faster.
     + Added regression tests for this function.
2007-11-11 21:55:39 +00:00
Viktor Szakats
c1d0b17fbc 2007-11-11 14:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/tpopup.prg
   * source/rtl/ttopbar.prg
   * source/rtl/tmenuitm.prg
     ! MENUITEM class :row and :col vars changed to 
       :__row and :__col, instead of adding HB_EXTENSION 
       guards to them, because they are needed internally.

   * source/rtl/browse.prg
   * source/rtl/tbrowse.prg
     * Two mouse-wheel handling extensions now rather 
       guarded with HB_C52_STRICT.

   * source/rtl/gete.c
     ! Fixed GETENV()/GETE() to return an empty string when 
       called with more than one parameter, to be fully 
       C5.x compatible.

   * source/vm/proc.c
     ! PROCFILE() HB_EXTENSION guard changed to HB_C52_STRICT.
       Since PROCFILE() is an undocumented function in C5.x 
       we can legally extend it in Harbour.

   * include/hbsetup.ch
     * Turned off HB_EXTENSION for the default build.
       Now HB_EXTENSION covers all the extensions which 
       in some ways violates namespace rules or extends 
       functionality of existing CA-Cl*pper functions 
       or classes in an "invisible" (or "dirty") way, like 
       adding new parameters or accepting new types of parameters.
       In case we want to keep some extended functionality 
       in the default build, we'll need to create new 
       function names. For class extensions, I'm not yet 
       sure what is the proper way to go.
       In case of ML*() functions, I think they should respect 
       SET EOL instead of accepting EOL settings as parameters.
2007-11-11 13:42:46 +00:00
Viktor Szakats
97aad59548 2007-11-11 12:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/std.ch
     ! SET STRICTREAD command definition fixed.

   * include/hbextern.ch
     ! Fixed placement of MENUMODAL, to compile when HB_COMPAT_C53
       is turned off.

   * contrib/libmisc/Makefile
     ! Fixed test dir name. (broken since yesterday)

   * contrib/pdflib/common.mak
     + Added another file.

   + contrib/pdflib/Makefile
     + Added GNU make file for pdflib.

   * utils/hbdoc/ft_funcs.prg
   * utils/hbmake/ft_funcs.prg
   * utils/hbmake/hbmake.prg
     ! Made them compile with HB_COMPAT_C53 turned off.
       There is a loss of functionality in this case.
       (MAKEDIR(), DIRCHANGE() and @ CHECKBOX are used here)

   * source/rtl/menuto.prg
   * source/rtl/tgetlist.prg
     ! Fixed to compile when HB_COMPAT_C53 is turned off.

   * include/hbextern.ch
   * source/rtl/defpath.c
   * source/rtl/adir.prg
     * __DEFPATH() is now always included, not just when HB_C52_UNDOC 
       is defined, since we use this function from core, and __*() 
       functions are okey to be included without this guard.
       DEFPATH() is still marked as HB_C52_UNDOC.
     ! ADIR() now uses __DEFPATH() instead of DEFPATH() to compile
       with HB_C52_UNDOC turned off.
     ; TOFIX: There are still a few functions we use from core, which 
       are guarded with HB_C52_UNDOC: NATIONMSG(), ISNEGATIVE()

   * source/vm/memvars.c
     * Changed HB_EXTENSION to HB_C52_STRICT. Reason: This 
       is a Harbour internal (undocumented) function, where extension 
       is possible. CA-Cl*pper internal (undocumented) function __MRESTORE()
       is mapped to this function, which is still okey. We could 
       create a fully CA-Cl*pper compatible, non-extended __MRESTORE() 
       without any trouble, if this is an issue.
2007-11-11 12:05:38 +00:00
Viktor Szakats
31f9030f34 2007-11-11 02:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/at.c
   * include/hbextern.ch
     + Added hb_At() which is equivalent to At() with 
       HB_EXTENSION turned on. Users are encouraged to 
       use hb_At(), and this is also a must inside core.

   * include/hbextern.ch
     ! Added missing hb_AIns(), hb_ADel(), hb_AScan()

   * source/rtl/persist.prg
     ! Fixed hard-wired EOL length.
     ! Fixed to not go into an infinite loop on 
       non EOL terminated texts. (Thanks Petr)
     ! Fixed to use hb_At() instead of extended At().
     ! Fixed to also handle LF delimited texts.
     ; All this in static function ExtractLine()

   * contrib/rdd_ads/doc/gendoc.bat
     ! Added version header.

   * contrib/hgf/tests/bld_b32.bat
     ! Some more minor cleanups.

   * contrib/pgsql/make_vc.bat
   * contrib/apollo/make_vc.bat
   * contrib/gd/make_vc.bat
   * contrib/adordd/make_vc.bat
   * contrib/pdflib/make_b32.bat
   * contrib/pdflib/make_vc.bat
   * contrib/btree/make_vc.bat
   * contrib/samples/make_vc.bat
   * contrib/mysql/make_vc.bat
   * contrib/odbc/make_vc.bat
   * contrib/bmdbfcdx/make_vc.bat
     ! Fixed EOL-style.

   + contrib/libmisc/test
   - contrib/libmisc/tests
     * Dir rename.
2007-11-11 01:42:42 +00:00
Viktor Szakats
0ebb791450 2007-11-11 00:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/std.ch
     * Removed HB_EXTENSION guard from around SET commands 
       implementing Harbour _SET_* extensions. The reason: 
       _SET_* extensions are not marked as extensions (and 
       it would be nearly impossibly to do so), so it's more 
       consistent to behave the same way for their command 
       counterparts.

   * utils/hbpp/hbpplib.c
     ! Removed HB_EXTENSION guard from around __PP*() functions 
       which are Harbour undocumented ones, so they don't need to 
       be guarded. We're also in sync with hbextern.ch now.

   * utils/hbtest/rt_stra.prg
     ! Removed HB_EXTENSION guard from around hb_ValToStr() calls, 
       because this function is no longer marked as HB_EXTENSION.

   * contrib/hgf/os2pm/tmenu.prg
   * contrib/hgf/os2pm/tmenuitm.prg
   * contrib/hgf/gtk/shared.ch
   * contrib/hgf/gtk/dispatch.c
   * contrib/hgf/gtk/creamenu.c
   * contrib/hgf/gtk/msginfo.c
   * contrib/hgf/gtk/creabutt.c
   * contrib/hgf/gtk/general.c
   * contrib/hgf/gtk/creawin.c
   * contrib/hgf/gtk/harbgtk.h
   * contrib/hgf/gtk/menuitem.prg
   * contrib/hgf/win32/button.prg
   * contrib/hgf/win32/edit.prg
   * contrib/hgf/win32/form.prg
   * contrib/hgf/win32/menu.prg
   * contrib/hgf/win32/menuitem.prg
   * contrib/hgf/win32/winctrl.prg
   * contrib/hgf/tests/bld_b32.bat
   * contrib/hgf/tests/form2.prg
   * contrib/hgf/tests/form3.prg
   * contrib/hgf/tests/form3.hbf
   * contrib/hgf/tests/form3res.prg
   * contrib/hgf/tests/formtext.prg
   * contrib/hgf/tests/testctrl.prg
   * contrib/hgf/tests/testform.prg
     ! Fixed bld_b32.bat to link properly.
     ! Changed HBMenuItem CLASS to HGFMenuItem() to not collide with 
       Harbour class HBMenuItem() (C53 compatibility class).
     ; The above reported by Petr Chornyj.
     ! Added CRLF at the end of each source file where there was none.
     ! Fixed version headers.
     ; TOFIX1: HBPersistent():LoadFromFile() has a bug where it doesn't 
               load the last line if it doesn't end with newline.
     ; TOFIX2: HBPersistent() uses At() "dirty" extension.

   * contrib/odbc/test/odbcdemo.prg
   - contrib/odbc/test/browodbc.prg
   * contrib/odbc/test/odbccall.prg
   * contrib/odbc/test/testodbc.prg
   * contrib/odbc/common.mak
   + contrib/odbc/browodbc.prg
     ! Moved back browodbc.prg to /contrib/odbc (since it was not a test, 
       just missing from the non-GNU make files)
       Reported by Petr Chornyj.
     ! Added browodbc.prg to non-GNU makefile.
     ! Added version headers.
2007-11-10 23:48:48 +00:00
Przemyslaw Czerpak
07c9e15d8d 2007-11-06 12:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
    * put functions declarations inside HB_EXTERN_BEGIN / HB_EXTERN_END

  + harbour/include/hbwmain.c
    + added WinMain() to main() wrapper

  * harbour/include/hbexprb.c
  * harbour/source/common/expropt1.c
    ! fixed typo reported by Chen

  * harbour/source/pp/hbppgen.c
  * harbour/source/main/harbour.c
  * harbour/utils/hbpp/hbpp.c
    * use hbwmain.c when main() is not supported by C compiler/platform

  * harbour/source/rtl/gtwin/gtwin.c
    * include wincon.h in all builds except LCC

  * harbour/source/rtl/fserror.c
  * harbour/source/rtl/fstemp.c
  * harbour/source/rtl/filesys.c
    * use HB_OS_WIN_32_USED as in other files (still on TOFIX list)

  * harbour/source/rtl/seconds.c
    + added HB_OS_WIN_32_USED

  * harbour/source/compiler/hbcomp.c
    ! fixed typo: stderr was used instead of stdout
2007-11-06 11:59:02 +00:00