Commit Graph

2432 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
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
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
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
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
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
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
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
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
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
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
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
a93731df1b 2010-01-22 13:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/hbwapi.h
    + Added hbwapi_stor_*() functions to store Windows structures
      RECT, POINT and DEVMODE. Latter supports hash only (due
      to large number of structure members), other two supports
      both array and hash.
      Please review my code.
    + WAPI_MOVETOEX() now uses hbwapi_stor_POINT().
    ! WAPI_DRAWTEXT() fixed to return RECT (using hbwapi_stor_RECT()).

  * contrib/hbwin/legacy.prg
  * contrib/xhb/xhw32prn.prg
    * Moved Win32Bmp compatibility class from hbwin to xhb lib.
    ! Deleted Win32Prn compatibility clsss from hbwin, as it's
      now implemented in xhb in a better way.

  * harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
  * include/hbver.h
  * config/global.mk
    + Changed to new major version number:
         2.1.0dev (from 2.0.1dev)
      This gives way for 2.0.x branch to take
      the 2.0.1dev version number.
2010-01-22 12:27:04 +00:00
Przemyslaw Czerpak
937d616405 2010-01-19 09:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    * pacified BCC warning

  * harbour/src/compiler/harbour.yyc
  * harbour/src/compiler/harbour.yyh
    * regenerated with patched bison to pacify BCC warnings

  * harbour/include/hbwinuni.h
    + added HB_ITEMCOPYSTR() macro

  * harbour/src/common/hbwince.c
    * redirected Beep() to MessageBeep() - it does not allow to set
      time and duration but should generate some default system voice
      signal - please test the results with real devices using WinCE/
      Win Mobile

   TODO: New MinGW support LockFileEx() and UnlockFileEx() but they are
         part of coredll6 library not coredll. I guess it's designed to
         use with Windows Mobile 6.x. Add compile and link time support
         for it.
   TODO: Add link time support for MinGWCE and non ARM processors.
         New MinGWCE supports x86 compatible Intel CPUs for pocket devices.
2010-01-19 08:42:19 +00:00
Przemyslaw Czerpak
298ee0015d 2010-01-18 17:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/src/common/hbwince.c
    - removed added for WinCE builds and not longer used wrappers
      for some C RTL functions
2010-01-18 16:03:09 +00:00
Viktor Szakats
a894400a85 2010-01-18 16:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbcompdf.h
  * src/compiler/cmdcheck.c
  * src/compiler/hbmain.c
  * src/compiler/hbcomp.c
  * src/compiler/hbopt.c
  * src/compiler/hbusage.c
  * src/compiler/hbgenerr.c
    + Added options to control error/warning output format/style
      in Harbour, to make it possible to switch to formats which
      are handled by popular IDEs, like Eclipse, Code::Blocks.
      Currently these are supported:
        -ge[0]: Clipper compatible (default)
        -ge1:   "IDE friendly". Mimics the one submitted by Lorenzo
                for Eclipse.
      The goal is to cover the most IDEs with the less options,
      so please test them to reach this optimum.
2010-01-18 15:36:56 +00:00
Przemyslaw Czerpak
ea0937ea3e 2010-01-18 15:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/src/common/hbwince.c
    - disabled not longer necessary in WinCE builds system() and strerror()
      functions
2010-01-18 14:41:12 +00:00
Przemyslaw Czerpak
8f9973afd5 2010-01-18 14:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/common/hbver.c
    + added BOOL hb_iswin9x( void ) C function

  * harbour/src/rtl/version.c
    + added HB_OSISWIN9X() PRG function

  * harbour/src/rtl/gttone.c
    % simplified the code using hb_iswin9x() function

    TODO: Check if WinCE support WinNT file IO functions and if yes then
          replace in src/rtl/filesys.c 'if( hb_iswinnt() )' with 
          'if( !hb_iswin9x() )'

  * harbour/contrib/hbwin/win_tprn.prg
  * harbour/contrib/hbwin/win_prn1.c
    + added ::AskProperties in WIN_PRN class
      If it is assigned .t. prior to calling ::Create(), a DocumentProperties
      dialog is displayed. By Budyanto Dj. borrowed from xHarbour.
      NOTE: this modification does not contain win9x hack present in
            xHarbour. Please make tests and update this code if necessary
2010-01-18 13:57:04 +00:00
Przemyslaw Czerpak
1b9a7424b9 2010-01-18 11:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbinfo.ch
  * harbour/include/hbrdddbf.h
  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
    * renamed DB_DBFLOCK_XHB64 => DB_DBFLOCK_HB64

  * harbour/contrib/hbwin/win_tprn.prg
    * updated some comments and formatting

  * harbour/contrib/xhb/Makefile
  + harbour/contrib/xhb/xhw32prn.prg
    + added WIN32PRN class, it inherits from WIN_PRN class hiding some
      differences between Harbour and xHarbour in paper size setting and
      separated horizontal and vertical alignment setting
