Commit Graph

858 Commits

Author SHA1 Message Date
Viktor Szakats
05f2b13336 2010-12-08 23:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/hbpp.c
    * Bumped some more years.
    ! Fixed to $ Id $ in generated code.
2010-12-08 22:47:11 +00:00
Viktor Szakats
68ad6b9146 2010-12-08 23:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/hbpp.c
  * src/compiler/hbusage.c
  * contrib/hbnetio/utils/netiosrv.prg
  * contrib/hbide/idethemes.prg
  * utils/hbformat/hbformat.prg
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
  * utils/hbi18n/hbi18n.prg
  * utils/hbtest/hbtest.prg
  * utils/hbrun/hbrun.prg
  * INSTALL
    * Bumped copyright year to 2011.

  * contrib/hbide/ideprojmanager.prg
    ! Fixed $ id $ in generated source.
2010-12-08 22:38:19 +00:00
Viktor Szakats
00c09ce91f 2010-12-08 21:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/debug/debugger.prg
  * contrib/hbodbc/tests/odbccall.prg
  * contrib/hbblat/tests/blattest.prg
  * contrib/hbgd/gd.prg
  * contrib/hbtip/tests/tipmail.prg
  * examples/rddado/adordd.prg
  * examples/httpsrv/cgifunc.prg
    * Eliminated using WITH OBJECT.
    % Some optimizations, little fixes.

  * tests/omacro.prg
    * Formatting.
2010-12-08 20:54:55 +00:00
Przemyslaw Czerpak
0823337f39 2010-12-08 12:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/complex.c
    ! fixed condition used in some seldom places to convert expressions
      inside square brackets [] to strings, i.e.:
         FOR EACH c IN [abc]
            ? c
         NEXT
    * keep Clipper restrictions for FUNCTION and PROCEDURE keywords
      covered by -kc switch
2010-12-08 11:20:15 +00:00
Przemyslaw Czerpak
726dc18996 2010-12-05 10:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/codepage/cpcskamc.c
  * harbour/src/codepage/cpskkamc.c
    * replaced binary tables used to create CSKAMC and SKKAMC with
      human readable definition using HB_CDP_CSSORT_MIXED
2010-12-05 09:51:16 +00:00
Przemyslaw Czerpak
3a71036691 2010-12-05 01:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapicdp.h
  * harbour/include/hbcdpreg.h
  * harbour/src/rtl/cdpapi.c
  * harbour/tests/cpinfo.prg
    + added support to define CPs using different letter case sorting
      in human readable form. Now it's possible to use:
         // uppers before lowers: ABCDE...abcde...
         #define HB_CP_CSSORT    HB_CDP_CSSORT_UPLO
         // uppers and lowers are mixed: AaBbCcDdEe....
         #define HB_CP_CSSORT    HB_CDP_CSSORT_MIXED
         // ignore case
         #define HB_CP_CSSORT    HB_CDP_CSSORT_IGNORE
2010-12-05 00:04:47 +00:00
Przemyslaw Czerpak
9519421231 2010-12-04 19:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbinfo.ch
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    + added DBOI_RESETPOS action which can be used to discard cached
      logical and raw position in all index files in given WA
2010-12-04 18:33:01 +00:00
Viktor Szakats
1e8ce2e200 2010-12-04 12:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsocket.c
    ! Fixed typo breaking MS-DOS builds.
2010-12-04 11:54:22 +00:00
Viktor Szakats
25bffb2a7d 2010-12-02 21:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbinet.c
    * Do not set SO_EXCLUSIVEADDRUSE on Windows in
      HB_INETSERVER(), HB_INETDGRAMBIND() calls.
    ; NOTE: INET API is compatibility API, it's deprecated and
            not recommended. Use SOCKET API instead, where
            you have full control of above options and it's
            also much superior API.
2010-12-02 20:42:33 +00:00
Viktor Szakats
514c3a2d00 2010-12-02 14:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * include/hbsocket.h
  * src/rtl/hbsocket.c
  * src/rtl/hbinet.c
  * src/rtl/hbsockhb.c
    + Added hb_socketSetExclusiveAddr() on .c level.
    + Added hb_socketSetExclusiveAddr() on .prg level.
    * hb_socketSetReuseAddr() cleaned from SO_EXCLUSIVEADDRUSE (Windows-only)
      logic.
    * Changed HB_INETSERVER(), HB_INETDGRAMBIND() to call
      hb_socketSetExclusiveAddr()(). We may delete these if they
      cause problems on some Windows platforms, though we must
      absolutely use this option (for security reasons) in every
      server component, if Windows host supports it.
    ; TODO: Call hb_socketSetExclusiveAddr() from hbnetio server,
            hbhttpd server.

  * include/hbcpage.hbx
  * src/codepage/Makefile
  + src/codepage/cpcs852c.c
  * src/codepage/cpsk852c.c
  - src/codepage/cpcskam.c
  + src/codepage/cpcskamc.c
  - src/codepage/cpskkam.c
  + src/codepage/cpskkamc.c
    ! Fixed SK852C to be fully Clipper compatible. (generated with cpinfo)
    ! Added Clipper compatible CS852C CP. (generated with cpinfo)
    * SK/CS Kamenicky CP moved to Clipper compatibility status.
      Updated to be Clipper compatible. (generated with cpinfo)
      INCOMPATIBLE. Pls update CP names if you used these.
      Thanks to Jaroslav Janik for the help.
      Please test all these.
