Commit Graph

13377 Commits

Author SHA1 Message Date
Viktor Szakats
3a0affc051 2010-02-07 16:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    ! New Harbour types moved upper in the file to avoid
      errors reported on the list.
    - Deleted HB_I8 and HB_U8 types. Practice shows that
      HB_UCHAR and HB_SCHAR are used instead of these.
2010-02-07 15:03:51 +00:00
Viktor Szakats
401efccaae 2010-02-07 15:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/dynsym.c
  * src/vm/fm.c
  * src/vm/classes.c
  * src/rtl/transfrm.c
  * src/rtl/filebuf.c
  * src/rdd/wacore.c
  * src/compiler/compi18n.c
  * tests/bldtest/bldtest.c
  * include/hbcomp.h
  * include/hbcompdf.h
  * contrib/xhb/hbserv.c
  * contrib/hbfimage/fi_wrp.c
    * UINT -> HB_UINT, unsigned, HB_SIZE, (unchanged)
      Depending on context.
2010-02-07 14:16:13 +00:00
Viktor Szakats
e2e2c4587e 2010-02-07 14:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/itemapi.c
  * src/vm/hvm.c
  * src/vm/arrays.c
  * src/vm/extend.c
  * src/common/hbstr.c
  * src/common/hbdate.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/compiler/gencc.c
  * tests/bldtest/bldtest.c
  * include/hbxvm.h
  * include/hbdefs.h
  * include/hbapi.h
  * include/hbapiitm.h
  * contrib/hbwin/olecore.c
  * contrib/hbbmcdx/bmdbfcdx.c
    * LONGLONG  -> HB_LONGLONG
    * ULONGLONG -> HB_ULONGLONG
2010-02-07 13:53:35 +00:00
Viktor Szakats
7992297b4d 2010-02-07 14:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/strdiff.c
  * contrib/hbct/token2.c
  * contrib/hbct/charlist.c
  * contrib/hbct/charonly.c
  * contrib/hbct/atadjust.c
  * contrib/hbct/charsort.c
  * contrib/hbct/charmix.c
  * contrib/hbct/charevod.c
  * contrib/hbct/wordrepl.c
  * contrib/hbct/charrepl.c
  * contrib/hbct/strswap.c
  * contrib/hbct/charswap.c
  * contrib/hbct/charop.c
  * contrib/hbct/charone.c
  * contrib/hbct/pos1.c
  * contrib/hbct/ascpos.c
  * contrib/hbct/ctstr.c
  * contrib/hbct/token1.c
  * contrib/hbct/ctstr.h
  * contrib/hbct/charmirr.c
  * contrib/hbct/relation.c
  * contrib/hbct/atnum.c
  * contrib/hbct/count.c
  * contrib/hbct/ctcrypt.c
  * contrib/hbct/posdiff.c
  * contrib/hbct/range.c
  * contrib/hbct/addascii.c
  * contrib/hbct/tab.c
  * contrib/hbct/dattime2.c
  * contrib/hbct/replace.c
  * contrib/hbct/pos2.c
  * contrib/hbct/numat.c
  * contrib/hbct/atrepl.c
  * contrib/hbct/wordtoch.c
  * contrib/hbct/ctpad.c
  * contrib/hbct/justify.c
  * contrib/hbct/remove.c
    * size_t -> HB_SIZE
    % Deleted now unnecessary casts.
    + Added casts to strlen() calls.

  * contrib/hbct/ctcrypt.c
    * ULONG -> HB_SIZE

  * contrib/hbct/dattime2.c
    * Formatting.