2010-01-18 10:21:26 +00:00
Przemyslaw Czerpak
0ee3aa6d4f 2010-01-15 19:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbclass.ch
    * enable strict parameters validation in method declaration and
      implementation when warning level (-w?) is 3 or higher
    * small modification in error messages

  * harbour/contrib/hbwin/win_prn1.c
    ! fixed WIN_FILLRECT() to return logical value (result of FillRect()
      function)
    + extended WIN_SETPEN() to accept previously created by this function
      HPEN handles
    ! fixed WIN_SETCOLOR() to return previously allocated color.
      This function is used in such context in WIN_PRN class.

  * harbour/contrib/hbwin/win_tprn.prg
    + added PageNumber member
    ! fixed printer output detection to respect also graphic primitives
    ! fixed SetColor() not changed to win_SetColor() when code was ported
      from xHarbour
2010-01-15 18:25:14 +00:00
Viktor Szakats
9b462b15d0 2010-01-15 17:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/cmdarg.c
  * contrib/hbct/disk.c
    % Using HB_SIZEOFARRAY() instead of repeating declaration size.

  * src/vm/maindllp.c
  * src/vm/extend.c
  * include/hbtypes.h
  * include/hbapi.h
    + 'parinfa' retval ULONG -> HB_SIZE

  * src/vm/arrayshb.c
  * src/rtl/substr.c
  * src/rtl/replic.c
  * src/rtl/padr.c
  * src/rtl/padc.c
  * src/rtl/strtran.c
  * src/rtl/padl.c
  * src/rtl/lang.c
  * src/rtl/right.c
  * src/rtl/left.c
  * src/rtl/space.c
  * src/rtl/hbstrsh.c
  * src/rtl/rat.c
  * contrib/hbct/charsprd.c
  * contrib/xhb/xhbarr.c
  * contrib/hbpgsql/postgres.c
  * contrib/hbclipsm/stack.c
  * contrib/hbmisc/stringsx.c
    + 'long' -> HB_ISIZ

  * src/common/hbwince.c
  * include/hbwince.h
  * contrib/xhb/xhbat.c
  * contrib/xhb/cstructc.c
    + 'unsigned long' -> HB_SIZE

  * src/rtl/fstemp.c
  * src/rtl/net.c
    ! L'x' -> TEXT( 'x' ).
      'L' was used also in non-UNICODE mode, which doesn't seem right.

  * src/rtl/diskspac.c
  * contrib/hbct/disk.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/win_prn3.c
    * TCHAR literals enclosed inside TEXT() macro.

  * contrib/hbwin/win_prn1.c
    ! WIN_GETPRINTERFONTNAME(): Fixed buffer overrun in UNICODE
      mode for font names longer than 64 bytes.
      [TOMERGE 2.0]

  * ChangeLog
    + Added two missed changed to this entry:
      2010-01-15 12:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
        * include/hbdefs.h
          + Added HB_ISIZ temporary type to mark string/array/hash 
            index/length variable already using signed 'long' type.
            This will have to converted to HB_SIZE, one HB_SIZE
            gets also mapped to 'long'.
          * HB_FATTR mapped to HB_U32 (was: unsigned long)
2010-01-15 16:39:54 +00:00
Viktor Szakats
17a7f91323 2010-01-15 15:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbexprb.c
    ! s&r error bug in recent change.

  * utils/hbmk2/hbmk2.prg
    + Accepting name=, description=, verison= .hbc lines.
      Just a step, no real purpose.

  * contrib/hbodbc/odbc.c
    * long -> HB_SIZE
    * ULONG -> HB_SIZE
2010-01-15 14:12:58 +00:00
Viktor Szakats
af966c6e85 2010-01-15 12:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Marked BOOL, TRUE and FALSE as HB_LEGACY_LEVEL3.
      This means these types will disappear from Harbour after next 
      major release.
      Please start to migrate to the new, pure Harbour replacement 
      types for portable Harbour code:
         HB_BOOL, HB_TRUE, HB_FALSE.

      Notice that you still may (and should) use BOOL, TRUE, FALSE
      when dealing with Windows API (and some other 3rd party APIs),
      where these are valid types in their own context.

  * include/clipdefs.h
    + Added BOOL, TRUE and FALSE as Clipper compatibility type.
      TRUE equals to 1 here for better Clipper compatibility
      (was: !0)