2010-12-02 13:44:51 +00:00
Przemyslaw Czerpak
a75f57da55 2010-12-02 11:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/codepage/cpcs852.c
  * harbour/src/codepage/cpcskam.c
  * harbour/src/codepage/cpcsiso.c
  * harbour/src/codepage/cpcswin.c
    ! switched from HB_CDP_ACSORT_INTERLEAVED to HB_CDP_ACSORT_NONE in
      Czech code pages.

  * harbour/config/win/bcc.mk
    * disable explicitly some common BCC warnings in 3rd party code
      which we can safely ignore when HB_BUILD_WARN=no

  * harbour/utils/hbmk2/hbmk2.prg
    * disable explicitly some common BCC warnings which we can safely
      ignore when warning level is set to low

  * harbour/contrib/hbmisc/bbabble.c
    * removed unnecessary incrementation to pacify compile warning
2010-12-02 10:20:06 +00:00
Przemyslaw Czerpak
9c35c96545 2010-11-30 23:25 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! fixed hb_cdpcmp() call used in indexing RDDs so it can work with
      CPs using digraphs
2010-11-30 22:25:40 +00:00
Viktor Szakats
a623c4232f 2010-11-30 08:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsocket.c
    ! hb_socketSetReuseAddr() changed on win platforms to use
      SO_EXCLUSIVEADDRUSE instead of SO_REUSEADDR. See http://paste.lisp.org/display/59751.
      Rough patch, maybe the logic isn't applied to the right place,
      maybe extra win version checks are required, please test it
      and patch it further if needed.

  * src/rtl/hbinet.c
    * s_inetBind() changed back to call hb_socketSetReuseAddr() also
      on win platforms.

  * contrib/hbwin/tests/testole.prg
    + Added shortcut creation example.

  * contrib/hbide/idemisc.prg
    ! Fixed HBIDE_PATHNORMALIZED() to _never_ lowercase passed
      filename. As discussed very long time ago, such behavior
      is not portable. For comparison purposes HB_FILEMATCH()
      should be used, for other purposes _no_ change should be
      done by hbide in filename casing. Ever.
      This is brute force fix only applied to low-level code.
      It will cause regressions on the higher level, which have
      to be fixed.
    ; TODO: Delete this second parameter from all calls, now
            the value is ignored.
    ; TOFIX: Review all
             HBIDE_PATHNORMALIZED() and
             HBIDE_PATHNORMALIZED( p, .T. )
             calls if they are used in comparison context and change
             caller code to use HB_FILEMATCH().
    ; TOFIX: All current code which uses LOWER()/UPPER() to
             "normalize" filename before comparison with '=='
             operator should also be changed to HB_FILEMATCH().
             (except for cases where extension is used in the
             sense of file type).
    ; TOFIX: Rest of cases where LOWER()/UPPER() is applied to
             filenames.
    ! Fixed HBIDE_PATHFILE() to never uppercase drive letter.
      It's not strictly required since all so far known systems
      supporting drive letter are case insensitive, but it's
      nevertheless not the job of hbide to reformat pathnames.

  * contrib/hbide/ideactions.prg
  * contrib/hbide/idesaveload.prg
  * contrib/hbide/ideharbourhelp.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idesources.prg
    ! Fixed some code to use HB_FILEMATCH() instead of unconditional
      uppercasing/lowercasing. Please review and finish this modification, 
      there might be more hidden places and might have overlooked anything 
      in this patch.
2010-11-30 07:46:52 +00:00
Przemyslaw Czerpak
85d282c49c 2010-11-29 15:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/codepage/cpsk852.c
  * harbour/src/codepage/cpskiso.c
    ! fixed typo in CP declaration:
      HB_CDP_ACSORT_INTERLEAVED -> HB_CDP_ACSORT_NONE
2010-11-29 14:47:50 +00:00
Przemyslaw Czerpak
f65ef41176 2010-11-29 15:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/cdpapi.c
    ! fixed character sort weight calculation for digraphs
