Commit Graph

13354 Commits

Author SHA1 Message Date
Viktor Szakats
ea283827e0 2010-02-05 04:50 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1.c
  * src/rtl/sha1.h
  * src/rtl/hbsha1hm.c
  * src/rtl/sha2.c
  * src/rtl/sha2.h
  * src/rtl/hbsha2hm.c
  * src/rtl/sha1hmac.c
  * src/rtl/sha1hmac.h
  * src/rtl/hbsha1.c
  * src/rtl/sha2hmac.c
  * src/rtl/sha2hmac.h
  * src/rtl/hbsha2.c
    + Not using HB_BYTE type anymore.
    + Using 'const void*' type for key/data variables in public functions.
    % Deleted unnecessary casting.
2010-02-05 03:51:42 +00:00
Viktor Szakats
12800d8b2c 2010-02-05 04:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1.c
  * src/rtl/sha1.h
  * src/rtl/hbsha1hm.c
  * src/rtl/hbmd5.c
  * src/rtl/hbsha2hm.c
  * src/rtl/sha1hmac.c
  * src/rtl/sha1hmac.h
  * src/rtl/hbsha1.c
  * src/rtl/sha2hmac.c
  * src/rtl/sha2hmac.h
  * src/rtl/hbsha2.c
    * BYTE -> HB_BYTE
    * UINT32 -> HB_U32
    + Added 'const' keyword to low-level SHA2 related functions
      where it was missing.
    % Added static to SHA1_Transform().

  * include/hbgtcore.h
    * Formatting.
2010-02-05 03:27:59 +00:00
Przemyslaw Czerpak
e0d22f8247 2010-02-05 03:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    * updated HB_FS_[SG]ETDRIVE() macros to operate on 'int' type
    * changed 'unsigned int' to 'int' in code using HB_FS_[SG]ETDRIVE()
      macros
2010-02-05 02:06:42 +00:00
Viktor Szakats
8615717cd2 2010-02-05 01:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    * UINT -> unsigned int
    * Rename: bRead -> fRead, bResult -> fResult, usError -> nResult, uiResult -> nResult
    * Formatting.

  * include/hbapifs.h
  * src/rtl/filesys.c
  * src/rtl/philes.c
  * src/rtl/philesx.c
  * contrib/hbct/disk.c
  * contrib/xhb/xhbfunc.c
    * Drive letter type change from USHORT/BYTE to int.
    + Extra checks added to enforce positive value.
    % Optimized out fResult from hb_fsCurDirBuff(), plus related cleanups.
    ; Peer-review it please.

  * src/rtl/fstemp.c
    * Pacified warnings.

  * contrib/hbwin/Makefile
  + contrib/hbwin/wapi_wingdi_fontmem.c
    + Added WAPI_ADDFONTRESOURCEEX().
    + Added WAPI_REMOVEFONTRESOURCEEX().
2010-02-05 00:23:15 +00:00
Mindaugas Kavaliauskas
6db5704744 2010-02-05 01:30 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/contrib/hbcairo/tests/lightning.prg
    + one more simple image generator sample
2010-02-04 23:31:01 +00:00
Przemyslaw Czerpak
ad905d59c2 2010-02-04 22:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/task.c
  * harbour/src/vm/classes.c
  * harbour/src/rtl/strpeek.c
    * updated to use ANSI types

  * harbour/src/rtl/hbmd5.c
    % small optimization (more compiler friendly code due to fixed alignment)
2010-02-04 21:23:19 +00:00
Viktor Szakats
f48a61fa58 2010-02-04 21:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/console.c
  * src/rtl/shadow.c
    ! Fixed three remaining places where color value was cast to BYTE type.
    ; QUESTION1: What to do with BYTE in hb_fs*Drv() calls?
                 Should it be int or unsigned int?
    ; QUESTION2: What to do with BYTE types in checksum calculations and 
                 low level color storage, is HB_U8 type good?

  * src/rtl/transfrm.c
  * src/rtl/memofile.c
    * BYTE -> char

  * src/rtl/gtkbstat.c
    * Formatting.
2010-02-04 20:02:22 +00:00
Przemyslaw Czerpak
6550f580d3 2010-02-04 20:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/achoice.prg
    ! exit with 0 without activating user function when empty item array
      is passed - Clipper compatible behavior