2010-01-15 11:21:32 +00:00
Viktor Szakats
7903d5b170 2010-01-15 12:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/macro/macro.yyc
  * src/macro/macro.y
  * src/macro/macrolex.c
  * src/rtl/gtwvt/gtwvt.h
  * doc/en-EN/hb_apigt.txt
  * doc/en-EN/hb_api.txt
  * doc/en-EN/hb_vm.txt
  * doc/en-EN/hb_apiln.txt
  * doc/en-EN/hb_macro.txt
  * doc/en-EN/hb_apiit.txt
  * doc/en-EN/hb_apifs.txt
  * doc/codestyl.txt
  * include/hbthread.h
  * include/hbxvm.h
  * include/hbdefs.h
  * include/hbvm.h
  * include/hbcomp.h
  * include/hbcompdf.h
  * include/hbwmain.c
  * include/hbexpra.c
  * include/hbfloat.h
  * include/hbapicls.h
  * include/hbexprb.c
  * contrib/hbtpathy/tpos2.c
  * contrib/hbtpathy/tpunix.c
  * contrib/hbnf/prtscr.c
  * contrib/hbnf/proper.c
  * contrib/hbnf/fttext.c
  * contrib/hbnf/dispc.c
  * contrib/hbnf/ontick.c
  * contrib/hbnf/poke.c
  * contrib/hbpgsql/postgres.c
  * contrib/rddads/rddads.h
  * contrib/hbmisc/strfmt.c
  * contrib/hbmisc/ffind.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/axcore.c
  * contrib/hbwin/win_dll.c
  * examples/hbdoc/examples/core_es/hb_vm.txt
  * examples/hbdoc/examples/core_es/hb_apiln.txt
  * examples/rddado/adordd.prg
    * BOOL  -> HB_BOOL
    * TRUE  -> HB_TRUE
    * FALSE -> HB_FALSE
      ; Final touches after verification of whole codebase.
        GTWVG still needs changes.
    ! Fixed FT_FBOF() returning random value after FT_USE().
    ! Fixed some bool values stored in int types.
2010-01-15 11:06:44 +00:00
Viktor Szakats
0058f70389 2010-01-15 00:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbbmcdx/bmdbfcdx.c
  * contrib/hbbmcdx/hbbmcdx.h
  * include/hbapirdd.h
  * include/hbdbsort.h
  * include/hbrddcdx.h
  * include/hbrdddbf.h
  * include/hbrdddel.h
  * include/hbrddfpt.h
  * include/hbrddnsx.h
  * include/hbrddntx.h
  * include/hbrddsdf.h
  * src/rdd/dbcmd.c
  * src/rdd/dbcmd53.c
  * src/rdd/dbdetach.c
  * src/rdd/dbf1.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfntx/dbfntx1.c
  * src/rdd/dbsql.c
  * src/rdd/delim1.c
  * src/rdd/hbdbsort.c
  * src/rdd/hbsix/sxcompr.c
  * src/rdd/hbsix/sxcrypt.c
  * src/rdd/hbsix/sxfname.c
  * src/rdd/hbsix/sxord.c
  * src/rdd/hbsix/sxsem.c
  * src/rdd/hbsix/sxtable.c
  * src/rdd/hbsix/sxutil.c
  * src/rdd/hsx/hsx.c
  * src/rdd/nulsys/nulsys.c
  * src/rdd/sdf1.c
  * src/rdd/usrrdd/usrrdd.c
  * src/rdd/wacore.c
  * src/rdd/wafunc.c
  * src/rdd/workarea.c
    * BOOL  -> HB_BOOL
    * TRUE  -> HB_TRUE
    * FALSE -> HB_FALSE
2010-01-14 23:49:12 +00:00
Viktor Szakats
3f778786b0 2010-01-14 22:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/pplib.c
  * src/pp/ppcore.c
  * src/pp/hbpp.c
  * include/hbpp.h
    * BOOL  -> HB_BOOL
    * TRUE  -> HB_TRUE
    * FALSE -> HB_FALSE