2010-02-07 13:41:30 +00:00
Viktor Szakats
ab27cebc96 2010-02-07 14:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/ppcore.c
  * src/vm/itemapi.c
  * src/vm/dynlibhb.c
  * src/vm/set.c
  * src/debug/dbgentry.c
  * src/common/expropt1.c
  * src/common/hbstr.c
  * src/common/expropt2.c
  * src/macro/macro.yyc
  * src/macro/macro.y
  * src/macro/macro.yyh
  * src/rtl/scroll.c
  * src/rtl/gtdos/gtdos.c
  * src/rtl/gtwin/gtwin.c
  * src/rtl/gttrm/gttrm.c
  * src/rtl/transfrm.c
  * src/rtl/dates.c
  * src/rtl/filesys.c
  * src/rtl/chrasc.c
  * src/rtl/cdpapi.c
  * src/rtl/hbi18n1.c
  * src/rtl/itemseri.c
  * src/rtl/hbhex.c
  * src/rtl/cdpapihb.c
  * src/rdd/dbsql.c
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbf1.c
  * src/rdd/hsx/hsx.c
  * src/rdd/hbsix/sxutil.c
  * src/rdd/hbsix/sxcompr.c
  * src/rdd/hbsix/sxcrypt.c
  * src/compiler/compi18n.c
  * src/compiler/complex.c
  * src/compiler/genc.c
  * src/compiler/harbour.yyc
  * src/compiler/harbour.y
  * src/compiler/harbour.yyh
  * include/hbpp.h
  * include/hbapicdp.h
  * include/hbrddnsx.h
  * include/hbexprb.c
  * ChangeLog
  * contrib/hbct/screen2.c
  * contrib/hbct/pos1.c
  * contrib/hbct/screen1.c
  * contrib/hbct/token1.c
  * contrib/hbct/disk.c
  * contrib/xhb/xhbmsgs.c
  * contrib/hbnf/ftattr.c
    * UCHAR -> HB_UCHAR
    ; NOTE: In cdp subsystem 'unsigned char' is used instead of HB_UCHAR
            in many places, maybe it needs cleanup (I've found 
            one inconsistency in a function declaration).
    ; QUESTION: There is one suspiciously looking usage:
                ftattr.c / iColor = ( HB_UCHAR ) *pAttrib++;
                Is it ok?
2010-02-07 13:19:33 +00:00
Viktor Szakats
85ac3af0f1 2010-02-07 13:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/ctchksum.c
    ! Fixed to not strip const from type.
    * ULONG -> HB_SIZE, HB_U32
    * UCHAR -> HB_UCHAR

  * contrib/hbct/asciisum.c
    * size_t -> HB_SIZE
    * Formatting.
2010-02-07 12:58:41 +00:00
Viktor Szakats
11f39645d2 2010-02-07 13:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
  * src/vm/extrap.c
  * src/common/hbarch.c
  * src/nortl/nortl.c
  * src/rtl/binnum.c
  * src/rtl/hbbffnc.c
  * src/rtl/hbznet.c
  * src/rtl/hbbfish.c
  * src/rtl/hbbyte.c
  * src/rtl/binnumx.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbf1.c
  * src/rdd/hsx/hsx.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/rdd/hbsix/sxcrypt.c
  * src/compiler/cmdcheck.c
  * include/hbgtcore.h
  * include/hbdefs.h
  * include/hbbfish.h
  * contrib/hbct/bitnum.c
  * contrib/hbct/ctwin.c
  * contrib/xpp/binnumx.c
  * contrib/hbnetio/netiocli.c
  * contrib/hbnetio/netiosrv.c
  * contrib/hbbmcdx/bmdbfcdx.c
  * contrib/hbbtree/hb_btree.c
    * UINT16 -> HB_U16
    * UINT32 -> HB_U32
    * UINT64 -> HB_U64
    * INT16  -> HB_I16
    * INT32  -> HB_I32
    * INT64  -> HB_I64

  * contrib/hbct/bitnum.c
    ! Fixed INTNEG(), INTPOS(). Second 'l32bit' 
      parameter was working in reverse.
2010-02-07 12:17:40 +00:00
Przemyslaw Czerpak
55f367ecc1 2010-02-07 12:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    * minor code cleanup

  * harbour/src/vm/macro.c
    % eliminated memory allocation in macro compiler for object item assign
      operation
    * updated hb_macroGenMessage() to work like hb_compilerGenMessage()

  * harbour/src/vm/memvars.c
    * reverted HB_ISIZ -> int

  * harbour/include/hbmacro.h
  * harbour/include/hbexprop.h
  * harbour/include/hbexpra.c
  * harbour/src/common/expropt1.c
    - eliminated old hb_compExprNewSend()/hb_macroExprNewSend()
    + added common for compiler and macrocompiler functions:
         hb_compExprNewSend(),
         hb_compExprNewMacroSend(),
         hb_compExprNewMethodObject()

  * harbour/include/hbcomp.h
  * harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyc
  * harbour/src/compiler/harbour.yyh
    * use new functions for send coperator
    % eliminated asMessage structure - it was the biggest one so this
      modification reduce total memory usage by grammar stack
    + added new terminal symbol MacroAny and simplified some rules using it
    + added static function hb_compCheckMethod() used for enumerator
      messages
    - eliminated public function hb_compForEachVarError()

  * harbour/src/macro/macro.y
  * harbour/src/macro/macro.yyc
    * use new functions for send coperator