2010-11-29 14:42:51 +00:00
Viktor Szakats
ce4b9a2fc2 2010-11-28 10:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ config/hbc.cfg
    + Added .c source formatter config file for uncrustify source code formatter, 
      tailored to mimic Harbour C formatting style.
        http://uncrustify.sourceforge.net/
      This tool looks very promising to save manual formatting time.
      (in our case it's useful for new code, existing code is mostly 
      quite well formatted in most parts)
    ; WARNING: The config is currently at experimental stage (IOW it's
               not perfect), so don't use it to format any existing 
               Harbour source, but you may try it with your local source
               which you want to submit or see how would it look in 
               Harbour-style.

  * contrib/hbtip/url.prg
    ! Fixed to store passed url in :cAddress VAR.
      Like with most Harbour OOP code, this simple change may
      introduce hard-to-detect imcompatibility,
      so check your code.

  - contrib/rddbm/rddbmcdx.hbp
  + contrib/rddbm/rddbm.hbp
  - contrib/rddbm/rddbmcdx.hbc
  + contrib/rddbm/rddbm.hbc
    ! Renamed too.

  * src/codepage/cpsk852.c
  * src/codepage/cpskiso.c
  * src/codepage/cpskwin.c
    * Trying to add digraphs. (doesn't work here, but can't find out why)
    ; TODO: Update Kamenicky. (can't even do it with hb_translate(),
            as it's messed up the first time I edit it.
    ; TODO: Apply final fixes to CS CPs.

  * contrib/sddoci/sddoci.hbp
    + Added support for implib creation for win x64 targets.

  * package/winuni/RELNOTES
    * OCILIB version update.

  * contrib/rddbm/bmdbfcdx.c
  * contrib/hbhttpd/core.prg
  * contrib/hbhttpd/widgets.prg
    * Formatting.
2010-11-28 09:44:40 +00:00
Viktor Szakats
4a22ee33f7 2010-11-26 13:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/common/hbver.c
    + Added hb_iswin2k3().

  * src/rtl/hbsocket.c
    + Comment.
    ; TOFIX: Use SO_EXCLUSIVEADDRUSE on Windows.
             See: http://paste.lisp.org/display/59751

  - examples/udpds
  + contrib/hbmisc/tests/udpdstst.prg
  + contrib/hbmisc/udpds.prg
  * contrib/hbmisc/hbmisc.hbp
    + Moved UDPDS functions to hbmisc lib. Added hb_ prefix to names,
      plus formatted with hbformat.

  * contrib/hbhttpd/tests/webapp.prg
    * Formatting.

  ; Patch from Tamas:

  * config/bsd/gcc.mk
  * config/bsd/clang.mk
    * switch bsd to -fPIC, otherwise not even core builds (on 8.1/amd64)
    * while there, bring bsd/gcc.mk in line with linux/gcc.mk (now they
      are identical)
    * ditto for bsd/clang.mk

  * contrib/hbqt/hbqt_common.hbc
    * for hbqt, switch static supc++ to dynamic stdc++, otherwise dyn hbqt
      doesn't build. this is because on at least fbsd supc++ is apparently
      not pic; but switching from static supc++ to dynamic stdc++ easily
      fixes it.
2010-11-26 12:46:14 +00:00
Przemyslaw Czerpak
7c8c239f5c 2010-11-26 12:55 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
  * harbour/src/rdd/sdf1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/contrib/rddads/adsx.c
  * harbour/contrib/rddbmcdx/bmdbfcdx.c
  * harbour/contrib/rddsql/sqlbase.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/sddmy/sddmy.c
  * harbour/contrib/sddfb/sddfb.c
  * harbour/contrib/sddpg/sddpg.c
  * harbour/contrib/sddoci/sddoci.c
  * harbour/contrib/sddodbc/sddodbc.c
  * harbour/contrib/sddsqlt3/sddsqlt3.c
  * harbour/include/harbour.hbx
  * harbour/contrib/rddads/rddads.hbx
    * declare *_GETFUNCTABLE() functions as static - they do not have to
      be public C functions
    * simplified if possible RDD registration code and modified
      supper RDD request method so it's not stripped by compiler
      when hb_errInternal() function is declared with NORETURN
      attribute
2010-11-26 11:56:29 +00:00
Przemyslaw Czerpak
b244822532 2010-11-25 11:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbinet.c
    * restored old behavior of listen sockets used by hb_inet*() functions
      for non Windows platforms (SO_REUSEADDR)
2010-11-25 10:51:56 +00:00
Przemyslaw Czerpak
69bab2430e 2010-11-24 18:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/fstemp.c
    * enabled mkstemp() usage in *nix OpenWatcom 1.8 and newer builds

  * harbour/src/rtl/hbsocket.c
    * disabled getpeername() and shutdown() usage in OpenWatcom *nix
      builds only for OpenWatcom <= 1.9

  * harbour/src/rtl/diskspac.c
    * minor formatting

  * harbour/src/rtl/hbproces.c
    * enabled sysconf() hack only for OpenWatcom <= 1.9

  * harbour/src/rtl/hbcom.c
    * disabled OpenWatcom *nix builds only for OpenWatcom <= 1.9

  ; it's possible that above modifications will cause error if problems
    are not fixed in newer OpenWatcom releases but in such case we can
    simply change to OW number in #if condition.
2010-11-24 17:20:18 +00:00
Viktor Szakats
b2c71021a7 2010-11-24 17:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/dbfntx/dbfntx1.c
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
    ! Casts for msvc.
2010-11-24 16:11:21 +00:00
Viktor Szakats
a83c0a8ad3 2010-11-24 11:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/dbfcdx/dbfcdx1.c
    + Added DBOI_TEMPLATE, DBOI_MULTIKEY related code from
      bmcdx. It's commented.

  * contrib/rddbmcdx/bmdbfcdx.c
    * Resynced with core.
      This also means that DBOI_TEMPLATE, DBOI_MULTIKEY
      are now commented here, too.
    - Deleted HB_BMCDXTURBO build-time "turbo" option.
    * Formatting/Indenting in patched areas.
    ; Now the patched areas can be clearly seen.
2010-11-24 10:24:00 +00:00
Viktor Szakats
fb23ec1163 2010-11-24 11:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddbmcdx/bmdbfcdx.c
    * Synced with core.
    ; Also some formerly disputed features are synced.
    ; TODO: To remove the "turbo" feature from BMCDX, because
            it blocks the way from inheritance and its also
            an unsafe optimization, which can potentially
            corrupt databases, if not used with care
            (and I bet not many users know the exact definition
            of 'care')
    ; QUESTION: What is DBOI_TEMPLATE, DBOI_MULTIKEY?
                They are suppored in BMCDX, but not in core.

  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfcdx/dbfcdx1.c
    * Added some casts.

  * contrib/hbhttpd/tests/webapp.prg
    - Deleted unused headers.
    * Using FIELD-> alias, instead of FIELD command.
2010-11-24 10:10:27 +00:00
Przemyslaw Czerpak
db5d53e088 2010-11-23 12:01 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! fixed wrongly used SUPER_DELETED() instead of SELF_DELETED()

  * harbour/src/rdd/ordwldsk.c
    ! cleaned typo in error code used by OrdWildSeek() when wrong
      parameters are passed
2010-11-23 11:01:19 +00:00
Przemyslaw Czerpak
d3b7a3a61b 2010-11-21 17:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/thread.c
    * cover s_fThreadInit declaration by HB_MT_VM macro

  * harbour/src/rtl/hbsocket.c
    ! added missing const to 1-st parameter of hb_inet_ntoa()
2010-11-21 16:35:24 +00:00
Przemyslaw Czerpak
a7d39e1c3f 2010-11-21 13:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcpage.hbx
  * harbour/src/codepage/Makefile
  + harbour/src/codepage/cpskkam.c
    * restored SKKAM CP - rebuilt automatically from SKISO using
      hb_translate() function.
2010-11-21 12:53:29 +00:00
Viktor Szakats
a3514c8ca1 2010-11-21 12:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbcpage.hbx
  - src/codepage/cpskkam.c
  * src/codepage/Makefile
    - Deleted SKKAM codepage. (I couldn't edit/view it anyways)
2010-11-21 11:40:34 +00:00
Viktor Szakats
e20e7bc4d9 2010-11-21 12:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbodbc/odbc.c
    ! SQLEXECUTESCALAR() marked with HB_LEGACY_LEVEL3. Do no use this
      function. It's not a direct ODBC function wrapper and it
      internally calls SQLGetData with a fixed SQL_CHAR type, which
      is wrong.
    ! SQLGETDATA() fixed to default some parameters properly (so far
      it was checking for zero value instead of looking at Harbour
      type). Potentially incompatible change.
    ! SQLROWCOUNT() fixed to always return value by reference.
      (it's not wrapper's job to check success value and act anything
      depending on it).
    ; TOFIX: There are some more wrappers which do that: SQLDESCRIBECOL(), 
             SQLCOLATTRIBUTES(), SQLGETCONNECTATTR(), SQLGETSTMTATTR().
    % SQLROWCOUNT(), SQLGETINFO(), SQLNUMRESULTCOLS(), SQLCOLATTRIBUTE(): Minor optimization.
    ! SQLGETINFO(), SQLNUMRESULTCOLS(), SQLGETSTMTATTR(), SQLSETCONNECTATTR(),
      SQLGETCONNECTATTR(), SQLDESCRIBECOL(): Setting initial value to parameter retrieved by reference.
    ! SQLDESCRIBECOL(), SQLCOLATTRIBUTE(): fixed to not crash if wrong length is passed.

  * contrib/hbodbc/todbc.prg
    % TODBC:LoadData() got some minor optimizations.
    * TODBC:LoadData() changed to be able to retrieve fields with
      length of 256, instead of 64. This is still hack and should
      be fixed to retrieve full length.
    ! TOFIX: TODBC:LoadData() to pull data in its original type
             instead of pulling everything as string, then trying
             to convert it back to original type.

  * src/rtl/dircmd.prg
    ! Typo in comment.
2010-11-21 11:38:39 +00:00
Viktor Szakats
57d7a2ab2d 2010-11-21 00:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbcpage.hbx
  * src/codepage/Makefile
  + src/codepage/cpsk852c.c
    + Added Clipper compatible Slovak collation.

  * src/codepage/cpsk852.c
  * src/codepage/cpskkam.c
  * src/codepage/cpskiso.c
  * src/codepage/cpskwin.c
    ! Fixed Slovak collation.
    ; INCOMPATIBLE: All users using any of the above codepages will
                    have to reindex.

  ; Thanks to Julius Bartal for sorting it out.
2010-11-20 23:22:27 +00:00
Przemyslaw Czerpak
e66e43e894 2010-11-20 21:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/contrib/rddads/ads1.c
    * casting cleanup

  * harbour/contrib/hbssl/ssl.c
    * use hb_itemGetWriteCL() instead of hb_itemUnShareString()
    ! do not allow to overwrite trailing 0 in string item - we
      have such code in FREAD() which uses hb_parcsize() instead
      of hb_parclen() but only for strict compatibility with CL5.x
      FREAD() function and it should not be replicated in any other
      code - strings without trailing 0 may cause GPF in some other
      code uisng [hb_]str*() C functions.
2010-11-20 20:31:45 +00:00
Viktor Szakats
82c2c97a65 2010-11-20 17:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1.c
    * Settling back to original version of some lines.

  - contrib/hbgd/tests/tpoly.hbp
  - contrib/hbgd/tests/tpolyc.c
    - Using hbct functions with same name, so this is not needed.

  * contrib/hbgd/tests/tpoly.prg
    * Applied patch from Tamas.
    * Since final patch didn't apply I went on to rename static 
      vars to have s_ prefix.

  * contrib/hbgd/tests/gdtest.prg
  * contrib/hbgd/tests/barms.prg
  * contrib/hbgd/tests/bartest.prg
  * contrib/hbgd/tests/gdtestcl.prg
  * contrib/hbgd/tests/tostring.prg
  * contrib/hbgd/tests/animgif.prg
  * contrib/hbgd/tests/testdpi.prg
  * contrib/hbgd/tests/test.prg
  * contrib/hbgd/tests/counter.prg
  * contrib/hbgd/tests/antialia.prg
    * Using hb_ps(). Patch from Tamas.
2010-11-20 16:28:13 +00:00
Przemyslaw Czerpak
166131f652 2010-11-20 13:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/sha1.c
    * cleaned casting to not drop canst attribute
2010-11-20 12:22:46 +00:00
Przemyslaw Czerpak
c40da0b34b 2010-11-20 12:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/expropt2.c
    * casting
2010-11-20 11:58:53 +00:00
Viktor Szakats
d9fa4aa703 2010-11-20 12:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1hmac.h
  * src/rtl/sha1hmac.c
  * src/rtl/hbsha1.c
  * src/rtl/hbsha1hm.c
  * src/rtl/sha1.c
  * src/rtl/sha1.h
    * Reverted previous two fix attempts (for the most part) and replaced 
      it with patch posted by Przemek. This fixes low level SHA1 code, 
      and it's the efficient solution.
2010-11-20 11:15:44 +00:00
Viktor Szakats
d3e93632b2 2010-11-20 11:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1hmac.h
  * src/rtl/sha1hmac.c
  * src/rtl/hbsha1.c
  * src/rtl/hbsha1hm.c
    ! Futher fixes to 'const controversy' (which in my terms meant
      'wrong usage of const'). Didn't make extensive tests (pls do)
      and this change makes SHA1 functions very inefficient for large
      input buffers. Either we should remove this, or find a proper
      implementation which doesn't tamper with the input buffer
      internally.
      Pls note that after these changes SHA1 functions will RTE if 
      any input parameter is not string.

  + contrib/hbgd/tests/tpoly.hbp
  + contrib/hbgd/tests/tpoly.prg
  + contrib/hbgd/tests/tpolyc.c
    + Added GD sample submitted to the list by Tamas.
      (I converted tabs to spaces, rename a file, cleaned the hbp file,
      and changed to std SVN header format)
2010-11-20 10:30:25 +00:00
Viktor Szakats
3530a2a0e7 2010-11-19 14:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/sha1.c
  * src/rtl/sha1.h
    ! Fixed some const controversy and writing to read-only memory area.
    ; Please review me.
2010-11-19 13:50:19 +00:00
Przemyslaw Czerpak
8ae2d0e27f 2010-11-19 12:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/contrib/hbct/token2.c
  * harbour/contrib/hbct/charsort.c
  * harbour/contrib/hbct/charop.c
  * harbour/contrib/hbct/pos1.c
  * harbour/contrib/hbct/token1.c
  * harbour/contrib/hbct/pack.c
  * harbour/contrib/hbct/range.c
  * harbour/contrib/sddmy/sddmy.c
  * harbour/contrib/xhb/hbcrypt.c
  * harbour/contrib/xhb/xhbsave.c
  * harbour/contrib/xhb/txtline.c
  * harbour/contrib/xhb/cstructc.c
  * harbour/contrib/hbmzip/hbmzip.c
  * harbour/contrib/sddsqlt3/sddsqlt3.c
    * cleaned const pointer casting
2010-11-19 11:39:20 +00:00
Przemyslaw Czerpak
3134021021 2010-11-19 11:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
    * marked may last TODO note as DONE - thanks to Viktor and Mindaugas

  * harbour/include/hbmacro.h
    ! added missing const in hb_macroGenPCodeN() declaration

  * harbour/include/hbapi.h
    * added const to HB_CODEBLOCK.pCode

  * harbour/include/hbcompdf.h
    ! added missing const to HB_MACRO.string

  * harbour/src/pp/ppcore.c
  * harbour/src/common/hbstr.c
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/hbfix.c
  * harbour/src/compiler/complex.c
  * harbour/src/compiler/hbdead.c
  * harbour/src/compiler/genc.c
  * harbour/src/compiler/hbident.c
  * harbour/src/compiler/gencc.c
  * harbour/src/compiler/hblbl.c
  * harbour/src/compiler/harbour.yyc
  * harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyh
  * harbour/src/vm/macro.c
  * harbour/src/vm/codebloc.c
  * harbour/src/vm/itemapi.c
  * harbour/src/vm/hvm.c
  * harbour/src/rtl/hbjson.c
  * harbour/src/rtl/sha1.c
  * harbour/src/rtl/sha2hmac.c
  * harbour/src/rtl/hbsocket.c
  * harbour/src/rtl/hbbffnc.c
  * harbour/src/rtl/itemseri.c
  * harbour/src/rtl/filebuf.c
  * harbour/src/rtl/hbbfish.c
  * harbour/src/rtl/gttrm/gttrm.c
  * harbour/src/rdd/workarea.c
  * harbour/src/macro/macrolex.c
  * harbour/src/rdd/usrrdd/usrrdd.c
    * cleaned const pointer casting

  * harbour/src/rdd/usrrdd/usrrdd.c
    ! fixed very serious bug located during const pointer cleanup
      which should cause GPF on user code creating indexes

  * harbour/src/rtl/sha2.c
    * minor formatting

   ; TOFIX: Seems that there is sth wrong with src/rtl/sha1.c.
            Function SHA1_Transform() wrongly declares 2-nd parameter
            buffer[64] as const when in fact it changes it what can be
            seen if
               BYTE64QUAD16    *block;
            is changed to:
               const BYTE64QUAD16 *block;
            This casting which removes const hides potentially very serious
            bug - modifying readonly memory area. SHA1_Transform() changes
            the buffer so the 2-nd parameter must be declared without const.
            After such modification C compiler should warn when const buffers
            are passed to this function and such places should be fixed.
            In fact it seems to be only line 136:
               SHA1_Transform(context->state, &data[i]);
            Viktor can you look at it and fix the code?
2010-11-19 10:11:29 +00:00
Mindaugas Kavaliauskas
7ff7dd1703 2010-11-18 14:42 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/include/hbjson.h
    + added missing include file

  * harbour/include/hbjson.c
    * deleted comment line. It is no valid for current code

  * harbour/src/codepage/Makefile
  + harbour/src/codepage/cplt775.c
    + added Lithuanian CP-775 (DOS) codepage support

  * harbour/contrib/hbzebra/code39.c
    * removed unused commented code
2010-11-18 12:42:54 +00:00
Przemyslaw Czerpak
4aed30bd2b 2010-11-18 12:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/bitnum.c
    ! fixed && operator wrongly used instead of & in function NumMirr()

  * harbour/contrib/rddads/ads1.c
    * removed variable declaration which was hiding other one
      with the same name

  * harbour/src/rtl/hbdyn.c
  * harbour/src/rtl/gtsln/mousesln.c
  * harbour/src/rtl/gtsln/kbsln.c
  * harbour/tests/bldtest/bldtest.c
    ! aded mising ( void ) to declarations of functions
       without parameters ()
2010-11-18 11:22:11 +00:00
Viktor Szakats
0d2defaf8b 2010-11-17 21:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbver.c
    * Commented not-yet-implemented function hb_verHostCPU()

  * src/rtl/sha2.c
    ! Two local functions made static.
2010-11-17 20:59:53 +00:00
Przemyslaw Czerpak
bc30cabde4 2010-11-17 21:11 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
    ! removed repeated declaration of hb_pp_eof()

  * harbour/include/hbapicdp.h
  * harbour/include/hbapilng.h
  * harbour/include/hbgtcore.h
    * added extern declaration to HB_*_REQUEST() macros to pacify
      undeclared global functions warnings

  * harbour/include/hbstack.h
    ! added missing hb_stackDec() declaration

  * harbour/include/hbdefs.h
    ! added missing const in some endian macros
    * removed some unnecessary casting which may hide bugs
      in the code

  * harbour/include/hbapi.h
    ! removed repeated declaration of hb_strVal()

  * harbour/include/hbznet.h
    ! removed repeated declaration of hb_znetError()

  * harbour/include/hbcompdf.h
    * minor comment

  * harbour/src/vm/hvm.c
    ! added missing static to hb_vmTSVarClean() declaration
    * added extern hb_vmForceLink() declaration to pacify
      undeclared global functions warnings

  * harbour/src/vm/thread.c
    * make hb_threadInit() and hb_threadExit() internal HVM
      functions available only in MT mode

  * harbour/src/rtl/dates.c
    ! added missing static to hb_dateUnformatRaw() declaration

  * harbour/src/macro/macrolex.c
    * added extern hb_macro_yylex() declaration to pacify
      undeclared global functions warnings

  * harbour/src/rdd/workarea.c
    * added extern _hb_rddWorkAreaForceLink() declaration to pacify
      undeclared global functions warnings

  * harbour/src/compiler/complex.c
    * added extern hb_comp_yylex() declaration to pacify
      undeclared global functions warnings

  * harbour/contrib/hbnetio/netiocli.c
    ! added missing static to s_fileFlush() declaration

  * harbour/contrib/hbct/tempfile.prg
    ! respect in TmepFile() function default file attributes set by
      SetFCreate()

  * harbour/contrib/hbct/ctstrfil.h
    ! added missing declarations for ct_getfcreate() and ct_setfcreate()

  * harbour/contrib/hbwin/legacy.prg
    * removed dummy RETURN statement

  * harbour/contrib/xhb/fparse.c
    ! added missing static to hb_ParseLine() declaration

  * harbour/contrib/xhb/freadlin.c
    ! added missing static to hb_fsReadLine() declaration

  * harbour/contrib/xhb/txtline.c
    ! added missing static to hb_readLine() and hb_tabexpand() declarations
    ! fixed uninitialized variable warning exploited by above modification
      (static function was automatically inlined increasing optimizations)

  * harbour/contrib/xhb/hbserv.c
    ! removed repeated declaration of hb_isService() and hb_serviceExit()

  * harbour/contrib/xhb/cstructc.c
    * disabled public C functions hb_retclenAdoptRaw() and hb_retclenStatic()

  * harbour/contrib/xhb/xhbat.c
    * declare C function hb_AtSkipStrings() as static
      Warning: this functions is part of public xHarbour C API.

   ; TODO: The following functions are declared as public but without
           any prototypes in header files so they should be made static
           or we should add them to some header files:
               hbver.c:143:  hb_verHostCPU()
               hbjson.c:640: hb_jsonEncode()
               hbjson.c:665: hb_jsonDecode()
               sha2.c:228:   sha256_transf()
               sha2.c:445:   sha512_transf()
           I would like to ask authors to look at them and chose
           best solution.
2010-11-17 20:12:12 +00:00
Przemyslaw Czerpak
4e5a819c80 2010-11-15 16:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtclip.c
    ! fixed bug in calculation of maximum unicode clipboard buffer size

  * harbour/src/compiler/complex.c
    ! recognize BREAK( [<exp>] ) as BREAK [<exp>] statement
      not function call - it enables some addiitonal compiler
      logic like warning for unreachable code, i.e.:
         proc main()
            break()
            ? "Hello World!!!"
         return

  * harbour/contrib/xhb/xhb.hbp
  * harbour/contrib/xhb/xhb.hbx
  + harbour/contrib/xhb/xhbmvinf.c
    + added __MVSYMBOLINFO() xHarbour compatible function

  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! fixed INDEX ON ... command with USECURRENT clause to
      ignore active filter on internal GOTOP operation.
      Many thanks to Oleg for bug report and self contain
      code example illustrating the problem.
2010-11-15 15:14:01 +00:00
Przemyslaw Czerpak
51652b4892 2010-11-09 16:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/classes.c
    ! fixed typo: uiClass -> s_uiClasses

  * harbour/src/common/hbver.c
    ! fixed typo: missing ;
2010-11-09 15:39:33 +00:00
Viktor Szakats
b9cc575e8c 2010-11-09 14:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbver.c
    + Added support for hb_iswin*() and HB_OSISWIN*() functions
      on MS-DOS platforms.
      Please test them.
    ; TODO: Detection of 2K and Vista isn't currently implemented,
            but can be added if someone knows how to detect them.
2010-11-09 14:00:44 +00:00
Przemyslaw Czerpak
49e0b8e4e0 2010-11-09 10:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/sdf1.c
    ! fixed bug in SDF import procedure - many thanks
      to Enrico Maria Giordano for reporting the problem
      and to Vicente Guerra for locating the reason
      BTW fix committed to xHarbour may work but it's not correct,
      I suggest to update it.

  * harbour/src/rtl/hbdyn.c
  * harbour/src/rtl/hbsocket.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/contrib/hbct/bitnum.c
  * harbour/contrib/hbwin/olecore.c
    * pacified some of MSVC6 warnings reported by Andi

  * harbour/utils/Makefile
    * added internal/developers build switch
2010-11-09 09:47:51 +00:00
Viktor Szakats
ec301342b7 2010-11-09 10:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbdyn.c
    ! Added casts to silence msvc6 warnings.
2010-11-09 09:01:42 +00:00
Przemyslaw Czerpak
ceffdd839d 2010-11-09 01:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/Makefile
    % small optimization in concurrent build (-j GNU make switch) dependency
2010-11-09 00:17:45 +00:00
Przemyslaw Czerpak
d5c7c499b5 2010-11-08 23:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/include/hbexprb.c
  * harbour/src/common/expropt1.c
    + added protection against pushing series of parameters on HVM
      stack by hb_arrayToParams() function used in wrong contects,
      i.e.:
         var := hb_arrayToParams( { 1, 2, 3 } )
      Possible TODO: add compile time warning in such case.

  * harbour/contrib/hbexpat/3rd/expat/_hbconf.h
  * harbour/contrib/hbexpat/3rd/expat/expat.hbp
  * harbour/contrib/hbexpat/3rd/expat/xmltok.c
  * harbour/contrib/hbexpat/3rd/expat/xmlrole.c
  * harbour/contrib/hbexpat/3rd/expat/xmlparse.c
    * updated to define endian setting using information from hbdefs.h

  * harbour/contrib/hbexpat/3rd/expat/xmltok.c
   ! added missing members in structure initializations
2010-11-08 22:37:26 +00:00
Viktor Szakats
7022118152 2010-11-07 18:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- external/zlib
  - external/png
  - external/jpeg
  - external/hbpmcom
  - external/pcre
  - external/Makefile
  + src/3rd
  + src/3rd/zlib
  * src/3rd/zlib/Makefile
  + src/3rd/png
  * src/3rd/png/Makefile
  + src/3rd/hbpmcom
  * src/3rd/hbpmcom/Makefile
  + src/3rd/jpeg
  * src/3rd/jpeg/Makefile
  + src/3rd/pcre
  * src/3rd/pcre/Makefile
  + src/3rd/Makefile
    * Moved /external to /src/3rd
    ; This way all core components reside in core.
    ; NOTE: png, jpeg are not referenced by core components,
            so they may be moved to contrib area in the future.

  * config/detect.mk
  * Makefile
  * src/Makefile
  * src/rtl/hbcom.c
  * contrib/hbmzip/hbmzip.hbp
  * contrib/hbmzip/3rd/minizip/minizip.hbp
  * contrib/hbhpdf/hbhpdf.hbp
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
  * contrib/hbhpdf/3rd/libhpdf/hpdf.h
  * contrib/hbwin/hbwin.hbp
    * Updated to reflect above change.
    ; NOTE: Now -j builds can be optimized to better overlap with 
            3rd component builds. Please do it in src/Makefile.

  * contrib/hbplist
    * Updated.
2010-11-07 17:17:05 +00:00