2010-01-14 21:59:52 +00:00
Viktor Szakats
003fd7c41e 2010-01-14 18:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/strclear.c
    + HB_STRCLEAR() return value will now precisely inform about
      successful clear operation. Thanks to Mindaugas.

  * src/vm/hashfunc.c
  * src/vm/macro.c
  * src/vm/strapi.c
  * src/vm/runner.c
  * src/vm/estack.c
  * src/vm/codebloc.c
  * src/vm/hashes.c
  * src/vm/maindll.c
  * src/vm/dynsym.c
  * src/vm/debug.c
  * src/vm/itemapi.c
  * src/vm/garbage.c
  * src/vm/asort.c
  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * src/vm/mainstd.c
  * src/vm/maindllp.c
  * src/vm/arrays.c
  * src/vm/task.c
  * src/vm/fm.c
  * src/vm/proc.c
  * src/vm/thread.c
  * src/vm/memvars.c
  * src/vm/arrayshb.c
  * src/vm/eval.c
  * src/vm/extend.c
  * src/vm/dynlibhb.c
  * src/vm/set.c
  * src/vm/classes.c
  * src/debug/dbgentry.c
  * src/common/hbgete.c
  * src/common/hbffind.c
  * src/common/hbver.c
  * src/common/hbprintf.c
  * src/common/hbfsapi.c
  * src/common/hbstr.c
  * src/common/expropt1.c
  * src/common/expropt2.c
  * src/common/hbdate.c
  * src/common/strwild.c
  * src/common/hbhash.c
  * src/rtl/gtdos/gtdos.c
  * src/rtl/fscopy.c
  * src/rtl/run.c
  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtxwc/gtxwc.h
  * src/rtl/gtxwc/gtxwc.c
  * src/rtl/math.c
  * src/rtl/empty.c
  * src/rtl/gtcrs/gtcrs.c
  * src/rtl/trim.c
  * src/rtl/filehb.c
  * src/rtl/hbtoken.c
  * src/rtl/fstemp.c
  * src/rtl/gtchrmap.c
  * src/rtl/strmatch.c
  * src/rtl/gtstd/gtstd.c
  * src/rtl/gttrm/gttrm.c
  * src/rtl/padr.c
  * src/rtl/hbstrfmt.c
  * src/rtl/transfrm.c
  * src/rtl/fserr.c
  * src/rtl/minmax.c
  * src/rtl/hbfeof.c
  * src/rtl/dates.c
  * src/rtl/padc.c
  * src/rtl/gtcgi/gtcgi.c
  * src/rtl/errapi.c
  * src/rtl/version.c
  * src/rtl/hbregexc.c
  * src/rtl/hbrandom.c
  * src/rtl/strtran.c
  * src/rtl/hbprocfn.c
  * src/rtl/hbsocket.c
  * src/rtl/hbinet.c
  * src/rtl/copyfile.c
  * src/rtl/errintlo.c
  * src/rtl/gtapi.c
  * src/rtl/filesys.c
  * src/rtl/padl.c
  * src/rtl/hbregex.c
  * src/rtl/hbbit.c
  * src/rtl/isprint.c
  * src/rtl/saverest.c
  * src/rtl/diskspac.c
  * src/rtl/console.c
  * src/rtl/spfiles.c
  * src/rtl/gtos2/gtos2.c
  * src/rtl/philes.c
  * src/rtl/hbbffnc.c
  * src/rtl/hbgtcore.c
  * src/rtl/cdpapi.c
  * src/rtl/dirdrive.c
  * src/rtl/hbi18n1.c
  * src/rtl/gtclip.c
  * src/rtl/mlcfunc.c
  * src/rtl/gtapiu.c
  * src/rtl/accept.c
  * src/rtl/idle.c
  * src/rtl/itemseri.c
  * src/rtl/hbrunfun.c
  * src/rtl/setcolor.c
  * src/rtl/setkey.c
  * src/rtl/gtsln/mousesln.c
  * src/rtl/gtsln/gtsln.c
  * src/rtl/gtsln/kbsln.c
  * src/rtl/gtsln/gtsln.h
  * src/rtl/disksphb.c
  * src/rtl/strc.c
  * src/rtl/gtpca/gtpca.c
  * src/rtl/gtgui/gtgui.c
  * src/rtl/hbhex.c
  * src/rtl/trace.c
  * src/rtl/gt_tpl/gt_tpl.c
  * src/rtl/inkeyapi.c
  * src/rtl/filebuf.c
  * src/rtl/gete.c
  * src/rtl/setcurs.c
  * src/rtl/hbproces.c
  * src/rtl/langapi.c
  * src/rtl/gtwvt/gtwvt.h
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/mouse53.c
  * src/rtl/fssize.c
  * src/rtl/hbbyte.c
  * src/rtl/mouseapi.c
  * src/rtl/memofile.c
  * src/rtl/valtostr.c
  * src/rtl/file.c
  * src/rtl/val.c
  * src/rtl/rat.c
  * src/rdd/hbsix/sxcompr.c
  * include/hbvmpub.h
  * include/hbset.h
  * include/hbapicdp.h
  * include/hbstack.h
  * include/hbapilng.h
  * include/hbgtcore.h
  * include/hbapifs.h
  * include/hbthread.h
  * include/hbxvm.h
  * include/hbmacro.h
  * include/hbtypes.h
  * include/hbapi.h
  * include/hbapiitm.h
  * include/hbznet.h
  * include/hbvm.h
  * include/hbapidbg.h
  * include/hbcomp.h
  * include/hbsxfunc.h
  * include/hbcompdf.h
  * include/hbmather.h
  * include/hbapistr.h
  * include/hbwmain.c
  * include/hbexpra.c
  * include/hbexprop.h
  * include/hbsocket.h
  * include/hbapigt.h
  * include/hbapicls.h
  * include/hbhash.h
  * include/hbregex.h
  * include/hbexprb.c
  * include/hbdate.h
  * contrib/gtalleg/gtalleg.c
  * contrib/xhb/hboutdbg.c
  * contrib/xhb/hbserv.h
  * contrib/xhb/bkgtsks.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/xhbis.c
  * contrib/xhb/fparse.c
  * contrib/xhb/xhb.h
  * contrib/xhb/xhbsave.c
  * contrib/xhb/xhbmsgs.c
  * contrib/xhb/freadlin.c
  * contrib/xhb/txtline.c
  * contrib/xhb/dbgfxc.c
  * contrib/xhb/xhberrc.c
  * contrib/xhb/filestat.c
  * contrib/xhb/xhbcopyf.c
  * contrib/xhb/hbnxs.h
  * contrib/xhb/hbserv.c
  * contrib/xhb/cstructc.c
  * contrib/xhb/xhbfunc.c
  * contrib/hbmzip/hbmzip.c
  * contrib/gtqtc/gtqtc.cpp
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgcuig.c
  * contrib/gtwvg/wvggui.h
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgwing.c
  * contrib/hbmisc/hb_f.c
  * contrib/hbmisc/dates2.c
  * contrib/hbwin/hbwapi.h
  * contrib/hbbtree/tests/ctest.c
    * BOOL  -> HB_BOOL
    * TRUE  -> HB_TRUE
    * FALSE -> HB_FALSE
    ; If possible please try to verify me, at least your own are of interest
      or expertise. Look for HB_BOOL/HB_TRUE/HB_FALSE usage in WINAPI calls,
      if you see such thing, it's wrong. Also some, HB_BOOL WINAPI BOOL
      implicit conversions may need to be cleaned.
    ; I didn't touch PP, RDD, SDD and compiler parts yet.
    ; In few places it's possible that some in-line comments are disaligned
      after this operation.
