Commit Graph

1077 Commits

Author SHA1 Message Date
Viktor Szakats
8fc97aca43 2011-05-19 20:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/arc4.c
    ! silence warning on bsd [Tamas Tevesz]
2011-05-19 18:30:36 +00:00
Viktor Szakats
7eb97251b2 2011-05-19 19:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/arc4.c
    ! fixed for watcom/linux and watcom/dos and more [Tamas Tevesz]
2011-05-19 17:33:21 +00:00
Viktor Szakats
275ba9f480 2011-05-19 18:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/valtype.c
  * contrib/xhb/xhb.hbx
  * contrib/xhb/xhbfunc.c
    * HB_ISBYREF() function uncommented and moved from core to xhb lib
  * contrib/xhb/xhb.hbc
    + linking hbfship to better emulate xhb environment
  * contrib/hbfoxpro/misc.prg
    * formatting
2011-05-19 17:00:41 +00:00
Viktor Szakats
b52c7978ed 2011-05-19 17:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/debug/debugger.prg
  * src/rtl/valtoexp.prg
    + __dbgValToStr() support for type "T"
    % RTrim( Str() ) -> Str() and hb_ntos()
    % hb_VALTOEXP() minor optimization
    ! synced string representation of codeblocks and arrays
    * formatting

    ; TODO: to show the address instead of "pointer"?
2011-05-19 15:51:01 +00:00
Viktor Szakats
e43c00de24 2011-05-19 17:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/valtoexp.prg
    * formatted HB_CSTR()
  * src/debug/debugger.prg
    ! __dbgCStr() synced with HB_CSTR()
2011-05-19 15:32:49 +00:00
Viktor Szakats
955e90fe59 2011-05-19 17:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/arc4.c
    ! fixed for watcom (getpid)
    ! cast for msvc
    ! fixed for dmc (ms struct missing for win seed)
    ! fixed for bcc (inline disabled for this dead compiler, getpid)
    ! fixed warning for all non-unix, non-win targets

    ; TOFIX: it's also broken for watcom/dos and watcom/linux
             Tamas, can you take a look at it?

  * utils/hbmk2/hbmk2.prg
    + use HB_RAND32()
2011-05-19 15:15:59 +00:00
Viktor Szakats
ef4b9bf234 2011-05-19 16:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/Makefile
  * src/rtl/hbrandom.c
  + src/rtl/hbrand.c
  + src/rtl/arc4.c
  + src/rtl/arc4.h
    + added C level arc4 API. adapted to Harbour by Tamas Tevesz, 
      original authors listed in sources
    * moved HB_RAND32() function to separate source
    * changed HB_RAND32() to use arc4 backend, which means it will 
      now return properly string random numbers
    ; arc4 code may need tweaks on some platforms (android f.e.), 
      pls test
2011-05-19 14:33:28 +00:00
Viktor Szakats
1bcc7612a7 2011-05-18 16:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbrun/hbrun.hbp
  * contrib/hbrun/pullext.prg
    + include hbxpp

  * src/rdd/dbcmd53.c
    * formatting
