Commit Graph

15433 Commits

Author SHA1 Message Date
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
de66a718aa 2010-11-20 19:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbgd/tests/tpoly.prg
    * Applied patch from Tamas. Nicer flakes!
2010-11-20 18:09:01 +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
Mindaugas Kavaliauskas
880f9e77ef 2010-11-19 15:20 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddads/ads1.c
    ! fixed varchar support for windows introduced in one of last commits
    ; Varchar is not working, if ADS is set to use "OEM charset support",
      because AdsGetFieldRaw() returns raw field data and maximum field 
      length value is always returned.
      ADS_USE_OEM_TRANSLATION is actually ugly hack to solve some DOS/WIN 
      codepage issues. I'm not sure what was the reason to introduce it.
      Sharing the same database between DOS and Windows app or what?...
      It would be nice if someone who need this setting will test and 
      support logic in case of variable string, binary string, unicode 
      string.
2010-11-19 13:23:06 +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
a3a7ff67c9 2010-11-18 20:15 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/include/harbour.hbx
    ! one more try to make correct .hbx file
2010-11-18 18:16:09 +00:00
Mindaugas Kavaliauskas
aaf3d87c72 2010-11-18 20:05 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/include/hbcpage.hbx
    ! HB_CODEPAGE_LT755 -> HB_CODEPAGE_LT775

  * harbour/include/harbour.hbx
    + added hb_lpp*()
2010-11-18 18:05:42 +00:00
Mindaugas Kavaliauskas
b4afa71347 2010-11-18 15:00 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/include/Makefile
    * hbjson.h included

  * harbour/include/hbcpage.hbx
    * HB_CODEPAGE_LT775 included

  * harbour/ChangeLog
    ! fixed UTC offset for my ChangeLog entries
2010-11-18 13:00:46 +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
Viktor Szakats
4fe593fd00 2010-11-18 13:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
    ! Fixed to not add 'Bcc:' entry to e-mail headers, since this will
      reveal all the supposedly secret addresses to all addressees.
      It's interesting how such huge bug can persist for so long
      time without anyone noticing.
      Please test and correct if needed.

  * contrib/sddpg/sddpg.c
    + Recognizing OIDOID column type. Patch from Aleksander Czajczynski.

  * contrib/hbpgsql/postgres.c
    % Minor opt.
2010-11-18 12:32:18 +00:00
Viktor Szakats
ad6023bf2b 2010-11-18 12:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
  * contrib/hbtip/mail.prg
    ! Fixed various ages-old bugs in recipient list handling.
    ; TOFIX: BEWARE to all users. BCC is NOT actually blind in this
             implementation. If someone has an idea how to fix this
             bug, pls shout.
2010-11-18 11:52:46 +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
bd40c4068a 2010-11-18 10:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/sddpg/sddpg.c
  * contrib/hbpgsql/postgres.c
    ! Reverted previous fix because it didn't work on non-*nix platform.
    - Deleted TOFIX comment, as apparently there is no better official way
      to get these macros.

  * contrib/hbpgsql/postgres.c
    + Added PQCONNECTDB() wrapper. Based on Tamas's patch, but implemented 
      little bit differently.
    + Extended PQCONNECT() (now deprecated compatibility function) to be more 
      flexible in accepting parameters and not create wrong low level call if 
      some of them are missing. Patch from Tamas, with my cleanups.
    * Marked PQCONNECT() wrapper with HB_LEGACY_LEVEL3. It's now deprecated.
      INCOMPATIBLE: Switch to PQCONNECTDB() ASAP.

  * contrib/hbpgsql/tests/async.prg
  * contrib/hbpgsql/tests/test.prg
  * contrib/hbpgsql/tests/stress.prg
  * contrib/hbpgsql/tpostgre.prg
    + Changed to use PQCONNECTDB() direct wrapper instead of PQCONNECT.
2010-11-18 09:44:10 +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
Viktor Szakats
1fffde7667 2010-11-17 18:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
    + Switched to built-in versioning macro instead of rolling our own.
      (not tested)