2010-01-14 17:59:30 +00:00
Viktor Szakats
856331771d 2010-01-14 13:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/hbsix/sxcompr.c
  * src/rdd/hbsix/sxcrypt.c
  * include/hbsxfunc.h
    + ULONG -> HB_SIZE (some remain)

  * include/hbapiitm.h
  * include/hbvm.h
    + ULONG -> HB_SIZE (missed from prev)

  * contrib/hbbmcdx/bmdbfcdx.c
    ! Fixed another legacy call.
2010-01-14 12:36:49 +00:00
Viktor Szakats
f6a805264e 2010-01-14 13:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Added HB_FATTR type to represent file attribute (mapped to unsigned long).

  * src/common/hbffind.c
  * src/rtl/fstemp.c
  * src/rtl/filesys.c
  * src/rtl/spfiles.c
  * src/rtl/philes.c
  * src/rtl/filebuf.c
  * include/hbapifs.h
  * contrib/hbct/files.c
    + ULONG -> HB_FATTR

  * contrib/hbct/charsprd.c
  * contrib/hbct/misc2.c
  * contrib/hbct/blank.c
  * contrib/hbct/disk.c
  * contrib/hbct/dattime2.c
  * contrib/hbct/expand.c
    + ULONG -> HB_SIZE

  * include/hbapifs.h
  * contrib/xhb/xhb.h
    + ULONG -> HB_SIZE (missed from prev)
2010-01-14 12:24:57 +00:00
Przemyslaw Czerpak
d2374b5357 2010-01-14 12:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/src/pp/ppcore.c
  * harbour/src/pp/pplib.c
  * harbour/src/compiler/ppcomp.c
    + added support for __pragma( <switchname> ) in #if expressions, i.e.:
         #if __pragma( WARNINGLEVEL ) >= 3
            #stdout Warnings set to level 3 or higher
         #endif
         #if !__pragma( z )
            #stdout Shortcut optimization enabled
         #else
            #stdout Force complete boolean evaluation
         #endif
         #if __pragma( kj )
            #stdout NO JUMP OPTIMIZATION
         #endif
         #if __pragma( km )
            #stdout MACRO TEXT SUBSTITUTION DISABLED
         #endif
         #if __pragma( kh )
            #stdout HARBOUR EXTENSIONS
         #endif
2010-01-14 11:44:54 +00:00
Viktor Szakats
48a5b549cd 2010-01-14 12:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/hbcrypt.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/xstrdel.c
  * contrib/xhb/hbcomprs.c
  * contrib/xhb/txtline.c
  * contrib/hbbmcdx/bmdbfcdx.c
    ! Fixed to use current APIs instead of legacy/compatibility ones.
    ; Pls review the cdp ones.

  * src/rtl/langapi.c
  * include/hbapilng.h
    + Un-marked hb_langDGetErrorDesc() with HB_LEGACY_LEVEL3. [REVERT]