2010-02-04 19:24:13 +00:00
Przemyslaw Czerpak
e3e3f092ec 2010-02-04 19:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapifs.h
  * harbour/src/rtl/filebuf.c
  * harbour/contrib/hbmemio/memio.c
  * harbour/contrib/hbnetio/netiocli.c
    + added new method:
         void Flush( PHB_FILE pFile, HB_BOOL fDirty );
      to replaceable RDD IO structure (HB_FILE)
    + added new function:
         void hb_fileFlush( PHB_FILE pFile, HB_BOOL fDirty );

  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
    * use hb_fileFlush()

  * harbour/src/vm/hvm.c
  * harbour/include/hbxvm.h
    ! fixed hb_xvm{Local,Static,Module}Name() to use 'const char *'
      instead of 'char *' - modifications by Xavi (jarabal)

  * harbour/include/hbapi.h
  * harbour/include/hbxvm.h
  * harbour/include/hbmacro.h
  * harbour/include/hbcompdf.h
  * harbour/src/vm/hvm.c
  * harbour/src/vm/macro.c
  * harbour/src/vm/memvars.c
    * replaced some 'BYTE' types with 'unsigned char' or 'int' types
    * cleanup some other casting and types to reduce conversions
      between function calls

  * harbour/src/common/expropt1.c
    ; updated comments

  * harbour/include/hbpp.h
  * harbour/include/hbexprop.h
  * harbour/include/hbexpra.c
  * harbour/include/hbexprb.c
    * eliminated HB_EXPR_PCODE?() macros
    ! fixed potential GPF trap during compilation of _GET_() functions
      which can be exploited by strange code using some special expressions
      as get variable.
      TODO: eliminate hb_compExprClone() used in hb_compExprSetGetBlock(),
            our optimization module does not care about shared expressions
            so it can be source of serious problems in the future if someone
            use this functions for non optimized expression which will be
            reduced later.
    * emulate clipper behavior for codeblock optimizations and do
      not optimize all codeblocks if -kc switch is used and codeblocks
      is inside non optimized part of code like (Clipper has such
      places)
    % simplified and optimized some functions like hb_compExprReduceList()
2010-02-04 18:15:07 +00:00
Viktor Szakats
ff8abbf18b 2010-02-04 18:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbfbird/tests/test.prg
    ! Fixed to work at all. This code was complete nonsense.
    + Added more status display.
    ; Anyhow basic tests shows that recent FB changes are okay, 
      but class wrapper never worked and tests were either 
      dummies or wrong. Please test hbfbird with real life 
      code.

  * contrib/hbfbird/tests/stress.prg
    * Formatting.

  * contrib/hbfbird/tests/testapi.c
    ! Fixed to not refer to env specific IP. The table name is still
      wrong though.

  * contrib/hbfbird/tfirebrd.prg
    + Added TOFIX about very old and very basic problem in the
      FB class wrapper.
