Commit Graph

2720 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
15b1f94fd5 2011-01-18 12:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprb.c
    ! allow to use variable in parenthesis as lvalue when -kc switch
      is used - Clipper compatibility

  * harbour/contrib/hbfoxpro/misc.prg
    + __FOX_ARRAY( <dims,...> ) which returns array initialized
      with .F. values - it can be used to initialize arrays declared
      using FP syntax

  * harbour/contrib/hbfoxpro/hbfoxpro.ch
    + added some new PP rules for FP array declarations
    + added DISPLAY FIELDS ... command
2011-01-18 11:33:06 +00:00
Przemyslaw Czerpak
ecf0e526fa 2011-01-17 19:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
! allow to assign to variable in parenthesis in compiler when -kc switch
      is used (Clipper compatibility), i.e.:
         (var) := 1
      Please remember that Clipper does not accept such syntax in
      macrocompiler and Harbour replicates this behavior when -kc
      compile time switch is used.
2011-01-17 18:24:50 +00:00
Przemyslaw Czerpak
a59b602a04 2011-01-15 17:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/vm/cmdarg.c
    ! use 'void *' instead of HANDLE in hb_winmainArgInit() parameters
2011-01-15 16:50:25 +00:00
Przemyslaw Czerpak
82df9ab45a 2011-01-15 12:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/include/hbwmain.c
  * harbour/src/vm/cmdarg.c
    * moved declaration of hb_winmainArgInit() to header file

  * harbour/contrib/hbmxml/3rd/minixml/mxml_fil.c
  * harbour/contrib/hbmxml/3rd/minixml/mxml.h
    ! fixed to compile with WinCE builds
    ; I cannot regenerate .diff file because
         ../../../../bin/hb3rdpat.hbs -rediff
      generates RT error:
         Error BASE/1123  Argument error: HB_ATOKENS
         Called from HB_ATOKENS(0)
         Called from URL_GETFILENAME(810)
         Called from FETCHANDEXTRACT(673)
         Called from MAIN(412)
      Sorry, probably I'm missing sth what was already discussed
      but I was not able to follow all post on the list in last
      weeks so I would like to ask Viktor or Tamas for the help.
2011-01-15 11:08:03 +00:00
Viktor Szakats
f211a162b1 2011-01-15 10:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwmain.c
  * src/vm/cmdarg.c
    ! Fixed missing declaration for hb_winmainArgInit()
    ! Fixed missing HB_EXTERN_* from around hb_winmainArgInit() declaration.
    ; Patches from Andi. Thank you.
    * Added HB_EXPORT to the declaration in hbwmain.c.
2011-01-15 09:43:57 +00:00
Przemyslaw Czerpak
c0b28bd5da 2011-01-15 01:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
    * do not inherit in macrocompiler -z compile time switch when -kc is
      also used

  * harbour/src/common/expropt2.c
    * disable logical expression optimization (reduction) in macrocompiler
      when -kc compile time switch is used.

  * harbour/config/beos/gcc.mk
  * harbour/config/qnx/gcc.mk
  * harbour/config/bsd/gcc.mk
  * harbour/config/wce/mingwarm.mk
  * harbour/config/vxworks/gcc.mk
  * harbour/config/hpux/gcc.mk
  * harbour/config/darwin/gcc.mk
  * harbour/config/dos/djgpp.mk
  * harbour/config/win/mingw.mk
  * harbour/config/linux/gcc.mk
  * harbour/config/cygwin/gcc.mk
  * harbour/config/symbian/gcc.mk
  * harbour/config/os2/gcc.mk
  * harbour/config/sunos/gcc.mk
  * harbour/utils/hbmk2/hbmk2.prg
    * enable some important warnings in GCC builds using -W<name>... instead
      of -Wall and -Wno-<name>... for warning level set to low.
      It should help in backward compatibility with some older GCC versions.