2010-01-14 11:39:44 +00:00
Viktor Szakats
c5847e7452 2010-01-14 12:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/hashfunc.c
  * src/vm/macro.c
  * src/vm/strapi.c
  * src/vm/codebloc.c
  * src/vm/hashes.c
  * src/vm/debug.c
  * src/vm/itemapi.c
  * src/vm/asort.c
  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * src/vm/maindllp.c
  * src/vm/arrays.c
  * src/vm/memvars.c
  * src/vm/arrayshb.c
  * src/vm/extend.c
  * src/vm/set.c
  * src/rtl/strtran.c
  * include/hbxvm.h
  * include/hbtypes.h
  * include/hbapi.h
  * include/hbapistr.h
    * ULONG -> HB_SIZE
2010-01-14 11:28:27 +00:00
Viktor Szakats
835220af7f 2010-01-14 11:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
  * src/rtl/gtcrs/gtcrs.c
  * src/rtl/gtstd/gtstd.c
  * src/rtl/gtcgi/gtcgi.c
  * src/rtl/gtpca/gtpca.c
  * src/rtl/gtgui/gtgui.c
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/transfrm.c
  * src/rtl/hbprocfn.c
  * src/rtl/console.c
  * src/rtl/hbgtcore.c
  * src/rtl/accept.c
  * src/rtl/hbproces.c
  * include/hbgtcore.h
    * ULONG -> HB_SIZE
2010-01-14 10:53:40 +00:00
Viktor Szakats
528989c718 2010-01-14 11:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/set.c
  * src/debug/dbgentry.c
  * src/common/hbgete.c
  * src/common/hbffind.c
  * src/common/hbwince.c
  * src/common/hbstr.c
  * src/common/hbmem.c
  * src/common/strwild.c
  * src/common/hbhash.c
  * src/rtl/lennum.c
  * src/rtl/strxor.c
  * src/rtl/strcase.c
  * src/rtl/hbzlibgz.c
  * src/rtl/trim.c
  * src/rtl/base64c.c
  * src/rtl/binnum.c
  * src/rtl/hbtoken.c
  * src/rtl/ampm.c
  * src/rtl/descend.c
  * src/rtl/strpeek.c
  * src/rtl/replic.c
  * src/rtl/padr.c
  * src/rtl/hbstrfmt.c
  * src/rtl/hbntos.c
  * src/rtl/hbadler.c
  * src/rtl/at.c
  * src/rtl/fserr.c
  * src/rtl/hbcrc.c
  * src/rtl/hbmd5.c
  * src/rtl/hbascii.c
  * src/rtl/padc.c
  * src/rtl/strzero.c
  * src/rtl/hbregexc.c
  * src/rtl/strtran.c
  * src/rtl/hbsocket.c
  * src/rtl/hbinet.c
  * src/rtl/strtoexp.c
  * src/rtl/gtapi.c
  * src/rtl/filesys.c
  * src/rtl/padl.c
  * src/rtl/hbregex.c
  * src/rtl/saverest.c
  * src/rtl/right.c
  * src/rtl/hbbffnc.c
  * src/rtl/cdpapi.c
  * src/rtl/hbi18n1.c
  * src/rtl/gtclip.c
  * src/rtl/mlcfunc.c
  * src/rtl/left.c
  * src/rtl/xsavescr.c
  * src/rtl/hardcr.c
  * src/rtl/setkey.c
  * src/rtl/hbzlib.c
  * src/rtl/strc.c
  * src/rtl/stuff.c
  * src/rtl/hbhex.c
  * src/rtl/trace.c
  * src/rtl/samples.c
  * src/rtl/inkeyapi.c
  * src/rtl/inkey.c
  * src/rtl/mtran.c
  * src/rtl/gete.c
  * src/rtl/mouse53.c
  * src/rtl/colorind.c
  * src/rtl/ati.c
  * src/rtl/soundex.c
  * src/rtl/memofile.c
  * src/rtl/valtostr.c
  * src/rtl/rat.c
  * include/hbapicdp.h
  * include/hbgtcore.h
  * include/hbapifs.h
  * include/hbapi.h
  * include/hbchksum.h
  * include/hbapigt.h
  * include/hbhash.h
  * contrib/xhb/hboutdbg.c
  * contrib/xhb/hbxml.c
  * contrib/xhb/hbcrypt.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/xstrdel.c
  * contrib/xhb/xhbsave.c
  * contrib/xhb/hbcomprs.c
  * contrib/xhb/datesxhb.c
  * contrib/xhb/xhbat.c
  * contrib/xhb/xhbmsgs.c
  * contrib/xhb/xhbarr.c
  * contrib/xhb/txtline.c
  * contrib/xhb/xhbtrim.c
  * contrib/xhb/hbserv.c
  * contrib/xhb/cstructc.c
  * contrib/xhb/xhbfunc.c
    * ULONG -> HB_SIZE

  * src/rtl/langapi.c
  * include/hbapilng.h
    * ULONG -> int
    + Marked hb_langDGetErrorDesc() with HB_LEGACY_LEVEL3.

  * src/common/hbprintf.c
    ! ULONG -> int

  * src/debug/dbgentry.c
    * Formatting.