2011-05-18 14:20:50 +00:00
Viktor Szakats
97144dd51c 2011-05-18 01:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! fixed regression referred to in 2011-05-18 01:06 UTC+0200 Viktor Szakats
      I'm still not exactly sure what's happening (besides I'm tired as hell),
      but now it seems that it's not VK_RETURN override at fault, but composited mode
      on Vista/7 which I enabled recently. Actually copy worked only
      the selection was not visible.
      Now I turn off composited on mark and select and renable when finished.
      I imagine this is not proper solution though I don't have Bill Gates's number 
      to make a support call ATM.
    + reenabled VK_RETURN

  * ChangeLog
    * edited prev entry
2011-05-17 23:53:39 +00:00
Viktor Szakats
3c5ba734e9 2011-05-18 01:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! fixed regression in:
        2011-02-26 20:07 UTC+0100 Viktor Szakats / patch by Aleksander Czajczynski
      VK_RETURN event override caused 'Mark and Copy' menu functionality
      to break, it's no longer possible to select an area. Aleksander, 
      I'd appreciate if you could check and fix this.
      For now I commented the VK_RETURN override (it may break some
      fullscreen features)
2011-05-17 23:07:47 +00:00
Viktor Szakats
c5a73944e2 2011-05-17 19:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbrandom.c
    ! fixed wrong random numbers being generated after:
        2011-03-11 09:42 UTC+0100 Przemyslaw Czerpak
      this is simple revert, Przemek pls recheck/refix original issue.
      Values 0x????FFFF and 0x????0000 were returned from these calls:
         hb_randomInt( 0xFFFFFFFF )
         hb_randomInt( 0xFFFFFFFE )
         hb_randomInt( 0x7FFFFFFF )
      under mingw32 and mingw64 (both win and linux builds)
2011-05-17 17:22:27 +00:00
Viktor Szakats
14d0d4161d 2011-05-17 19:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/hbrandom.c
    + HB_RAND32() -> <32-bit random number>

    ; TOFIX: random numbers are broken under mingw 4.5.2, only high 16bits are random.
             in all HB_RAND*() functions
2011-05-17 17:03:32 +00:00
Przemyslaw Czerpak
dfbe9dd6ce 2011-05-17 17:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    ! do not strip spaces from serialized codeblocks with late macro
      evaluation
2011-05-17 15:33:28 +00:00
Viktor Szakats
9178af03a4 2011-05-17 16:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/gencc.c
    ! hb_p_pushlong: conditional -gc3 generated code modified to
      evaluate the condition at C compile time rather than .c
      code generation time. This particular fix would pbly only
      affect 16-bit cross builds, which we don't have any ATM.
    ; TOFIX: same in hb_p_pushlonglong
2011-05-17 14:53:36 +00:00
Przemyslaw Czerpak
6b92949b7d 2011-05-17 15:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
  * harbour/src/rtl/gtwvt/gtwvt.c
  * harbour/contrib/xhb/hboutdbg.c
  * harbour/contrib/xhb/xhbfunc.c
    ! use 'hb_cmdargARGVN( 0 )' instead of 'hb_cmdargARGV()[ 0 ]' to avoid
      GPF when no arguments are initialized

  * harbour/contrib/hbwin/hbolesrv.hbc
    * use {allmingw} instead of {mingw} macro for MinGW64 builds

  * harbour/src/codepage/Makefile
  * harbour/src/codepage/uc646_yu.c
  + harbour/src/codepage/uc646yuc.c
  * harbour/include/hbapicdp.h
    + added JUS I.B1.003 - Cyrillic script variant of ISO-646-YU
      for Serbian and Macedonian language

  * harbour/src/codepage/Makefile
  + harbour/src/codepage/cpsr646.c
  + harbour/src/codepage/cpsr646c.c
  * harbour/include/hbcpage.hbx
    + added SR646 and SR646C Harbour codeapges.
      Both code pages uses the same 8-bit representation but different
      unicode values - SR646 uses Latin script and SR646C Cyrillic script.
      It means that it's useless to make any translations between SR646
      and SR646C because both versions uses the same ASCII values but they
      can help in translation to other encodings or CPs, i.e. to convert
      some Serbian text in one of the above CPs to Latin letters in UTF8
      encoding then it's enough to make:
         hb_strToUTF8( <cText>, "SR646" ) -> <cUtf8LatinText>
      and for conversion to UTF8+Cyrillic:
         hb_strToUTF8( <cText>, "SR646C" ) -> <cUtf8CyrillicText>
2011-05-17 13:40:56 +00:00
Viktor Szakats
66fdcc3bbb 2011-05-16 09:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/vm/runner.c
    + HB_HRBGETFUNLIST() -> <aArray>: New function posted to the
      list by Francesco Saverio Giudice
      (NOTE: I changed the name a little bit)

  * tests/gfx.prg
    ! fixed console output. Patch by Tamas Tevesz
    * changed rest of ? commands to outstd()
2011-05-16 07:34:46 +00:00
Viktor Szakats
39f6b6bdc0 2011-05-15 12:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/set.c
    * _SET_EOF default set to .T. on *nix to match other plaforms
      (and Clipper I might guess)
      CHECKME!
    * formatting
    ! missing 'break;'. it didn't cause error, anyhow pls check me
      maybe it was intentional (in 'case HB_SET_PRN_CON:' branch)
      CHECKME!

  * contrib/hbunix/hbunix.hbp
  * contrib/hbunix/hbunix.hbx
    + POSIX_SLEEP( <n> ) -> <n>

  * contrib/hbcurl/hbcurl.ch
  * contrib/hbcurl/core.c
    + added changes from latest libcurl version (untested with 
      latest version)

  * utils/hbmk2/hbmk2.prg
    ! fixed symbol names in hbx generation for watcom/{linux|dos|os2}
2011-05-15 10:13:27 +00:00
Przemyslaw Czerpak
0889e6b43e 2011-05-13 04:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/src/vm/hvm.c
    ! fixed stack preloading in hb_vmRequestReenterExt() when new stack has to be allocated
2011-05-13 02:05:59 +00:00
Viktor Szakats
424968243f 2011-05-12 09:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/ppcore.c
    * hb_xgrab( nSize ) -> hb_xgrab( nSize * sizeof( char ) )
      trying to make flto warning disappear to no avail

  * contrib/hbexpat/unitable.prg
    ! static -> thread static
2011-05-12 07:34:57 +00:00
Viktor Szakats
56fb8031a4 2011-05-11 19:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnf/nwsem.prg
  * contrib/hbnf/mouse2.prg
  * contrib/hbnf/tests/nftest.prg
  * examples/gfspell/spell.prg
    ! fixed = operator to :=/==

    ; now Harbour SVN is clean. Except quite a few problems in HBIDE and
      two more known code lines. Pritpal can you fix HBIDE to not use
      ambiguous '=' operator?

  * src/rdd/usrrdd/rdds/logrdd.prg
    * ltrim(str()) -> ntos()
2011-05-11 17:07:32 +00:00
Przemyslaw Czerpak
16037cfc6f 2011-05-11 16:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/vm/hashes.c
    + add new public C function: HB_BOOL hb_hashClear( PHB_ITEM pHash )
    * do not generate RTE when unexisting key is passed to HB_HDEL()
      now code which makes sth like:
         if xKey $ hValue
            hb_hDel( hValue, xKey )
         endif
      can be reduced to:
         hb_hDel( hValue, xKey )

  * harbour/src/vm/hashfunc.c
    + added new PRG function: HB_HCLEAR( <hValue> ) -> <hValue>
2011-05-11 14:02:04 +00:00
Przemyslaw Czerpak
861162111c 2011-05-10 21:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hashes.c
    ! fixed HB_HMERGE() to work correctly when destination and source hash arrays
      are the same
    ! fixed HB_HASH_INTERSECT in HB_HMERGE()
    % two minor optimizations
2011-05-10 19:43:46 +00:00
Viktor Szakats
41e5bf2b5d 2011-05-09 21:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/Makefile
  + include/hbstrict.ch
  * contrib/hbpost.hbm
    + added experimental -u+ header to catch some common code style
      problems. currently IF() is caught, but it interferec with std.ch
      hbsix.ch and possibly more, so it's not enabled

  * config/global.mk
  * src/dynlib/2nd/Makefile
  * src/dynlib/Makefile
    * secondary harbour dynlib is now enabled by __HB_BUILD_DYN_2ND=yes
    * renamed secondary harbour dynlib to harbour2*
    + it's now possible (again) to build harbour .dll in ST mode by
      using __HB_BUILD_DYN_ST=yes. if used together with __HB_BUILD_DYN_2ND=yes,
      the secondary dynlib will be MT. (pls note the secondary dynlib 
      is never directly used by hbmk2, so it's there for mere build convenience
      only)

  * contrib/hbxbp/xbpmenubar.prg
  * contrib/hbxbp/xbprtf.prg
  * contrib/hbxbp/xbpfiledialog.prg
  * contrib/hbxbp/xbpprintdialog.prg
  * contrib/hbxbp/xbpscrollbar.prg
  * contrib/hbxbp/xbpprinter.prg
  * contrib/hbxbp/xbpdataref.prg
    ! IF() -> IIF() (with the help of hbstrict.ch)

  * contrib/hbformat/hbfmtcls.prg
    ! fixed mistakenly changed '==' to LEFTEQUAL() in prev commit
2011-05-09 19:46:56 +00:00
Viktor Szakats
fab384f35d 2011-05-09 20:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbi18n2.prg
  * utils/hbi18n/hbi18n.prg
  * contrib/hbformat/hbfmtcls.prg
    * changed ' = ' to LEFTEQUAL() macro

  * src/rdd/hbsix/sxini.prg
  * contrib/hbgd/tests/gdtestcl.prg
  * contrib/hbide/idebrowse.prg
    * changed ' = ' to ' Left( ... ) == '

  * contrib/hbct/tests/csetarge.prg
  * contrib/hbct/tests/trig.prg
  * contrib/gtwvg/tests/wvgactivex.prg
  * contrib/xhb/trpccli.prg
  * contrib/xhb/trpc.prg
  * contrib/hbcairo/tests/glyphdbg.prg
  * contrib/hbide/hbqreportsmanager.prg
  * examples/httpsrv/cgifunc.prg
  * examples/httpsrv/session.prg
    * ' = ' -> ' := '

  * contrib/xhb/traceprg.prg
  * contrib/xhb/ttable.prg
  * contrib/hbfbird/tfirebrd.prg
  * contrib/hbtip/tests/base64.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/idebrowse.prg
  * examples/terminal/trm_srv.prg
    * ' = ' -> ' == '

  * contrib/xhb/tedit.prg
    * ' = ' -> ' == ' (I'm unsure about this, pls correct if you know the intent)

  * contrib/xhb/hbstruct.prg
    * ' = ' -> ' := '
    * formatted

  * contrib/hbtip/tests/base64.prg
    * File() -> hb_FileExists()

  ; TOFIX:
      - it's impossible for me to decide what the intent is in these files with ' = ' operator,
        please fix them:
          * contrib/hbide/idetags.prg
          * contrib/xhb/tcgi.prg
      - these also need to be fixed:
          * contrib/hbwin/legacy.prg:298:      xRet := ( ::OleValue = xArg ) /* NOTE: Intentionally using '=' operator. */
          * examples/rddado/tests/access2.prg:40:   LOCATE FOR ( 'First = "Lara"' )

      There are a ton more in gtwvw, hbnf, other examples and tests, I left them as is
2011-05-09 18:07:27 +00:00
Viktor Szakats
c85ff7b544 2011-05-09 19:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/memofile.c
    ! enabled EOF char on *nix platforms

  * src/rtl/base64d.c
    * uppercase hex nums to be in sync with base64c.c
2011-05-09 17:06:21 +00:00
Przemyslaw Czerpak
f778c9be7c 2011-05-09 18:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/memofile.c
    % eliminated two call to hb_fsSeek() and one hb_fsRead() from
      non *nix version of MEMOREAD() function
    ! do not write final EOF character if write failed in MEMOWRIT()
      function
    ; TOFIX: In *nixes support for EOF character in MEMOREAD() and
             MEMOWRITE() is disabled by default - IMHO it's wrong
             because it's not possible to use these functions to exchange
             safely data with CA-Cl*pper applications or even DOS/Windows
             versions of Harbour applications.

  * harbour/src/rtl/hbcom.c
    * replaced infinite waiting for reading/writing from/to serial port
      in *nix builds with loops checking periodically (once per second)
      for HVM events (i.e. thread interrupting).

  * harbour/src/codepage/uc88591b.c
    * converted hex digit to uppercase

  * harbour/contrib/hbwin/win_dlg.c
    + added support for setting default file name in
      WIN_GETOPENFILENAME() and WIN_GETSAVEFILENAME() functions:
         WIN_GETOPENFILENAME( [[@]<nFlags>], [<cTitle>], [<cInitDir>],
                              [<cDefExt>], [<acFilter>], [[@]<nFilterIndex>],
                              [<nBufferSize>], [<cDefName>] )
            -> <cFilePath> |
               <cPath> + e"\0" + <cFile1> [ + e"\0" + <cFileN> ] |
               ""
         WIN_GETSAVEFILENAME( [[@]<nFlags>], [<cTitle>], [<cInitDir>],
                              [<cDefExt>], [<acFilter>], [[@]<nFilterIndex>],
                              [<nBufferSize>], [<cDefName>] )
            -> <cFilePath> |
               <cPath> + e"\0" + <cFile1> [ + e"\0" + <cFileN> ] |
               ""
2011-05-09 16:49:15 +00:00
Viktor Szakats
559144142d 2011-05-09 18:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    ! corrected minor typo in change:
        2009-02-18 14:18 UTC+0100 Przemyslaw Czerpak
      equality operator stayed '=' in one place. didn't cause
      any user level problem

  * utils/hbmk2/hbmk2.prg
    + avoiding '=' operator to be _SET_EXACT agnostic
    % deleted setting _SET_EXACT
2011-05-09 16:31:39 +00:00
Viktor Szakats
27340d85d2 2011-05-09 15:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/net.c
    ! NETNAME(): fixed potential GPF on linux/watcom builds
    ! HB_USERNAME(): fixed potential GPF on *nix and os2 builds
    ; Pls chk me
2011-05-09 13:55:12 +00:00
Viktor Szakats
dad7da7b17 2011-05-09 09:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/net.c
    ! fixed potential NULL dereference with pass->pw_name
      I'm not sure it's real possibility anyhow it cannot hurt
      reason for this change is that I was getting GPF under 
      Linux in this call which wasn't BTW fixed by this change.

  * contrib/hbxbp/xbpcheckbox.prg
  * contrib/hbxbp/xbpbrowse.prg
  * contrib/hbxbp/xbpstatusbar.prg
  * contrib/hbxbp/xbpfontdialog.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbxbp/xbpparthandler.prg
  * contrib/hbxbp/xbpdataref.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideeditor.prg
    ! Fixed '!=' operator used with string
    ! '<>' operator changed to '!='
      Please never use '<>' or '#' unequality operator in Harbour SVN
2011-05-09 07:40:42 +00:00
Viktor Szakats
2040b02fea 2011-05-07 11:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/maindllp/dllpcode.c
    * readded more win specific macros (msvc didn't like it)
2011-05-07 09:25:34 +00:00
Viktor Szakats
20dd966f91 2011-05-05 16:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/libnamec.c
    + added HB_LIBPOSTFIX(). not finalized. it returns 
      the dynamic lib postfix used by Harbour convention
      (f.e. '-21', or '-21-wce-arm') by harbour core dll 
      and contrib dlls

  * src/vm/maindllp/dllpcode.c
    * reduced win specific macros

  * contrib/xhb/xhb.hbx
  * contrib/xhb/xhberr.prg
    + added XHB_ERRORLOG( [<cFileName>], [<lAppend>] ) -> { cOldName, lOldAppend }
      to replace xhb _SET_ERRORLOG extension
      (build test only)
    ! fixed != operator on string
2011-05-05 14:53:44 +00:00
Przemyslaw Czerpak
340395f7bb 2011-05-04 17:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
    * formatting

  * harbour/src/common/hbstr.c
    * pacified warnings generated by C compilers having
      modf() function wrongly defined in header files

  * harbour/src/rtl/hbtoken.c
    ! fixed bug reported by Patrick on xHarbour devel list

  * harbour/src/rdd/dbfcdx/dbfcdx1.c
    * modified to use different startup function names as workaround
      for problems with non unique function names reported by compilers
      using HB_INITSEG_STARTUP - it's not a fix but workaround only.
2011-05-04 15:02:01 +00:00
Przemyslaw Czerpak
121478fffe 2011-05-04 14:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    ! fixed #pragma __binarystreaminclude used with zero length files.
      Thanks to Viktor for information.
2011-05-04 12:05:26 +00:00
Viktor Szakats
0aa41ed480 2011-05-01 22:20 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/tests/upld_ftp.prg
  * contrib/rddads/tests/datad.prg
  * contrib/rddads/tests/testmg.prg
    * function main() -> procedure main() + cleanup

  * contrib/rddads/tests/datad.prg
  * contrib/rddads/tests/testmg.prg
  * contrib/rddads/doc/en/adsfuncs.txt
  * contrib/rddads/doc/en/readme.txt
    * formatted (hbformat, manual)
    * fixes

  * src/rtl/gtxwc/gtxwc.h
  * src/rtl/gtxwc/gtxwc.c
  * src/rtl/hbmd5.c
  * contrib/gtwvg/tests/demowvg.prg
  * contrib/gtwvg/tests/wvgdyndialogs.prg
  * contrib/gtwvg/tests/wvgwvtclasses.prg
  * contrib/hbtip/thtml.prg
  * contrib/hbtip/tests/loadhtml.prg
  * tests/server.prg
  * examples/hbvpdf/hbvpdft.prg
    * Using 'harbour' name in outputs and some comments

  * src/rdd/dbcmd.c
    * typo
2011-05-01 20:22:54 +00:00
Viktor Szakats
f4c3ddbf34 2011-05-01 12:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tmenusys.prg
  * src/rtl/tmenuitm.prg
    ! accept extended popupmenu
2011-05-01 10:07:36 +00:00
Viktor Szakats
2026b1a28b 2011-05-01 01:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tpopuphb.prg
    ! non-c53 mode fix
2011-04-30 23:05:13 +00:00
Viktor Szakats
f7aa719cd5 2011-05-01 00:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tpopuphb.prg
    ! typo?
2011-04-30 22:58:01 +00:00
Viktor Szakats
630d610395 2011-04-30 18:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tpopuphb.prg
    * copyrights
2011-04-30 16:27:34 +00:00
Viktor Szakats
8237e6fd1a 2011-04-30 18:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tpopuphb.prg
    + Missed from prev commit.
2011-04-30 16:24:52 +00:00
Viktor Szakats
ef1c24b9cd 2011-04-30 18:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/Makefile
  * src/rtl/tpopup.prg
    + Replaced last remaining HB_EXTENSION build-time conditional
      branch in Harbour codebase with runtime solution. (similar to
      GET vs. HB_GET)

    ; IMPORTANT: If you had so far built Harbour with HB_USER_PRGFLAGS=-DHB_EXTENSION
      to use TPOPUP class extensions: :shadowed, :setCoors(), :isShortCut(), :isQuick(),
      switch your app to use HB_POPUPMENU() (from POPUPMENU()). This in practice
      will mean to use this code:
         PopUp( nTop, nLeft, nBottom, nRight )
      to this:
         hb_PopUpMenu():New( nTop, nLeft, nBottom, nRight )
      Then delete your custom HB_USER_PRGFLAGS (or use nightly binary)

      [pls make tests, I don't have test code for POPUP(). ]
2011-04-30 16:23:46 +00:00
Viktor Szakats
3313096d1d 2011-04-30 16:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/inkey.c
  * contrib/xhb/hbcompat.ch
    + added HB_KEYNEXT( [<nEventMask>] ) -> <nKey>
      (same as now disabled dirty xhb extension for NEXTKEY())
2011-04-30 15:00:50 +00:00
Przemyslaw Czerpak
2b98d23bec 2011-04-29 18:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    ! fixed time checking in *nix version of hb_fsPipeIsData()

  * harbour/contrib/hbwin/win_bmp.c
    ! fixed buffer overflow
2011-04-29 16:13:07 +00:00
Viktor Szakats
8e71e0eb6f 2011-04-29 02:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! put back CS_HREDRAW | CS_VREDRAW
      apparently needed for HB_GTI_RESIZEMODE_FONT. Thanks Pritpal.
    * use XP double buffering on Vista and upper systems only (was: all).
      This is not based on hard scientific data at this time, some users
      reported "slowness" on certain XP systems. It doesn't seem to be
      tied to any particular video chipset (or driver), exact reason
      still uncertain (other software? GPO setting? SP level?).
      I cannot find evidence for general WS_EX_COMPOSITED related problem
      on the internet.
      So we're back to *fugly* screen updates on XP and lower systems, this
      means that visible lag will be seen when drawing text with changing
      colors in them (f.e. menubar with hotkey).
      If you know better, speak up.

  * contrib/hbqt/hbmk2_qt.hbs
    ! fixed typo in one HB_WITH_QT envvar reference (Thanks Francesco)
    + accept HB_QTPATH with or without ending dirsep
    ! use host exe extension when looking for qt tools
    + use win/os2 specific autodetection logic based on host OS, rather
      than target OS, thus helping QT in cross-builds, like droid.
      And now let the avalanche of crap follow.

  - doc/howtobld.txt
    - outdated, deleted

  * doc/howtosvn.txt
    * minor update
2011-04-29 00:45:29 +00:00
Viktor Szakats
156bccb461 2011-04-25 03:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! Fixed HB_GTI_ICONFILE not working with "certain" .ico files.

  * contrib/hbqt/hbqt_common.hbc
    + added libpath for beos [Tamasz Tevesz]
2011-04-25 01:34:07 +00:00
Przemyslaw Czerpak
189231e48e 2011-04-23 10:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    * casting to pacify warnings on some platforms which may use
      negative errno codes
2011-04-23 08:39:10 +00:00
Viktor Szakats
81aaba495a 2011-04-23 02:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added TROUBLESHOOTING/9.: how to submit logs to dev list.
      Please read it.

  * src/rtl/diskspac.c
  * src/rtl/disksphb.c
    ! Fixed possible MT race condition in DISKSPACE()/HB_DISKSPACE()
      where no value could be returned.

  * src/rtl/gtwvt/gtwvt.c
    * Changed to use WS_EX_COMPOSITED instead of WS_EX_LAYERED.
      This works on XP and above (previous one also worked on W2K),
      and I mean this as another round of live testing, as WS_EX_LAYERED
      turned out to be causing strange flickers (maybe hardware
      induced, I don't know) on some non-virtualized/non-remote
      OS installations. Maybe this will work better. If not, even
      this will be deleted. Then maybe software/DC double-buffering
      will be the ultimate soltion.
    % Dropped fiddling with SetLayeredWindowAttributes() call.
    * Formatting.

  * contrib/make.hbs
    + Added 'verbose' keyword. Equivalent to HB_BUILD_VERBOSE=yes.
    + Added 'rebuild' keyword. (Equivalent to 'clean all')

  * contrib/3rd/sqlite3/sqlite3.hbp
    ! Added workaround for gcc/mingw bug in 4.5.0 and 4.5.1
      revisions where it shows compile error when iso89 c dialect
      is selected. Now in 4.5.x gnu89 is used instead to avoid it.

  * contrib/hbplist
    - Disabled gtwvg due to build breakage.
2011-04-23 00:08:55 +00:00
Viktor Szakats
7b3c518a60 2011-04-21 10:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * include/hbapi.h
  * src/common/hbver.c
  * src/rtl/version.c
    + hb_verHostCPU() to return CPU architecture the host OS
      is running under. (long time TODO)
      It may or may not give precise answer depending on 
      target OS. For win, it works as exptected.
    + HB_OSCPU() -> <cCPU> same for .prg level apps.

  * contrib/hbmxml/3rd/minixml/mxml_str.c
    ! Ultimate isdigit() fix. [Tamas Tevesz]
2011-04-21 08:36:15 +00:00
Viktor Szakats
83e92f91d8 2011-04-21 01:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmxml/3rd/minixml/mxml.hbp
  * contrib/hbmxml/3rd/minixml/mxml_str.c
    ! Fixed isdigit() warning which was result of missing
      mxml header. [Tamas Tevesz]

  + contrib/hbcurl/hbcurlt1.ch
  + contrib/hbcurl/core_t1.c
    + Implemented new way of using HB_CURLOPT_HTTPPOST, now
      all meaningful values are supported in any order and
      combination. See:
           http://curl.haxx.se/libcurl/c/curl_formadd.html
      The patch is heavily based on patch/implementation submitted
      by Benjamin Jacobs, many thanks for it. Final patch
      includes some rework, simplification, compile and
      other fixes, plus formatting with uncrustify. Please
      make sure to test/review this version as I didn't do
      any functional tests, just build ones.
      Sample code:
         curl_easy_setopt( curl, HB_CURLOPT_HTTPPOST, { ;
             { HB_CURLFORM_COPYNAME, "nparam1", ;
               HB_CURLFORM_COPYCONTENTS, "value1" }, ;
             { HB_CURLFORM_COPYNAME, "nparam2", ;
               HB_CURLFORM_COPYCONTENTS, "value" }, ;
             { HB_CURLFORM_COPYNAME, "fileparam", ;
               HB_CURLFORM_FILE, filename } } )
      WARNING: This implementation is INCOMPATIBLE with the
               previous one.
      TOFIX: Current implementation does allow to create GPFs because
             it allows .prg code manually pass buffer sizes. This must
             be fixed and buffer length should always be automatically
             taken from Harbour item. This will require more sophisticated
             code to build the low-level array (f.e. size calculation).
             Benjamin, can you look at it?
      NOTE: I'm uploading this unfinished code as new temp files,
            because SVN doesn't support light branching, so this poor man's
            solution is left to manage it.
2011-04-20 23:01:14 +00:00
Viktor Szakats
2071544b32 2011-04-19 18:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbtrace.c
  * contrib/xhb/hbsyslog.c
    - Deleted Android specific logging. syslog works good.

  + config/android
  + config/android/libs.mk
  + config/android/gcc.mk
  + config/android/gccarm.mk
  + config/android/global.mk
  + config/android/mingw.mk
    + Added android specific core build files. They are 
      all redirected to linux.

  * config/linux/libs.mk
    + Do not add rt and pthreads libs for android targets.
2011-04-19 16:40:34 +00:00
Viktor Szakats
54463d9f13 2011-04-19 17:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/version.c
    * Renamed recently added function HB_OSBITWIDTH() to HB_OSIS64BIT()
2011-04-19 15:55:35 +00:00