2010-02-07 11:18:15 +00:00
Viktor Szakats
affed5a944 2010-02-07 10:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/vm/memvars.c
    * ULONG -> HB_SIZE where applicable
    * int -> HB_ISIZ where it was used for size

  * src/vm/macro.c
    ! LONG -> long for date/time.

  * include/hbchksum.h
  * src/rtl/hbadler.c
  * src/rtl/hbcrc.c
  * src/rtl/hbi18n1.c
  * contrib/hbmzip/hbmzip.c
    * ULONG -> HB_U32 for crc32 and adler32
    * ULONG -> HB_U16 for crc16
      (the crc table was also changed to HB_U16, pls speak up if this
      may cause less-optimal performance than previous state.)
    * int -> HB_ISIZ where it was used for size (in adler loop)

  * include/hbapi.h
    * HB_VMHANDLE is now mapped to 'unsigned long' instead of ULONG

  * contrib/hbwin/win_bmp.c
    - Deleted no more necessary cast.
2010-02-07 09:57:50 +00:00
Viktor Szakats
3c2646a728 2010-02-07 01:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    ! Fixed error reported by Petr.
      I'm not really sure about the problem, and current code
      is not 100% future proof as a HB_SIZE is passed by reference
      where ULONG ptr is expected.

  * include/hbsetup.h
    + Added HB_DEPRECATED. Can be used as function or variable attribute.
2010-02-07 00:02:17 +00:00
Pritpal Bedi
89bc7f96a2 2010-02-06 15:21 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/resources/findinfiles.ui
  * contrib/hbide/resources/findinfiles.uic

  * contrib/hbide/hbide.ch
  * contrib/hbide/hbide.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/idesaveload.prg

    ! Fixed for RegEx to be compiled with case sensivity.
      BTW, hb_regEx( compiledRegExp, cString, lCaseSensitive, ... )
      does not honor <lCaseSensitive> attribute. Only 
      hb_compRegEx() honors.

    + Implemented to remember last find folder and search expression.
2010-02-06 23:27:45 +00:00
Pritpal Bedi
40894a194c 2010-02-06 13:44 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/resources/findinfiles.ui
  * contrib/hbide/resources/findinfiles.uic

  * contrib/hbqt/qtgui/QSizePolicy.cpp
  * contrib/hbqt/qth/QSizePolicy.qth

  * contrib/hbqt/THbQtUI.prg

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideobject.prg

    + Added more info in "Results".
    ! Core normalization.
    + Implemented RegEx search. 
      I am not good at this engine, please test.
    % Changed TODO => DONE in one entry in ChangeLog.
2010-02-06 21:51:16 +00:00
Viktor Szakats
917948fc8c 2010-02-06 19:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    * BYTE -> char

  * contrib/hbct/ctstrfil.c
    * LONG -> HB_ISIZ

  * contrib/hbmzip/hbmzip.c
    * Changed to use FS API instead of C RTL.
    * Using std Harbour method to include windows.h.

  * package/winuni/RELNOTES
    + Added note about downgrade to mingw64 4.4.0, which is
      a more stable release than 4.5.0, and where .dlls also
      work properly.

  * config/wce/mingwarm.mk
  * config/win/mingw.mk
    ! Fixed to not use -fomit-frame-pointer option for debug builds.
    ! Hack added to disable -fomit-frame-pointer for hbwin lib.
    ; TOFIX: Fix hb_Dynacall() to not be sensitive on this option
             in mingw builds. Is it possible?
2010-02-06 18:56:50 +00:00
Viktor Szakats
7a0be14e88 2010-02-06 16:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
  * src/rtl/philes.c
  * src/rtl/filebuf.c
  * src/rtl/memofile.c
  * src/rdd/dbsql.c
  * src/rdd/hbsix/sxcompr.c
  * doc/en-EN/hb_apifs.txt
  * include/hbapifs.h
  * contrib/hbct/ctstrfil.c
  * contrib/hbsqlit3/hbsqlit3.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbnf/fttext.c
  * contrib/hbmemio/memio.c
  * contrib/hbnetio/netiocli.c
  * contrib/hbnetio/netiosrv.c
  * contrib/hbgd/gdwrp.c
  * contrib/hbwin/win_bmp.c
  * contrib/hbbmcdx/bmdbfcdx.c
  * examples/gtwvw/gtwvw.c
    * Changed ULONG to HB_SIZE and HB_ISIZ in FS API functions.
    ! hb_fsTell() fixed to return HB_FOFFSET instead of ULONG.

  * contrib/hbmzip/hbmzip.c
    * ULONG -> HB_FATTR, uLong
    * Type cleanups.
    ; QUESTION: Is there any reason why we're not using the hb_fs*() functions
                in hb_zipGetFileInfo()?

  * src/vm/runner.c
    * ULONG -> HB_SIZE for size related variables.

  ; Review me please.
2010-02-06 15:05:04 +00:00
Viktor Szakats
78e66614b8 2010-02-06 14:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/garbage.c
  * src/vm/fm.c
  * src/vm/vm.c
  * include/hbapi.h
    * ULONG -> HB_SIZE in memory allocation functions.