2010-01-14 10:37:49 +00:00
Przemyslaw Czerpak
91692e7be6 2010-01-14 10:11 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbclass.ch
    ! fixed compilation with strong typed parameters in method
      implementation
    * enable strict parameters validation only when method is declared
      with (), i.e.:
         method open
      does not force any parameter validation so it can be implemented
      with any parameters but:
         method open()
      needs open method implementation with only one parameter and:
         method open( file )
      needs open method implementation with exactly one parameter 'file'
2010-01-14 09:11:48 +00:00
Viktor Szakats
892efc393d 2010-01-13 17:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/Makefile
  + src/rtl/strclear.c
  * include/hbextern.ch
    + Added HB_STRCLEAR() function to safely clear the content 
      of a string variable.
      Notice that this method by itself can only work if the 
      string variable has no other references, and generally 
      you have to code carefully to avoid creating unwanted 
      copies of the string when passing it around in an app.
      So this is no silver bullet, but rather just one component 
      to solve this problem.

  * contrib/hbnetio/utils/netiosrv.prg
    + Added steps to avoid having the password stored in memory, 
      while the server is running.

  * src/rtl/philes.c
    % Minor cleanup.
2010-01-13 16:13:29 +00:00
Viktor Szakats
6e4895e9de 2010-01-13 15:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.ch
    * Disabled HB_LEGACY_LEVEL2 by default.
    * HB_LEGACY_OFF now controls HB_LEGACY_LEVEL3 (was HB_LEGACY_LEVEL2).
    + Added HB_LEGACY_LEVEL4
    ; SVN users notice: This may make your C code INCOMPATIBLE with
      this version, please review required changes (documented in older
      ChangeLog entries) and update your code. Look for HB_LEGACY_LEVEL2
      and INCOMPATIBLE keywords.

  * contrib/hbnetio/utils/netiosrv.prg
  + contrib/hbnetio/utils/modules.hbp
  + contrib/hbnetio/utils/modules
  + contrib/hbnetio/utils/modules/test.prg
    + Added simple command line to server.
    + Added list of possible feature as TODO. Most of these will
      need backend support from hbnetio lib.
    + Added detailed help screen.
    + Added --version option support.
    + Added support for -rpc=file.hrb option. Although for some
      reason (most likely my omission) it doesn't work yet.
    + -DHB_EXTERN will now enable inclusion of all core functions.
    + Added build file for .hrb modules.
    + Added little test module.
    + Added SETCANCEL( .F. ) to avoid irregular shutdown with Ctrl+C.

  * src/rtl/memoedit.prg
    ! Deleted hack which explicitly set lastkey to CTRL_END/W
      when exiting with changes saved. The comment said that
      it was added to make DBU happy, but it doesn't seem to be
      necessary anymore, at least I couldn't spot any problem
      without it. Pls check it.
    ! Fixed MEMOEDIT() not recognizing K_ESC as exit key when
      custom function is used.
      This fixes DBU not recognizing K_ESC as a way to exit
      memo editing. Please review, I'm not MEMOEDIT() user
      and this was such an obvious omission that I wonder
      if there was some real reason for it. Anyhow it was
      wrong before.

  * contrib/hbfimage/fi_wrp.c
  * contrib/hbclipsm/num.c
  * contrib/hbclipsm/numfloor.c
  * contrib/hbclipsm/status.c
  * contrib/hbclipsm/numceil.c
    * Formatting.
2010-01-13 14:11:50 +00:00
Przemyslaw Czerpak
4475e8b0af 2010-01-13 09:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/vm/hashes.c
    + added new function hb_hashGetCItemPtr() which accepts ASCIIZ string
      as index.

  * harbour/contrib/hbnetio/netiosrv.c
    + added support for using HASH arrays as RPC filter.
      Such hash array should be indexed by function/procedure name set of
      codeblocks or function references or even objects which understand
      EVAL method.
      Please remember that function names passed from client side are case
      sensitive so if you do not need it then please disable case matching
      in the hash array, i.e. using HB_HSETCASEMATCH( hValue, .F. ).
    * renamed NETIO_RPCFUNC() to NETIO_RPCFILTER() it's better name now
      because we added support for using hash arrays as RPC filters:
         NETIO_RPCFILTER( <pConnectionSocket>,
                          <sFuncSym> | <hValue> | NIL ) -> NIL

  * harbour/contrib/hbnetio/netiomt.prg
    + added support for setting RPC filter in NETIO_MTSERVER() using its
      4-th parameter:
         NETIO_MTSERVER( [<nPort>], [<cIfAddr>], [<cRootDir>],
                         [<lRPC> | <sFuncSym> | <hValue>],
                         [<cPasswd>], [<nCompressionLevel>], [<nStrategy>] )
            -> <pListenSocket>

  * harbour/contrib/hbclipsm/environ.c
    ! fixed GPF in FILEDRIVE() function on platforms which do not support
      drive letters or when path does not contain drive.
    % small optimization in FILEPATH(), FILEBASE(), FILEEXT(), FILEDRIVE()