2010-11-17 17:07:50 +00:00
Przemyslaw Czerpak
44bf92b7e6 2010-11-17 12:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbzebra/pdf417.c
  * harbour/contrib/hbzebra/code128.c
  * harbour/contrib/hbzebra/eanupc.c
  * harbour/contrib/hbzebra/code11.c
  * harbour/contrib/hbzebra/itf.c
  * harbour/contrib/hbzebra/datamtrx.c
  * harbour/contrib/hbzebra/code39.c
  * harbour/contrib/hbzebra/code93.c
  * harbour/contrib/hbzebra/codabar.c
    % added const to all static table declarations and updated
      code to use const pointers to them. Please remember that
      memory regions declared as const can be better optimized
      by compiler during compilation and on some machines also
      on runtime because can be located in readonly area which
      is cached in more efficient way.
    ! fixed some non const declarations for pure "..." strings
2010-11-17 11:19:59 +00:00
Viktor Szakats
ebaee42c22 2010-11-17 12:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/terminal/trm_srv.prg
  * examples/terminal/readme.txt
    ! Fixed to use localhost instead of IPV4 specific 127.0.0.1

  ; Patches from Tamas: (Thanks a lot!)

  + debian/postinst
  + debian/postrm
    + make deb package run ldconfig when needed

  * contrib/hbfbird/tests/simple.prg
  * contrib/hbfbird/tests/test.prg
  * contrib/hbfbird/tests/stress.prg
    * Formatting, fixes, cleanup.
    ; TOFIX: OOP layer in hbfbird.

  * contrib/sddpg/sddpg.c
  * contrib/hbpgsql/postgres.c
    ! Fixed postgres header situation.

  + contrib/hbgd/tests/test.prg
  * contrib/hbgd/gdwrp.c
    + Resolved TODO.
    + Added new test.
2010-11-17 11:04:43 +00:00
Przemyslaw Czerpak
d1183b4073 2010-11-16 10:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/xthrow.prg
    ! removed unreachable RETURN statement reported by extended BREAK()
      detection in compiler code

  * harbour/contrib/xhb/xhbmvinf.c
  * harbour/contrib/xhb/xhbscr.c
    * updated header comments

  * harbour/contrib/xhb/xhb.hbx
  * harbour/contrib/xhb/xhberr.prg
    + added xhb_ErrorNew() function which accepts xHarbour ErrorNew()
      parameters
    ! fixed xHarbour error handlers to work with Harbour error object
      which does not contain some local xHarbour extensions

  * harbour/contrib/xhb/stream.prg
  * harbour/contrib/xhb/xcstr.prg
    ! use xhb_ErrorNew() instead of ErrorNew()
2010-11-16 09:30:13 +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
Viktor Szakats
c1ac44abe5 2010-11-14 14:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/harupdf.ch
  * contrib/hbhpdf/harupdf.c
    + Added HPDF_PDFA_SETPDFACONFORMANCE(). Patch from Tamas.
    + Added HPDF_PDFA_GENERATEID().
2010-11-14 13:19:21 +00:00
Viktor Szakats
1d5c47d3d2 2010-11-13 19:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/tests/testhpdf.prg
    * Fixed wrong drawing of 2D barcodes (Mindaugas).
    * Using HPDF_Page_GetHeight() instead of hardcoded page height (Tamas).
    ! Delete .pdf before creating it.
    * Synced caller code with cairo test.

  * contrib/hbzebra/tests/testwin.prg
    ! Minor formatting.
2010-11-13 18:57:30 +00:00
Mindaugas Kavaliauskas
021ceb9306 2010-11-13 04:48 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/datamtrx.c
    + added support for full 0..255 range character encoding. We are still
      using ASCII encode mode only.
2010-11-13 02:50:05 +00:00
Mindaugas Kavaliauskas
9b78cd4a89 2010-11-13 04:28 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/datamtrx.c
    ! fixed typo
2010-11-13 02:30:14 +00:00
Mindaugas Kavaliauskas
50590c9d8c 2010-11-13 00:58 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/datamtrx.c
  * harbour/contrib/hbzebra/pdf417.c
  * harbour/contrib/hbzebra/code128.c
    * attempt to pacify MSVC warnings
2010-11-12 22:59:33 +00:00
Viktor Szakats
1005890842 2010-11-12 23:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/pdf417.c
  * contrib/hbzebra/datamtrx.c
    ! Silenced msvc warnings.
    ; TOFIX: These remaining ones:
         ..\hbzebra\datamtrx.c(452) : warning C4309: '=' : truncation of constant value
         ..\hbzebra\pdf417.c(1230) : warning C4701: potentially uninitialized local variable 'coef' used
         ..\hbzebra\code128.c(265) : warning C4701: potentially uninitialized local variable 'iCodeSet' used

  * contrib/hbzebra/tests/testcair.prg
    * Synced with other tests to use SWITCH/CASE.

  * contrib/hbzebra/tests/testwin.prg
  * contrib/hbzebra/tests/testhpdf.prg
    + Added DATAMATRIX tests. Nice!