2010-02-04 17:12:21 +00:00
Viktor Szakats
1de283c14a 2010-02-04 12:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added hbmk2_PathMakeRelative(). The opposite of PathProc().
      Current form is not optimized and only moderately tested:
        hbmk2_PathMakeRelative( "", "" )
        hbmk2_PathMakeRelative( "", "hello.prg" )
        hbmk2_PathMakeRelative( "", "proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\this\that\proj\" )
        hbmk2_PathMakeRelative( "C:\this", "C:\this\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\that\that\proj\hello.prg", .T. )
        hbmk2_PathMakeRelative( "D:\this", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\this\test\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\that\that\proj\hello.prg", .T. )
        hbmk2_PathMakeRelative( "D:\this\test", "C:\that\test\that\proj\hello.prg" )

  * contrib/hbfbird/tests/simple.prg
  * contrib/hbfbird/tests/test.prg
  * contrib/hbfbird/tests/stress.prg
    ! Fixed references to absolute paths non-existent on users computer.
    ! Fixed IP address to be 127.0.0.1 instead of previous env specific value.
    * Indented.
    * Some formatting.
2010-02-04 11:56:22 +00:00
Viktor Szakats
1a6c08a04f 2010-02-04 10:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmysql/mysql.c
    ! Fixed to use GC collected objects.
    + Added RTEs when wrong object is passed.
    ! Fixed to make MYSQL_FIELD_COUNT() available regardless of 
      mysql lib version we're building against. It will return 
      zero if mysql lib doesn't support it.
    ; Deprecated MYSQL_CLOSE() and MYSQL_FREE_RESULT(). It's
      enough to replace them with NIL assigments, or simply
      delete them.
    ; Please test it.

  * contrib/hbmysql/tmysql.prg
    + Changed to not use deprecated functions.

  * src/common/hbffind.c
  * src/rtl/fssize.c
    * Formatting.
2010-02-04 09:17:55 +00:00
Viktor Szakats
ac8804b916 2010-02-04 09:19 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbfbird/firebird.c
    + Added GC collected object for db connection.
    * Replaced HB_RETNL_FBERROR() with actual code to make
      code flow apparent.
    * Replaced DIALECT constant with Firebird predefined one.
    ! Fixed to use ISC_STATUS_ARRAY instead of status arrays
      with arbitrary sizes like MAX_FIELDS.
    + Throwing RTEs if non-db pointer is passed in places
      where it is required.
    * Adjusted scope of some variables.
    ! Fixed several leaks in FBQUERY().
    % Optimized to use hb_xrealloc() instead of using
      subsequent hb_xfree()/hb_xgrab() calls.
    % Other optimizations.
    + Added TOFIX to more memory leaks.
    ! Fixed FBGETDATA() to not crash when NULL pointer is passed.
    ! Fixed FBGETDATA() to not crash when negative position
      parameter is passed.
    ; TOFIX: Convert remaining memory objects to GC collected
             ones. Unfortunately the code is quite dirty in this
             respect, so it require more serious rewrite in places.
    ; TOFIX: Address TOFIXes in code.
    ; Please test it, I don't use this, and didn't make
      functional tests.

  * contrib/hbfbird/tests/test.prg
    + Displays error on connection failure.
    * Formatting.
2010-02-04 08:31:32 +00:00
Viktor Szakats
14ca90da29 2010-02-03 21:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added {HB_TEMPDIR} macro which is replaced with HB_DIRTEMP() value.
2010-02-03 20:59:52 +00:00
Viktor Szakats
bf93ca3197 2010-02-03 20:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Enabled -workdir option for non -inc modes.
    * Change default workdir to be the OS temp dir.
      Please test it, especially on non-win OSes.
2010-02-03 20:01:58 +00:00
Viktor Szakats
25550fe1fc 2010-02-03 20:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/fstemp.c
  * include/hbapifs.h
  * include/hbextern.ch
    + Added HB_DIRTEMP() .prg level function. Returns name of temp dir,
      with closing backslash.
    + Added hb_fsTempDir() .c level function.
    ; Please review, especially MS-DOS, OS/2, which I won't be able
      to test.

  * src/rtl/fstemp.c
    * Cleanup: Deleted hb_fsCreateTempLow(), made layout more clear.
    ; TOFIX: For some builds, MS-DOS, OS/2 and WIN without WIN IO
             the temp directory will be wrongly calculated by checking
             TMPDIR envvar. Such envvar seems *nix specific.
             If new hb_fsTempDir() will be tested, above can be fixed
             by using this new function.

  * package/winuni/RELNOTES
    + Noted update to Firebird 2.5.0rc1

  * contrib/hbpgsql/postgres.c
    + Marked recently deprecated function as HB_LEGACY_LEVEL3.

  * contrib/hbfbird/firebird.c
    * Cleanup for a macro.

  * contrib/hbnetio/utils/netiosrv.prg
    + Using HB_HRB_BIND_FORCELOCAL when loading .hrb.

  * contrib/hbnetio/utils/modules/test.prg
    + Marked function as STATIC.

  * ChangeLog
    * Old TODO marked DONE.
2010-02-03 19:37:35 +00:00
Przemyslaw Czerpak
01497ae18a 2010-02-03 19:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/src/vm/hvm.c
    * covered hb_vmPushState() and hb_vmPopState() functions by
      HB_LEGACY_LEVEL3 macro. These functions are depreciated,
      hb_vmRequestReenter()/hb_vmRequestRestore() should be used
      instead.
2010-02-03 18:08:32 +00:00
Przemyslaw Czerpak
2d9d7ffffb 2010-02-03 15:01 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/video.c
    * pacified DJGPP warning

  * harbour/external/jpeg/Makefile
    * define HAVE_STDLIB_H - it's necessary for exit() function used in
      jerror.c
2010-02-03 14:01:55 +00:00
Viktor Szakats
7c66e97ed6 2010-02-03 14:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added some details on <script> usage. Most probably it's still 
      confusing, I you know a better way, tell.

  * contrib/hbfimage/fi_winfu.c
    * Formatting.
2010-02-03 13:56:25 +00:00
Viktor Szakats
91db201e90 2010-02-03 14:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbfbird/tfirebrd.prg
    + Formatted.
    ! Indented.
    % Optimized to use SWITCH/CASE.
    % Optimized to avoid ASize() and AAdd() in a few places.
2010-02-03 13:24:28 +00:00
Viktor Szakats
6855fe7257 2010-02-03 12:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/tpostgre.prg
    + Formatted.
    ! Indented.
    % Optimized to use SWITCH/CASE.
    % Optimized to avoid ASize() and AAdd() in a few places.
    + Using constants for structure array positions.

  * contrib/hbpgsql/tpostgre.prg
  * contrib/hbpgsql/postgres.ch
  * contrib/hbpgsql/postgres.c
    + Added and using HBPG_META_* constants.
2010-02-03 11:48:17 +00:00
Viktor Szakats
887925cd02 2010-02-03 11:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/pgrdd.prg
    ! Fixed to not call ALERT().

  * contrib/hbpgsql/pgrdd.prg
  * contrib/hbpgsql/tpostgre.prg
    + Changed to not call deprecated destructor functions.

  * contrib/hbpgsql/postgres.ch
    ! Added copyright header.

  * contrib/hbpgsql/postgres.c
    - Minor in comments.

  * contrib/hbide/hbide.hbp
    - Deleted commented options. Use cmdline instead of
      temp edits in SVN files.
2010-02-03 10:43:46 +00:00
Przemyslaw Czerpak
18b53a611d 2010-02-03 11:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! do not verify FOR expression just after loading new index file
      in SIXCDX RDD. It's CL52 DBFCDX / SIX3 SIXCDX compatible behavior
      but Harbour DBFCDX and CL53 DBFCDX / COMIX verifies both KEY and
      FOR expressions when index is loaded.
    ! fixed RTE numbers to be CL53 compatible when index with wrong
      (returning wrong results) KEY or FOR expression is loaded.
2010-02-03 10:16:06 +00:00
Przemyslaw Czerpak
88bac63295 2010-02-03 03:45 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
  * harbour/src/vm/itemapi.c
  * harbour/src/rtl/errapi.c
  * harbour/contrib/xhb/cstructc.c
    * changed HB_TRACE_STEALTH() to HB_TRACE()

  * harbour/include/hbtrace.h
  * harbour/include/hbstack.h
  * harbour/src/vm/estack.c
  * harbour/src/nortl/nortl.c
    + added hb_traceset() and hb_traceinfo()

  * harbour/include/hbtrace.h
  * harbour/src/common/hbtrace.c
    * use hb_traceset()/hb_traceinfo() instead of hb_tr_file_, hb_tr_line_,
      hb_tr_level_
    - removed hb_tr_file_, hb_tr_line_, hb_tr_level_
    + added hb_tr_stealth() function and modified HB_TRACE_STEALTH()
      macro to not touch any of hb_tr_*_ global variables
    + added HB_TR_FM macro which can be used to infrom FM statistic
      module that it should take filename and line number from hb_tr_*_
      global variables

  * harbour/src/vm/fm.c
    - removed dummy code with HB_TR_LEVEL setting - HB_TR_LEVEL is
      always defined by hbtrace.h
    * use hb_traceset()/hb_traceinfo() instead of hb_tr_file_, hb_tr_line_,
      hb_tr_level_
    * respect HB_TR_FM

  * harbour/src/rtl/gttrm/gttrm.c
    * formatting

  * harbour/src/vm/itemapi.c
  * harbour/src/vm/extend.c
  * harbour/src/rtl/descend.c
  * harbour/src/rtl/hbgtcore.c
  * harbour/src/rtl/mtran.c
  * harbour/src/rtl/samples.c
  * harbour/src/common/hbstr.c
  * harbour/src/common/hbdate.c
    ! fixed possible GPF traps in HB_TRACE() messages caused by %s used
      for not \0 terminated strings or uninitialized buffers
2010-02-03 02:45:32 +00:00
Pritpal Bedi
d9f54ed391 2010-02-02 16:24 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.hbp
  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/iderequests.prg
  * contrib/hbide/idethemes.prg

  * contrib/hbide/resources/projectproperties.ui

  + contrib/hbide/resources/finddialog.uic
  + contrib/hbide/resources/findinfiles.uic
  + contrib/hbide/resources/findsource.uic
  + contrib/hbide/resources/mainwindow.uic
  + contrib/hbide/resources/projectproperties.uic
  + contrib/hbide/resources/selectionlist.uic
  + contrib/hbide/resources/selectproject.uic
  + contrib/hbide/resources/themes.uic

  * contrib/hbqt/hbqt.ch
  * contrib/hbqt/qtgui/QLabel.cpp
  * contrib/hbqt/qtgui/QSizePolicy.cpp
  * contrib/hbqt/qtgui/QSpacerItem.cpp
  * contrib/hbqt/qth/QLabel.qth
  * contrib/hbqt/qth/QSizePolicy.qth
  * contrib/hbqt/qth/QSpacerItem.qth

  * contrib/hbqt/THbQtUI.prg

  * contrib/hbxbp/xbpdialog.prg
  * contrib/hbxbp/xbpwindow.prg

    + This commit implements .uic files generated 
      via uic.exe of Qt distribution given a .ui file.
      And hence eliminated the wooping cargo of QtUiTools.lib
      which consumes arount 23+ MB over and above of application load.
      All the dialogs/windows used in hbIDE are fully functional.

      This implementation is in parallel of previous one and 
      either can be used. The difference in syntax is ( and as used in hbIDE )

         #ifdef HBIDE_USE_UIC
            oDlg := HbQtUI():new( ::oIDE:resPath + "selectproject.uic", ::oDlg:oWidget ):build()
         #else
            oDlg := HbQtUI():new( ::oIDE:resPath + "selectproject.ui", ::oDlg:oWidget ):create()
         #endif
      
      To take advantage of this feature you need to compile hbIDE 
      with -dHBIDE_USE_UIC. You can examine the task manager for memory
      usage, with and without -dHBIDE_USE_UIC.

      Please note that this implementation is not 100% complete.
      I could synchronize the dialogs of hbIDE only. Though most of the 
      code is good for daily-use widgets still we need to add some 
      more functionality into the code. But it is simple. Mainly 
      we be needing more constants included in hash to convert 
      string defines to numeric representation.

      Please test and report any issues.
2010-02-03 00:39:51 +00:00
Viktor Szakats
121734510e 2010-02-03 00:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
    % Optimizations.

  * contrib/hbpgsql/postgres.c
  * contrib/hbgd/gdwrp.c
  * contrib/hbbmcdx/bmdbfcdx.c
    % 'hb_itemRelease( hb_itemReturnForward( p ) )' -> 'hb_itemReturnRelease( p )'
2010-02-02 23:41:42 +00:00
Viktor Szakats
b6adbe5038 2010-02-02 22:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
    ! PQEXECPARAMS() fixed to not GPF when non-array is passed as 3rd parameter.
    ! PQESCAPEBYTEACONN() fixed to not GPF when non-string is passed as 2nd parameter.
    ! PQFNUMBER() fixed GPF (after prev commit)
    % Deleted hb_pcount() checks. This served no useful purpose. It's better to
      check for HB_IS*() is we want to enforce some parameters.
2010-02-02 21:24:33 +00:00
Viktor Szakats
fd1e13d69a 2010-02-02 21:50 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
  * contrib/hbpgsql/tests/test.prg
    * Destructor PQCLOSETRACE() marked as deprecated, replaced in
      test app with NIL assignment.
    ! Fixes to FILE object type.
    ; All this is only relevant if built with NODLL flag.
2010-02-02 20:52:22 +00:00
Viktor Szakats
0476405be7 2010-02-02 21:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
    + Added GC support for all remaining pointer types (result/cancel/FILE).
    + Added RTE when wrong pointer or wrong number of parameter is passed
      to functions.
      This means that behavior is now INCOMPATIBLE when wrong parameters
      are encountered in these functions.
    ; Destructor functions PQFREECANCEL(), PQCLOSE(), PQCLEAR() marked 
      as 'deprecated'.
      These are not needed, it's enough to assign NIL to their holder
      variables on .prg level.
    % Cleanups along the way.
    ; TODO: Fix sloppy parameter checking which only check number of
            parameters instead of enforcing expected type.
    ; Please test.

  * contrib/hbpgsql/tests/async.prg
  * contrib/hbpgsql/tests/test.prg
  * contrib/hbpgsql/tests/cache.prg
  * contrib/hbpgsql/tests/stress.prg
    % Replaced deprecated destructor functions with '<var> := NIL'.

  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-02-02 20:45:51 +00:00
Przemyslaw Czerpak
44a1003df1 2010-02-02 17:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/direct.c
    ! do not strip other attributes when "V" is set - it's neither
      DOS not Clipper compatible behavior
      Clipper passes attributes to OS and then OS decides about
      their interpretation, i.e. FreeDOS replicates hardcoded
      in our previous DIRECTORY() code behavior but MS-DOS doesn't.
    % small simplification

  * harbour/src/common/hbffind.c
    ! fixed emulation of DOS volum attribute in MS-Windows builds of
      hb_fsFindFirst()/hb_fsFindNext().
      It also fixes problem in HBCT FILEATTR() function in MS-Windows
      builds.
      This is still not full DOS emulation. Exact emulation should
      automatically add trailing \ to given path, detect drive letter
      and resolve their current directories. If some windows users
      think it's important then they can extend this emulation.
      Now it can be done as local modifications only.
      Please test with real MS-Windows.
    ! fixed error code setting in UNICODE MS-Windows builds of
      hb_fsFindFirst()/hb_fsFindNext().

  * harbour/contrib/hbct/files.c
    * removed old hack which is not longer necessary for current code.

  * harbour/include/hbapifs.h
    * small modifications to make HB_FNAME structure alignment independent

  * harbour/src/vm/hvm.c
    ! fixed GPF when WITH OBJECT reference is used inside codeblock
      evaluated outside WITH OBJECT / ENDWITH structure
      TODO: forbid using WITH OBJECT references in nested codeblocks
2010-02-02 16:59:07 +00:00
Viktor Szakats
4431319965 2010-02-01 01:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/cdpapi.c
    % Deleted unnecessary hbvm.h header.
      (hb_vmCDP() is declared in hbapicdp.h, is this ok?)
2010-02-01 00:35:56 +00:00
Viktor Szakats
d8df983663 2010-02-01 01:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/Makefile
  * src/rtl/cdpapi.c
  + src/rtl/cdpapihb.c
  * include/hbapicdp.h
    + Moved Harbour level functions to a separate file.
      I had to rename and publish three static functions.
      Eventually the low level part should go to hbcommon lib.
    ; TODO: HB_CDPLIST() is still to be moved, I couldn't find out elegant
            low-level API to solve it.
2010-02-01 00:29:02 +00:00
Viktor Szakats
8f00418163 2010-01-31 18:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbide/resources/projectproperties.ui
    ! hbMK2.exe -> hbmk2
2010-01-31 17:40:10 +00:00
Viktor Szakats
86ccc9a093 2010-01-31 12:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/files.c
    * 0 -> HB_FA_ALL.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added verbose information when hbmk2 is run from outside Harbour tree
      and HB_INSTALL_PREFIX is not set either. Just a wild guess what might
      cause difficulty for some users when trying to use hbmk2.

  * src/rtl/fssize.c
  * contrib/hbqt/hbqt_hbevents.cpp
    * Formatting.
2010-01-31 11:13:13 +00:00
Pritpal Bedi
3b0d795eb9 2010-01-30 19:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/qtgui/filelist.mk
  * contrib/hbqt/qtgui/HBQMainWindow.cpp
    ! Left-over entries from prev post.
2010-01-31 03:37:27 +00:00
Pritpal Bedi
cd721d8b74 2010-01-30 18:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg

  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/hbqt_hbevents.cpp
  * contrib/hbqt/hbqt_hbevents.h
  * contrib/hbqt/hbqt_hbqmainwindow.cpp
  * contrib/hbqt/hbqt_hbslots.cpp

  + contrib/hbqt/qth/HBQMainWindow.qth

  * contrib/hbqt/tests/demoqt.prg

  * contrib/hbxbp/hbpprocess.prg
  * contrib/hbxbp/xbp3state.prg
  * contrib/hbxbp/xbpbrowse.prg
  * contrib/hbxbp/xbpcheckbox.prg
  * contrib/hbxbp/xbpcombobox.prg
  * contrib/hbxbp/xbpdialog.prg
  * contrib/hbxbp/xbpfiledialog.prg
  * contrib/hbxbp/xbpfontdialog.prg
  * contrib/hbxbp/xbphtmlviewer.prg
  * contrib/hbxbp/xbplistbox.prg
  * contrib/hbxbp/xbpmenubar.prg
  * contrib/hbxbp/xbpprintdialog.prg
  * contrib/hbxbp/xbprtf.prg
  * contrib/hbxbp/xbpscrollbar.prg
  * contrib/hbxbp/xbpsle.prg
  * contrib/hbxbp/xbpspinbutton.prg
  * contrib/hbxbp/xbpstatusbar.prg
  * contrib/hbxbp/xbptabpage.prg
  * contrib/hbxbp/xbptoolbar.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbxbp/xbpwindow.prg

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idethemes.prg

    ! This commit has cleaned Qt wrappers not to 
      hold any GC collectible pointer inside. Events 
      and Slots protocol is completely re-structured.
      
    % Improved HB_TRACE() logs. Now Qt wrappers can be 
      generated with relevant filter if env variable 
      HBQT_BUILD_TR_LEVEL=HB_TR_ALWAYS|ERROR|etc 
      defalt being TR_LEVEL_DEBUG. The formatting is 
      also improved.

    % Signals are fired with exact same parametres 
      found in Qt documentation. Eearlier first parameter
      was object pointer followed by slots's parameters.
      This facilitates for the speed and better code
      maintenance.

    ! Intensive debugging has shown that - operator new() -
      is always called from cpp stub generated by hbMK2 
      but for operater delete(), behavior is inconsistent.
      All classes derived from QObject() never call delete()
      in the stub, some classes, which Qt defines as "on the 
      stack" call our stub and hence memory is released.
      Perhaps this is the main reason, I cannot get back
      all the momory if another dialog is opened and closed.
      All claases which are derived from Qt class, viz., HbQ*
      are released properly. Looking at this behavior it 
      comes to mind if all classes are sub-classed? A very 
      huge job nevertheless which I may take later.

  * contrib/hbqt/qtcore/*.cpp
  * contrib/hbqt/qtgui/*.cpp
  * contrib/hbqt/qtnetwork/*.cpp

      ;NOTE : Regression is possible. Please report any issues.
2010-01-31 03:21:29 +00:00
Viktor Szakats
73be8514cb 2010-01-29 21:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/telepath.prg
    % Using HB_MILLISECONDS() instead of SECONDS().
    ! TP_RECVTO(), TP_FLUSH() fixed to honor -1 timeout.
    ; Please review. No tests made besides compiling and reviewing.
2010-01-29 20:30:19 +00:00
Viktor Szakats
23f50f516e 2010-01-29 20:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/telepath.prg
    ! Fixed typo in commented code in prev commit.
2010-01-29 19:15:16 +00:00
Viktor Szakats
56de51fe3a 2010-01-29 20:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/telepath.prg
    ! Fixed "midnight bug" in several TP functions having timeout option
      (it was wrong in all places).
      Reported by AbeB.
    ; Please review/test, I didn't make _any_ testing whatsoever.
2010-01-29 19:12:54 +00:00
Przemyslaw Czerpak
b057311da3 2010-01-29 18:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbsocket.c
    * do not try to resolve NULL or empty addresses in hb_socketResolveAddr()
2010-01-29 17:35:08 +00:00
Pritpal Bedi
0cb619640d * contrib/hbide/hbide.prg
* contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idethemes.prg

  * contrib/hbqt/filelist.mk
  * contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/qtcore/filelist.mk
  + contrib/hbqt/qtcore/QBuffer.cpp
  + contrib/hbqt/qtcore/TQBuffer.prg
  + contrib/hbqt/qth/QBuffer.qth
  - contrib/hbqt/THbpQtUI.prg
  + contrib/hbqt/THbQtUI.prg

  * contrib/hbxbp/hbpprocess.prg
  * contrib/hbxbp/xbpfontdialog.prg
  * contrib/hbxbp/xbpgeneric.prg
  * contrib/hbxbp/xbphtmlviewer.prg
  * contrib/hbxbp/xbplistbox.prg
  * contrib/hbxbp/xbpmenubar.prg
  * contrib/hbxbp/xbpprintdialog.prg
  * contrib/hbxbp/xbpstatusbar.prg
  * contrib/hbxbp/xbptoolbar.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbxbp/xbpwindow.prg

    -+ HbpQtUI => HbQtUI.
    !  Cleaned :pPtr := 0  =>  :pPtr := NIL
    +  Implemented QBuffer() class which allows to load .u
       from .prg embedding or from database.
2010-01-29 17:27:16 +00:00
Przemyslaw Czerpak
bb2d4cd82f 2010-01-29 13:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! fixed possible unreleased lock after last modification in SIXCDX -
      many thanks to Mindaugas for the information
2010-01-29 12:10:05 +00:00
Pritpal Bedi
3b97f4737c 2010-01-28 18:03 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/filelist.mk
  + contrib/hbqt/THbpQtUI.prg
    
  - contrib/hbxbp/hbpqtui.prg
  * contrib/hbxbp/Makefile
  * contrib/hbxbp/xbpdialog.prg
  * contrib/hbxbp/xbpwindow.prg

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idethemes.prg

    -+ Shifted HbpQtUI() class from hbXBP to hbQT.
2010-01-29 02:07:36 +00:00
Viktor Szakats
acbbde9abe 2010-01-29 00:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    % Re-merged Harbour and xhb section in .c stub.

  * TODO
    * xHarbour -> Harbour.
2010-01-28 23:35:32 +00:00
Przemyslaw Czerpak
15b51bbe0a 2010-01-28 23:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    + enabled automatic template order setting in Harbour SIXCDX RDD using
      the same method as SIX3 SIXCDX RDD seems to use: by checking leading
      character of key expression for: "sxChar(", "sxDate(", "sxNum(" and
      "sxLog("
      Warning: This code is enabled only for SIXCDX RDD and DBFCDX was not
               modified.
    * disabled RTE in SIXCDX when key add/del operation are executed
      for non custom indexes and
    * do not add keys with different type to template indexes in SIXCDX
      RDD for strict SIX3 compatibility.

  * harbour/doc/cmpopt.txt
    + added information about missing in Clipper expression optimization
      in LOCAL, PRIVATE and PUBLIC variable declaration. Clipper optimize
      only expressions used in STATIC declarations.
2010-01-28 22:25:09 +00:00
Viktor Szakats
13c9220ae4 2010-01-28 20:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -env:<envname>- support to delete envvars completely.
    % Minor optimization in filter handling.

  * contrib/hbwin/win_os.prg
  * contrib/hbwin/win_tprn.prg
    % Using HB_OSISWIN*() functions instead of WIN_OSISWIN*() ones.
2010-01-28 19:21:03 +00:00
Viktor Szakats
c00a4ce387 2010-01-28 04:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * external/Makefile
  * contrib/Makefile
    + Added build option to exclude specific list of contrib/external 
      libraries using syntax: 'HB_CONTRIBLIBS=no lib1 lib2 libn'
2010-01-28 03:24:37 +00:00
Viktor Szakats
221d96944a 2010-01-28 04:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/dummy.c
    + Indicated that some functions are implemented in
      core (for C5.3 compatibility).

  * contrib/hbwin/win_tbmp.prg
    * Formatting.

  - contrib/gtqtc
  + contrib/hbqt/gtqtc
    * Moved under QT structure.
2010-01-28 03:01:28 +00:00
Pritpal Bedi
cd867df55d 2010-01-27 18:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/resources/findinfiles.ui
    + Started implementation of "Find in Files" option.
      Just to have a glimpse what components it will contain,
      click on "Search" button along-side "Find" buttons.
      It is not working but it may prompt you which feature
      I missed to include. Just play.
2010-01-28 02:47:56 +00:00
Pritpal Bedi
5790842dc4 2010-01-27 08:58 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/resources/projectproperties.ui
    + Implemented loading project from .hbp.
      Look for the button on top of "Properties" dialog.
      Please note that .hbp file is loaded with its whole
      contentents and then is sectionized as per .hbi 
      protocol. So, the disadvantage is you loose the 
      free-format implementation of .hbp. It has to be 
      discovered how can we cover this aspect. Be careful 
      when building the project as existing .hbp will be 
      overwritten if you choose the "Project Location" 
      of the project pointing to same folder where .hbp
      resides. Other than loosing "-skip" protocol of .hbp, 
      I am sure we are loosing nothing else, please test. 
 
    + Implemention <Close Project> and <Remove Project> options
      which can be invoked from context menu of project node.
2010-01-27 17:09:12 +00:00