2011-01-15 00:15:42 +00:00
Przemyslaw Czerpak
6697ddd6f6 2011-01-14 08:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    * use native stdint.h for MSVC 2010. Patch by Andi, thx.

  * harbour/contrib/hbwin/hbwinole.h
    * fixing __DMC__ compilation. Patch by Andi, thx.

  * harbour/contrib/hblzf/hblzf.c
    * pacified warning
2011-01-14 07:35:19 +00:00
Przemyslaw Czerpak
8f2656c604 2010-12-21 17:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
    * removed unused declaration

  * harbour/src/rtl/filesys.c
    * replaced ULONG_MAX used as 32 bits mask with 0xFFFFFFFF

  * harbour/src/vm/macro.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/hsx/hsx.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
    * pacified few MSVC warnings
2010-12-21 16:17:26 +00:00
Viktor Szakats
ea6b36066c 2010-12-09 06:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/harbour.spec
  * package/harbour-win.spec.in
  * package/harbour-wce.spec.in
  * include/hbver.h
  * config/global.mk
    + Changed version number to:
         2.1.0beta3 (from 2.1.0beta2)

  * contrib/gtwvg/gtwvg.hbc
    ! Typo.

  * contrib/gtwvg/tests/wvgactivex.prg
    * Eliminated WITH OBJECT. Now Harbour doesn't
      use this statement except in test code.
2010-12-09 05:10:11 +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
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
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
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
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
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
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
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
2fc69d4894 2010-11-05 12:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbvm.h
  * src/vm/hvm.c
    + Added hb_vmPushPointerGC().

  * contrib/hbqt/qtcore/hbqt_init.cpp
    + Added experimental (not activated) code example to pass GC collected 
      pointer back from callbacks. This is just intermediate step, as it 
      should return .prg level class, but at least some room for leaks 
      can be avoided this way, plus the pointer type is identifiable.
      Based on code posted to list by Pritpal.
2010-11-05 12:00:28 +00:00
Viktor Szakats
97bc5b9ea3 2010-11-05 00:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/cygwin/gcc.mk
  * include/hbwmain.c
  * src/vm/Makefile
  * src/vm/mainwin.c
  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * src/vm/mainstd.c
  * utils/hbmk2/hbmk2.prg
    + Finalizing cygwin/gcc entry point.
    ; Patch by Tamas.
    + Added hbmainstd for shared cygwin/gcc builds.

  * utils/hbrun/hbrun.hbp
    + Enabled header inclusion also in hbmk2 make file.
2010-11-04 23:59:06 +00:00
Viktor Szakats
086c8cba68 2010-11-04 21:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * MS-DOS LFN vs. SFN next guess: deleted hack when loading
      plugin.

  * include/hbwmain.c
  * src/vm/cmdarg.c
  * config/bin.mk
    * Cygwin main entry patch from Tamas.

  * INSTALL
    + Added note that all settings are case sensitive.
      Not that those would read it who would need to.
2010-11-04 20:34:47 +00:00
Przemyslaw Czerpak
2432e2f5d3 2010-11-04 20:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbcomp.h
  * harbour/src/pp/ppcore.c
  * harbour/src/main/harbour.c
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/ppcomp.c
  * harbour/src/compiler/hbcmplib.c
    * added support for setting hash array as container for included
      files in HB_COMPILE*() functions.

  * harbour/utils/hbrun/hbrun.prg
    + added optional support for embedding all core header files
      into final HBRUN executable file. It can be enabled by
      compilation with HBRUN_WITH_HEADERS macro.

  * harbour/contrib/hbsqlit3/hbsqlit3.c
    ! removed non standard C construction
    % push function parameters directly on HVM stack