2010-11-12 22:41:58 +00:00
Mindaugas Kavaliauskas
1630a4e374 2010-11-13 00:05 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/contrib/hbzebra/datamtrx.c
  * harbour/contrib/hbzebra/hbzebra.hbp
  * harbour/contrib/hbzebra/hbzebra.ch
    + added DataMatrix 2D barcode support
    ; implemented ASCII encoding only. This is enough for most real 
      life applications, but it is only a minor part of available 
      codeword encodings. I just unable to implement without docs. 
      Reverse engineering of black and white dots take a lot of time
      for 2D barcodes, so I've dropped this idea. If someone has 
      full ISO/IEC 16022:2006 specification, I can implement the rest.

  * harbour/contrib/hbzebra/tests/testcair.prg
    + added DataMatrix test
    ; Please, add it to other backend tests

  * harbour/contrib/hbzebra/core.c
    * changed bitbuffer logic a little

  * harbour/contrib/hbzebra/pdf417.c
    * comment added
    * small cleanup
2010-11-12 22:05:45 +00:00
Viktor Szakats
087f460fcd 2010-11-12 12:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/tests/testhpdf.prg
    ! Cleaned up output order. Patch thanks to Tamas.
2010-11-12 13:41:33 +00:00
Mindaugas Kavaliauskas
e2c01b7622 2010-11-12 04:35 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/code39.c
  * harbour/contrib/hbzebra/eanupc.c
    ! fixed errors
2010-11-12 02:35:12 +00:00
Viktor Szakats
e3934dfeca 2010-11-12 01:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni.bat
    ! Fixed to install all .hbc files inside the contrib
      dir structure. This is needed because now they exist
      also under '3rd' dirs, referenced from contrib .hbc files.
      (lightly tested, will find out with next nightly)

  * contrib/hbzebra/hbzebra.hbc
    ! Deleted no more needed reference to hbcairo.hbc
2010-11-12 00:59:49 +00:00
Viktor Szakats
b8dc506033 2010-11-11 23:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/tests/testwin.prg
    * Trying to figure what's best way to round off coordinates
      to the stupid integers the winapi requires. Patch it further 
      if you know better.

  * bin/hb3rdpat.hbs
    + Clarification to help text, by Tamas.
2010-11-11 22:45:28 +00:00
Viktor Szakats
a8a6533a18 2010-11-11 22:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/coredraw.c
    + Added protection against NULL pCallback pointer.

  * contrib/hbzebra/tests/testwin.prg
  * contrib/hbzebra/tests/testcair.prg
  * contrib/hbzebra/tests/testhpdf.prg
    * Minor formatting.

  - contrib/hbzebra/d_cairo.c
  * contrib/hbzebra/hbzebra.hbp
    - Deleted cairo specific backend.
2010-11-11 21:45:36 +00:00
Mindaugas Kavaliauskas
bfa4a7496d 2010-11-11 23:05 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/drawcore.c
    ! added missing include
  * harbour/ChangeLog
    ! fixed error in previous commit log
2010-11-11 21:05:03 +00:00
Mindaugas Kavaliauskas
2118caf5be 2010-11-11 21:30 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/hbzebra.ch
  * harbour/contrib/hbzebra/hbzebra.h
  * harbour/contrib/hbzebra/hbzebra.hbp
  + harbour/contrib/hbzebra/pdf417.c
    + added two-dimensional PDF417 barcode support
      HB_ZEBRA_PDF417( cData, [ nFlags ] [, nDataColumns ] ) --> hZebra

    ; This requires testing on real scanners. F.e., some internet online 
      PDF417 decoders does not allow encoding mode switching from numeric 
      to text. Though I see no reason to be this prohibited by 
      specification.

  * harbour/contrib/hbzebra/drawcore.c
    + implemented 2D barcode drawing
    * changed argument error logic to generate RTE from Harbour level

  * harbour/contrib/hbzebra/testcair.prg
  * harbour/contrib/hbzebra/testhpdf.prg
  * harbour/contrib/hbzebra/testwin.prg
    * included new barcode into test samples