2010-01-13 08:38:05 +00:00
Przemyslaw Czerpak
25de114b61 2010-01-08 14:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbnetio/netiocli.c
    * pacified BCC warning

  * harbour/include/hbznet.h
  * harbour/src/rtl/hbznet.c
    + added support for blowfish encryption in HB_ZNETSTREAM
    + added C function
         void hb_znetEncryptKey( PHB_ZNETSTREAM pStream,
                                 const void * keydata, int keylen );
      which enables data encryption in HB_ZNETSTREAM
    + added 4-th parameter to <cPass> to .PRG HB_INETCOMPRESS() function:
         HB_INETCOMPRESS( <pSocket>, [<nCompressionLevel>], [<nStrategy>],
                          [<cPass>] )
         <cPass> is initial value to create blowfish key.
      Please test.
2010-01-08 13:00:37 +00:00
Viktor Szakats
0511a246a3 2010-01-08 01:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/msvcarm.mk
    + Added -nxcompat and -dynamicbase to .dll link command.
      (I'm unsure what -dynamicbase is good for in a .dll, but it's
      accepted and set)
    ! Fixed to add -nxcompat/-dynamicbase for MSVC 2008 and upper.
      (it's also possible to use it with MSVS 2005 SP1 though, but
      build won't detect this case)

  * include/hbwince.h
    * Formatting.
2010-01-08 00:33:47 +00:00
Viktor Szakats
23ac606bcc 2010-01-08 01:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/dlmalloc.c
    ! Fixed two potentially uninitialized variables, signaled by MSVC.

  * src/common/hbgete.c
    + Changed to use native SetEnvironmentVariable() API instead of
      forced ANSI one.

  * src/common/hbwince.c
  * include/hbwince.h
    % Deleted unused ANSI Windows API stubs.
    + Added empty SetEnvironmentVariable() stub for WinCE
      builds where it's missing.
    * Reconfigured these stubs:
        SetCurrentDirectory()
        GetCurrentDirectory()
        GetComputerName()
        GetUserName()

  * config/win/global.mk
    * Comment updated.

  * config/win/msvc.mk
    + Added -nxcompat and -dynamicbase to .dll link command.
      (I'm unsure what -dynamicbase is good for in a .dll, but it's
      accepted and set)
    ! Fixed to add -nxcompat/-dynamicbase for MSVC 2008 and upper.
      (it's also possible to use it with MSVS 2005 SP1 though, but
      build won't detect this case)
2010-01-08 00:14:19 +00:00
Viktor Szakats
dd570d683c 2010-01-07 21:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added free SVN book link.

  * src/vm/extrap.c
    % Marked exception filter callback as 'static'
    ; TOCHECK: Please verify that OS/2 still works this way.

  * src/rtl/oemansi.c
    ! Fixed two tabs.

  * src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
  * contrib/rddads/adsfunc.c
    ! Fixed to not use unsafe/ANSI CharToOemBuffA() API.
    ; Please review me.

  * config/win/mingw.mk
    + Added information about MinGW alternatives for MSVC
      security features. Unfortunately they need Cygwin
      binary plus some depend on MinGW host platform
      and/or version.

  * include/hbwince.h
  * src/common/hbwince.c
    - Deleted CharToOemBuffA(), OemToCharBuffA(). No longer
      needed by Harbour.
    ; TODO: Delete rest of not anymore used ANSI WinAPI
            functions. Now Harbour never uses ANSI
            WinAPI functions in UNICODE mode.

  * config/win/global.mk
    - Deleted reference to CharToOemBuffA(), OemToCharBuffA().
2010-01-07 20:59:38 +00:00
Przemyslaw Czerpak
4e02eab09f 2010-01-07 14:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbznet.c
  * harbour/include/hbznet.h
    * added new optional parameter to hb_znetWrite() function which allow
      to catch result of last hb_socketSend() operation
    * removed automatic flushing from hb_znetWrite() function,
      it should help in implementing more efficient C code using
      hb_znet*() functions

  * harbour/src/rtl/hbinet.c
    * flush HB_ZNETSTREAM output after write operation
    % small optimization in internal inet error setting
2010-01-07 13:07:54 +00:00