2010-02-06 13:01:10 +00:00
Viktor Szakats
112766347d 2010-02-06 12:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/dbf1.c
  * src/compiler/hbopt.c
    * SCHAR -> HB_SCHAR

  * external/libhpdf/hpdffdft.c
  * utils/hbmk2/hbmk2.prg
    * Cleaned to not add double ending pathsep to Harbour -o option.

  * contrib/gtalleg/gtalleg.c
  * contrib/gtalleg/ssf.h
  * contrib/gtalleg/ssf.c
    * BYTE -> unsigned short, int, HB_BYTE
    * USHORT -> unsigned short
    * Some types synced between declaration and definition.
    * Formatting, code cleanups.
2010-02-06 11:48:38 +00:00
Maurilio Longo
b2a72096f3 2010-02-06 12:10 UTC+0100 Maurilio Longo (maurilio.longo@libero.it)
* src/rtl/fstemp.c
     + Added OS/2 section to hb_fsTempDir() which uses the
       environment variable "TEMP" to find out the temporary
       directory.
2010-02-06 11:13:06 +00:00
Pritpal Bedi
56caf8b553 2010-02-05 18:34 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/idefindreplace.prg
    ! Fixed "Stop" to work as expected in "Find in Files" dialog.
2010-02-06 02:33:13 +00:00
Pritpal Bedi
775602b9d9 2010-02-05 17:52 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbxbp/xbpdialog.prg
    ! Fixed a long-standing bug where oDlg:close slot was 
      hiding the window instead of passing taking appropriate
      action when user was opting not to close the window
      returning .F. from this codeblock.
2010-02-06 01:52:11 +00:00
Pritpal Bedi
c20c6ea8c4 2010-02-05 10:11 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_hbslots.cpp
    ! Fixed wrong number of parameters push to hb_vmEvalBlockV().
2010-02-05 18:13:49 +00:00
Pritpal Bedi
c201534892 2010-02-05 08:59 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/resources/findinfiles.ui
  * contrib/hbide/resources/findinfiles.uic
  * contrib/hbqt/THbQtUI.prg

  * contrib/hbide/hbide.ch
  * contrib/hbide/hbide.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idesaveload.prg
    
    + Implemented "Search" option activated via "Search" toolbar icon.
      This implementation presents a dialog to select any number of 
      available "Projects", one "Folder", and "Opened Tabs" in any 
      combination". 

      The results are presented in within-the-dialog edit window
      in a nicely colored and formatted way. This editor also provides
      for "Select All", "Copy", "Clear", "Print", "Find...", 
      "Zoom In/Out" and some more ( to be activated ) options. 
      These options are visible in context menu activated with 
      right-clicking inside the "Results" editor.

      This implemetation also facilitates multiple instances of the 
      "Search" dialogs carrying on the operation at the same time.

      Double-click on any line will open an edit-tab in the main editing
      area, cursor will be positioned highlighted on the "Expression" 
      string, keeping the focus in "Results" editor only.

      Normal usage is carrying the expected actions but I must be 
      ignoring something important. Please test. 

      Please forward any suggessions you think will make it more useful.

    ; TODO: Regex implementation.
            Regex for multiple lines.
            Including sub-folders.
            Including sub-projects.
            "Replace" implementation ( I am exploring how it can be safest )
2010-02-05 17:19:53 +00:00
Viktor Szakats
f435054ba7 2010-02-05 13:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gttone.c
    + Using ANSI C types.
    ! ULONG -> DWORD for Windows API calls.

  * src/rtl/direct.c
    ! ULONG -> HB_FATTR

  * src/rtl/itemseri.c
  * include/hbapiitm.h
    * ULONG -> HB_SIZE

  * src/rtl/samples.c
    + Using ANSI C types. This fixes possible
      incompatibilities with original .prg implementation
      in Clipper.

  * contrib/hbhpdf/harupdf.c
    * Conversion to libharu BOOL value cleaned.

  * include/hbapicdp.h
  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-02-05 12:55:25 +00:00
Viktor Szakats
900ed57db1 2010-02-05 11:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/setpos.c
  * src/rtl/console.c
    ! Fixed SETPOS() and DEVPOS() to return the first parameter 
      unconditionally. For SETPOS() it's protected with 'HB_CLP_UNDOC
      or HB_COMPAT_C53', for DEVPOD() it's protected with 'HB_CLP_UNDOC' 
      only.

  * src/rtl/diskspac.c
    * Using 'int' for drive spec.
    * Minor cleanup.
    ; Please review me.
2010-02-05 10:26:13 +00:00
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