2010-11-11 19:32:33 +00:00
Viktor Szakats
1e05221ec9 2010-11-10 22:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/testcom1.prg
  * contrib/hbwin/tests/testcom2.prg
  * contrib/hbwin/win_tcom.prg
  * contrib/hbwin/win_com.c
    ! Fixed samples to not query error value (since it RTEs if
      the port is not open)
    + WIN_COMISVALID( <nPort> ) -> <l> added to check if port number is a valid one.
    + WIN_COMERRORCLEAR( <nPort> ) added to clear last error.
    ! WIN_COMERROR() changed to not clear the error on read.
    + WIN_COM():ERROR() method added to retrieve last error in numeric form.
    * Samples changed to use :ERRORTEXT() to show errors.
    ; INCOMPATIBLE changes.

    ; DISCLAIMER: I'm not a user of this, so to raise your chances for
                  a fix, pls submit patches. I also couldn't spend huge
                  time to rethink the whole concept of these interfaces.
                  IOW: Contribute.
2010-11-10 21:50:37 +00:00
Viktor Szakats
24545c85e7 2010-11-10 21:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/harbour.spec
  * package/harbour-win.spec.in
  * package/harbour-wce.spec.in
    + Converted to UTF8. (from cp1252 and KOI8)
    ; I didn't make any tests and nobody commented about this, hopefully 
      it will work. Pls test it.
2010-11-10 20:44:32 +00:00
Viktor Szakats
efc3299ae9 2010-11-10 18:50 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/hbzebra.hbp
  - contrib/hbzebra/d_gen.c
  + contrib/hbzebra/coredraw.c
    * Renamed.

  * contrib/hbzebra/tests/testhpdf.prg
    ! Fixed to use HPDF_PAGE_FILL().

  * contrib/hbzebra/hbzebra.hbp
  - contrib/hbzebra/d_win.c
  - contrib/hbzebra/d_hpdf.c
    - Deleted specialized drawing backend from HBZEBRA.
    ; TODO: Delete also cairo backend.
2010-11-10 17:50:35 +00:00
Viktor Szakats
8624f2d15a 2010-11-10 18:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/code39.c
    ! Pacified remaining msvc warnings/error. Please review me & test.
2010-11-10 17:22:12 +00:00
Viktor Szakats
4224db13f8 2010-11-10 18:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Adjusted the way Harbour dynlib is calculated for cygwin, after
      making it a platform.
    + Added feedback when platform is redetected along compiler autodetection
      process.
2010-11-10 17:17:36 +00:00
Mindaugas Kavaliauskas
1aa52c0105 2010-11-10 19:12 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbzebra/codabar.c
  * harbour/contrib/hbzebra/code11.c
  * harbour/contrib/hbzebra/code128.c
  * harbour/contrib/hbzebra/code39.c
  * harbour/contrib/hbzebra/code93.c
  * harbour/contrib/hbzebra/eanupc.c
  * harbour/contrib/hbzebra/itf.c
  * harbour/contrib/hbzebra/msi.c
    * pacified warning
2010-11-10 17:13:17 +00:00
Viktor Szakats
51ddd618ad 2010-11-10 15:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/d_gen.c
    + Implemented C level callback interface.
    + .prg level codeblock callback interface reimplemented on above
      generic layer.
    ; So now there is a pure C level callback mechanism and the
      .prg level HB_ZEBRA_DRAW() builds upon this.

  * contrib/hbzebra/d_hpdf.c
    ! Silenced msvc warning.
2010-11-10 14:41:24 +00:00
Viktor Szakats
29674e8b3c 2010-11-10 14:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/hbzebra.ch
  * contrib/hbzebra/hbzebra.hbp
  + contrib/hbzebra/d_gen.c
    + Added generic HB_ZEBRA_DRAW() drawing function. It
      needs a codeblock accepting x, y, width, height parameters.

  * contrib/hbzebra/tests/testcair.prg
  * contrib/hbzebra/tests/testhpdf.prg
  * contrib/hbzebra/tests/testwin.prg
    + Reimplemented using generic HB_ZEBRA_DRAW() function and
      simple callbacks.

  * contrib/hbzebra/hbzebra.ch
    + Added 'used by C code' note.
2010-11-10 14:03:05 +00:00
Viktor Szakats
f87f0646de 2010-11-10 13:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/hbzebra.hbp
  - contrib/hbzebra/cairo.c
  + contrib/hbzebra/d_cairo.c
  - contrib/hbzebra/tests/test1.prg
  + contrib/hbzebra/tests/testcair.prg
    * Renames.
2010-11-10 12:09:26 +00:00