2010-11-04 19:28:05 +00:00
Viktor Szakats
3179ac92bf 2010-11-04 05:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwmain.c
  * src/vm/cmdarg.c
    + Cygwin HB_PROGNAME()/HB_ARGV(0) patch from Tamas.

  * src/rtl/hbcom.c
    * Cygwin related comment added. Patch by Tamas.

  * hbqt/qtgui/qth/*.qth
  * hbqt/qtwebkit/qth/*.qth
  * hbqt/qtcore/qth/*.qth
  * hbqt/qtnetwork/qth/*.qth
  * hbqt/qscintilla/qth/*.qth
  * hbqt/qtuitools/qth/*.qth
  * hbqt/qtdesigner/qth/*.qth
    % Harbour license text changed to a one-liner reference to
      COPYING file. Copyright message kept as is.
      Overal .qth file size dropped to half.
    ! Deleted multiple empty lines at EOL.
2010-11-04 04:19:36 +00:00
Viktor Szakats
a7710b224d 2010-11-03 29:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/dateshb.c
    + Added HB_DATE( [<nYear>, <nMonth>, <nDay>] ) -> <dDate>
      If called without options, it returns current date, just like DATE().
    * Changed HB_DATETIME() to work like above except for timestamps.

  * contrib/hbqt/hbqt_all.hbp
    - Deleted wrong MS-DOS fix.

  * contrib/hbqt/utils/hbqtgen.prg
    % Optimized to not read each input file twice.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Added #include "hbclass.ch". After 2010-11-03 23:28 UTC+0100
      it works as expect. Thanks a lot Przemek!
      Header dir is setup correctly now by hbmk2, so hbmk2 plugins
      can safely use Harbour headers. (in hbmk2 context the headers
      should be present anyway, so this is square)
2010-11-03 23:00:35 +00:00
Przemyslaw Czerpak
f0de048177 2010-11-03 23:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/Makefile
    + added missing hblpp.ch file

  * harbour/src/pp/ppcore.c
    % removed redundant fBinary paramater from hb_pp_pragmaStreamFile()
2010-11-03 22:24:18 +00:00
Viktor Szakats
79b266ca4f 2010-11-03 19:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Using _APPMAIN() instead of MAIN() as entry function, to be
      friendly with plugins using MAIN().
    * Commented test code added for hbrun integration.
    + Added popular package handler's lib and include directory
      to bsd builds' default setup.
    * Added comments describint which such directory belongs to which package
      system (darwin, bsd)
    + Plugins will now be called with Harbour header directory properly setup,
      so it's possible to use headers in them.

  * include/hbclass.ch
    - Deleted some lines which were active when __HARBOUR__ is not defined.
      As I understand this is Harbour-only header, so __HARBOUR__ is always
      to be defined. Please speak up if you know what it was for.
      It was added here: 2006-10-04 02:30 UTC+0200

  * src/pp/hbpp.c
    + Support for -e option which lets override the name of the
      public entry function in generated PP rules .c file.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Some provisions to handle .qth files.

  * INSTALL
    * https links changed to http for win nightly pkgs.
2010-11-03 18:03:03 +00:00
Przemyslaw Czerpak
329ca84269 2010-11-02 15:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
    * minor improvement in #include "hbthread.h" condition

  * harbour/external/minizip/ioapi.h
  * harbour/external/png/Makefile
  * harbour/src/common/hbffind.c
  * harbour/src/rtl/hbsocket.c
    * updated to compile with DMC
2010-11-02 14:43:05 +00:00
Viktor Szakats
ab28161da8 2010-11-01 16:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/common/hbver.c
    + Added hb_verPlatformMacro(), which returns string as it appears
      in __PLATFORM__* macro.
      This function will have to be extended for each new platform
      Harbour is getting ported to.

  * src/pp/ppcore.c
    ! Changed to use hb_verPlatformMacro() value to form __PLATFORM__*
      macro, instead of using hb_verPlatform(), which offers no
      guarantee for the value on *nix systems and it's was hack
      on other platforms too (f.e. it got messed up when Windows
      version string was changed to show "wine" at the beginning
      of the human readable platform string).
    % Made forming of __PLATFORM__* macros simpler, using hb_snprintf().
    ! Now WINCE builds of pp will also defined __PLATFORM__WINDOWS.

  ; Please review/test.
2010-11-01 15:44:47 +00:00
Viktor Szakats
df3b848bf6 2010-10-29 10:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hb_io.h
  * include/hbthread.h
  * include/hbsetup.h
  * src/vm/thread.c
  * src/vm/dynlibhb.c
  * src/common/hbgete.c
  * src/common/hbprintf.c
  * src/rtl/gttrm/Makefile
  * src/rtl/hbsocket.c
  * src/rtl/filesys.c
  * src/rtl/hbcom.c
  * config/global.mk
  - config/win/cygwin.mk
  + config/cygwin
  + config/cygwin/libs.mk
  + config/cygwin/gcc.mk
  + config/cygwin/global.mk
    + Applied cygwin patch from Tamas Tevesz.
      The goal is to migrate win/cygwin to cygwin/gcc, IOW to make cygwin
      a distinct platform (which is primarily unixy with option to access 
      winapi) as it should be.
      Changes made by me compared to original patch:
        - Fixed to HB_HOST_PLAT stay 'win'. Cygwin is not a host platform.
        - Fixed to set HB_COMPILER to gcc and HB_PLATFORM to cygwin when cygwin
          is detected on win platform.
        - Consequently some changes in global.mk could be dropped.
        - Deleted hbcom patches not related to cygwin.
        - Removed hbmk2 patch until we solve the 'plat $ 'cygwin' problem.
2010-10-29 08:24:01 +00:00
Mindaugas Kavaliauskas
a6e74ed2b9 2010-10-23 21:15 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
- harbour/include/hbnsctp.ch
  - harbour/include/hbnsctp.h
  - harbour/src/rtl/hbnsctp.c
  - harbour/src/rtl/hbnsctph.c
  + harbour/include/hblpp.ch
  + harbour/include/hblpp.h
  + harbour/src/rtl/hblpp.c
  + harbour/src/rtl/hblpphb.c
  * harbour/src/rtl/Makefile
    * NSCTP -> LPP
2010-10-22 18:16:35 +00:00
Viktor Szakats
5fa2a6c070 2010-10-22 17:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_os.prg
    + WIN_OSNETREGOK() extended to disable some SMB2 internal caches,
      which if left on default might cause db corruption on Vista
      and above systems.

  * include/hbnsctp.ch
    + Added comment that the file is used by C code.
2010-10-22 15:49:50 +00:00
Mindaugas Kavaliauskas
1eb1c40a5c 2010-10-21 03:18 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/hbmysql/hbmysql.hbp
  * harbour/contrib/sddmy/sddmy.hbp
    * added alternative mysql library path 
  + harbour/include/hbnsctp.ch
  + harbour/include/hbnsctp.h
  * harbour/src/rtl/Makefile
  + harbour/src/rtl/hbnsctp.c
  + harbour/src/rtl/hbnsctph.c
    + added NSCTP (Not Stream Control Transfer Protocol) functions.
      Both C and PRG interfaces functions provided.
    ; Idea, protocol description, name, function description, samples
      are presented at the beginning of hbnsctph.c file. I only put 
      function syntax here to help ChangeLog be a source of 
      documentation:
        hb_nsctpCreate( hSocket ) --> hNSCTP
        hb_nsctpDestroy( hNSTP )
        hb_nsctpError( hNSCTP ) --> nError
        hb_nsctpSetLimit( hNSCTP, nLimit )
        hb_nsctpSend( hNSCTP, cBuf [, nTimeout = FOREVER ] ) --> lSuccess
        hb_nsctpRecv( hNSCTP, @cBuf [, nTimeout = FOREVER ] ) --> lSuccess
        hb_nsctpSendLen( hNSCTP ) --> nBytesSent
        hb_nsctpRecvLen( hNSCTP ) --> nBytesReceived
2010-10-21 00:19:19 +00:00
Przemyslaw Czerpak
cb02d1571e 2010-10-20 07:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/harbour.hbx
  * harbour/include/hblang.hbx
    * regenerated
      BTW 'make install' does not regenerate core .hbx files so they
          were not updated for quite long time thogh I have set
            export HB_REBUILD_EXTERN=yes

  * harbour/contrib/xhb/hbcompat.ch
    + added hb_bitTest() <-> hb_bitIsSet() translations
2010-10-20 05:07:41 +00:00
Przemyslaw Czerpak
3f3973cf40 2010-10-09 19:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapirdd.h
    + added new field flag: HB_FF_UNICODE

  * harbour/contrib/rddads/ads1.c
    + added support for new ADS 10.0 UNICODE fields: NChar, NVarChar, NMemo
      They are supported in all ADS* RDDs.
2010-10-09 17:07:21 +00:00
Przemyslaw Czerpak
e22c6c7e28 2010-10-08 10:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/common/hbstr.c
    + added new C function:
         double hb_numExpConv( double dNum, int iExp )
  * harbour/src/rdd/dbf1.c
    + added support for decoding exponents part from 'F' fields
2010-10-08 08:17:16 +00:00
Przemyslaw Czerpak
b077128a61 2010-09-30 10:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbtrace.h
  * harbour/src/common/hbtrace.c
    + added new C function:
         int hb_tracesysout( int new_sysout )

  * harbour/src/rtl/trace.c
    + added new PRG function:
         HB_TRACESYSOUT( [ <nSysOut> | <lSysOut> ] ) -> <lPrevSysOut>
2010-09-30 08:56:04 +00:00
Przemyslaw Czerpak
c429bee405 2010-09-29 02:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapirdd.h
  * harbour/src/rdd/workarea.c
    + added new 5-th parameter with pointer to super table ID to
      <RDD>_GETFUNCTABLE() function
    + added new C function hb_rddInheritEx() which allows to retrieve
      super RDD ID during registration.
    + added new C function:
         HB_BOOL hb_rddIsDerivedFrom( HB_USHORT uiRddID,
                                      HB_USHORT uiSupperRddID );
      which returns HB_TRUE if one of uiRddID ancestors is uiSupperRddID

  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/sdf1.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/src/rdd/usrrdd/usrrdd.c
  * harbour/src/rdd/usrrdd/rdds/arrayrdd.prg
  * harbour/src/rdd/usrrdd/rdds/dbtcdx.prg
  * harbour/src/rdd/usrrdd/rdds/fptcdx.prg
  * harbour/src/rdd/usrrdd/rdds/hscdx.prg
  * harbour/src/rdd/usrrdd/rdds/vfpcdx.prg
  * harbour/src/rdd/usrrdd/rdds/logrdd.prg
  * harbour/src/rdd/usrrdd/rdds/rlcdx.prg
  * harbour/src/rdd/usrrdd/rdds/smtcdx.prg
  * harbour/contrib/rddbmcdx/bmdbfcdx.c
  * harbour/contrib/rddsql/sqlbase.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/rddads/adsx.c
  * harbour/contrib/rddads/ads1.c
    * respect new parameter in <RDD>_GETFUNCTABLE() and use
      hb_rddInheritEx() instead of hb_rddInherit()

  * harbour/contrib/rddads/ads1.c
    * use hb_rddIsDerivedFrom() to recognize RDDs which inherits from
      one of ADS* RDDs.
      It should resolve some problems with ADS*X RDDs and help to simplify
      ADS*X RDDs code.
      Please test it and update ADS*X code removing some code which is
      not longer necessary.
2010-09-29 00:08:43 +00:00
Przemyslaw Czerpak
a50c4b0baf 2010-09-28 17:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcom.ch
    + added new error constant value: HB_COM_ERR_IO
  * harbour/src/rtl/hbcom.c
    + added translation for some important OS error code
      in *nix builds
    + added translation ERROR_TIMEOUT -> HB_COM_ERR_TIMEOUT
      in Windows build.
      TODO: check real error codes for it and also for other
            operations like opening the same port more then
            once and add valid translations
    ; TODO: add some basic trnaslation for OS2 error codes.
      HB_COM_ERR_TIMEOUT seems to be most important for portable
      programs.
2010-09-28 15:47:08 +00:00
Przemyslaw Czerpak
61854e0dda 2010-09-28 08:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcom.ch
    * updated few comments

  * harbour/include/hbapicom.h
  * harbour/src/rtl/hbcom.c
    + added new C function:
         HB_FHANDLE hb_comGetDeviceHandle( int iPort );
    * small cleanup in OS2 flow control setting

  * harbour/src/rtl/hbcomhb.c
    + added new PRG function
         HB_COMGETDEVICEHANDLE( nPort )  --> nHandle | F_ERROR
    * modified HB_COMFLOWCONTROL() to not change existing flow control
      when 3-rd parameter is missing:
         HB_COMFLOWCONTROL( nPort, @nOldFlow [, nNewFlow] ) --> lSuccess

  * harbour/contrib/hbmzip/hbmzip.c
    ! fixed date setting in HB_ZIPFILECREATE()
2010-09-28 06:32:51 +00:00
Przemyslaw Czerpak
67d08334d6 2010-09-27 19:53 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbtrace.h
  * harbour/src/common/hbtrace.c
    + added new C functions:
         int hb_traceflush( int new_flush );
         HB_BOOL hb_tracefile( const char * szFile );

  * harbour/src/rtl/trace.c
    + added new PRG functions:
         HB_TRACEFLUSH( [ <nFlush> | <lFlush> ] ) -> <lPrevFlush>
         HB_TRACEFILE( <cFileName> ) -> <lSetCorrectly>
    * modified PRG function HB_TRACESTATE() to accept logical value as
      parameter and return logical value as reult:
         HB_TRACESTATE( [ <nEnabled> | <lEnabled> ] ) -> <lPrevEnabled>
2010-09-27 17:54:05 +00:00
Przemyslaw Czerpak
c32df3353a 2010-09-23 12:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    + added new PP directive:
         #warning <*msg*>

  * harbour/include/hbclass.ch
    * use #warning instead of #error for class method declaration mismatch
      (enabled by -w3 compiler switch)
2010-09-23 10:11:13 +00:00
Przemyslaw Czerpak
2356181a10 2010-09-22 16:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapicom.h
  * harbour/src/rtl/hbcom.c
    + added public C function: void hb_comSetError( int iPort, int iError )

  * harbour/src/rtl/hbcomhb.c
    + added PRG function: HB_COMSETERROR( nPort, nError ) --> NIL

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

  * harbour/config/doc.mk
  * harbour/config/postinst.hbs
  * harbour/contrib/make.hbs
    * do not install documentation files when HB_INSTALL_DOC=no

  * harbour/config/postinst.hbs
    ! do not install .hbl files for core utils when HB_BUILD_PARTS=lib
    + added support for HB_INSTALL_SCRIPT executed after install step.
      It allows to extract some variables set by our GNU make system,
      i.e. it's used to retrieve HB_CCPREFIX in win/wince .spec files.

  * harbour/package/harbour-win.spec.in
    * use HB_INSTALL_DOC=no to disable DOC file installation
    * generate hb{w|ce}mk2 scripts as wrappers to hbmk2 with cross
      build settings so it can be easy used used by users to create
      Windows/WindowsCE binaries.
      Temporary solution until we will not have something more general.
2010-09-22 14:53:20 +00:00
Mindaugas Kavaliauskas
62c84afafe 2010-09-21 19:10 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddsql/sqlbase.c
    ! fixed connection freeing in RDDI_DISCONNECT
  * harbour/include/hbsocket.h
    * added socket item API functions
2010-09-21 16:12:26 +00:00