Commit Graph

1119 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
a74ef66d49 2011-08-09 14:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/classes.c
    ! added missing initialization of onError and destructor flags.
      The problem could be exploited when class inherits from more
      then one parent classes and onError handler[s] or destructor[s]
      were neither defined in the class nor in the first ancestor.

  * harbour/contrib/hbwin/olecore.c
    + added helper PRG functions:
         __oleInvokeMethod(), __oleInvokePut(), __oleInvokeGet(),
         __oleGetNameId()
2011-08-09 12:26:42 +00:00
Przemyslaw Czerpak
b814c028a8 2011-08-08 12:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcomhb.c
    * indenting

  * harbour/contrib/xhb/xhb.hbp
  - harbour/contrib/xhb/xthrow.prg
  + harbour/contrib/xhb/xthrow.c
    * rewritten THROW() function in C

  * harbour/contrib/hbwin/olecore.c
    + add PRG function __OLEISDISP() which can be used to verify if given
      parameter is Harbour OLE pointer item.
2011-08-08 10:13:50 +00:00
Viktor Szakats
56fac2097f 2011-08-07 19:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + better accept libs passed as names in oldschool 'name.lib' format
  * src/rtl/objfunc.prg
    * casing
2011-08-07 17:34:32 +00:00
Przemyslaw Czerpak
e33d2bb9a2 2011-08-04 02:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
    * small code modification to pacify warning
2011-08-04 00:44:09 +00:00
Przemyslaw Czerpak
1eea547516 2011-08-04 01:51 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/runner.c
    * do not execute EXIT procedures inside HB_HRBDO() call.
      This modification allows to call HB_HRBDO() more then
      once for the same HRB module without activating INIT
      and EXIT procedures on each call. EXIT procedures will
      be activated when HRB modules is unloaded or on HVM QUIT.

  * harbour/contrib/hbwin/axcore.c
    ! cleaned casting
2011-08-03 23:51:25 +00:00
Przemyslaw Czerpak
b29dab6a6d 2011-08-02 13:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/fserr.c
    ! moved HB_TRACE() message - it was overwritting OS error code.

  * harbour/src/rtl/filesys.c
    ! removed dup2() function call left by mistake during some modifications
2011-08-02 11:17:25 +00:00
Przemyslaw Czerpak
64b9209085 2011-08-02 00:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/hbprintf.c
    + added very basic support for '%ls' in hb_snprintf()

  * harbour/ChangeLog
    ! typo in last description
2011-08-01 22:11:45 +00:00
Przemyslaw Czerpak
915eea1017 2011-08-01 15:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/src/vm/estack.c
    + added internal function hb_stackLockCount()

  * harbour/src/vm/hvm.c
    * modified hb_vmRequestReenter() to return HB_FALSE instead of GPF
      when called from non HVM thread.
    * extended hb_vmRequestReenter[Ext]()/hb_vmRequestRestore() to
      save and restore HVM stack lock state and lock HVM stack before
      successful return.
      This extensions is critical for MT applications which need
      to safely reenter HVM also from code encapsulated inside unknown
      number of hb_vnUnlock()/hb_vnLock() calls.
      [TOMERGE 3.0]

  * harbour/src/compiler/cmdcheck.c
    % removed redundant conditions
2011-08-01 13:29:07 +00:00
Viktor Szakats
4dec3f9b5f 2011-07-30 00:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/3rd/png/pngerror.c
  * src/3rd/png/pngwrite.c
  * src/3rd/png/pngconf.h
  * src/3rd/png/pngwtran.c
  * src/3rd/png/pngset.c
  * src/3rd/png/pngpread.c
  * src/3rd/png/LICENSE
  * src/3rd/png/pngrutil.c
  * src/3rd/png/png.dif
  * src/3rd/png/pnginfo.h
  * src/3rd/png/pngstru.h
  * src/3rd/png/pngwutil.c
  * src/3rd/png/pnglconf.h
  * src/3rd/png/pngread.c
  * src/3rd/png/pngmem.c
  * src/3rd/png/png.c
  * src/3rd/png/png.h
  * src/3rd/png/pngpriv.h
  * src/3rd/png/pngrtran.c
  * src/3rd/png/Makefile
  * src/3rd/png/pngtrans.c
    * update to 1.5.4

  * contrib/3rd/sqlite3/sqlite3.c
  * contrib/3rd/sqlite3/sqlite3.dif
  * contrib/3rd/sqlite3/sqlite3.h
  * contrib/3rd/sqlite3/sqlite3.hbp
    * update to 3.7.7.1

  ; Both patch from Tamas Tevesz. Thank you.

  ; Administrative note: I'm also giving up applying patches,
    so I'm looking for devs taking over this task. I'd be
    most happy if Tamas could commit directly his own, since
    he is doing a great job and the patches almost never require
    any touchups, so I'm gladly opening R/W access for direct
    commit. Tamas, what do you think?
2011-07-29 22:03:23 +00:00
Viktor Szakats
ea7010429a 2011-07-28 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/cmdcheck.c
    ! added workaround for what it seems like a clang bug in latest Apple XCode 4.1
      'Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)',
      manifesting in this error:
      ---
         /Developer/usr/bin/clang   -I. -I../../../../../include -fno-common -W -Wall -O3   -o cmdcheck.o  -c ../../../cmdcheck.c
         clang: error: unable to execute command: Segmentation fault: 11
         clang: error: clang frontend command failed due to signal 1 (use -v to see invocation)
      ---
      The fix simply introduces a new variable to use ptr reference instead of
      indexed vector access in one specific loop.
      Please review/refix it, I didn't make functional tests.
2011-07-28 11:07:03 +00:00
Przemyslaw Czerpak
5fd29fa2e6 2011-07-28 00:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
    ! fixed infinite error retry loop when variable is create inside
      error handler
2011-07-27 22:32:19 +00:00
Przemyslaw Czerpak
e6920faaeb 2011-07-26 13:18 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/hbgete.c
  * harbour/src/common/hbprintf.c
  * harbour/src/rtl/arc4.c
  * harbour/utils/hbmk2/hbmk2.prg
  * harbour/contrib/hbmysql/hbmysql.hbp
  * harbour/contrib/sddmy/sddmy.hbp
    ! fixes for FreeBSD 6.2 build
      Patch provided by Phil Krylov - many thanks.
      [TOMERGE 3.0]
2011-07-26 11:18:51 +00:00
Przemyslaw Czerpak
ae76eaf8d1 2011-07-22 23:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcom.c
    ! updated to compile on HP-UX - please test.
      [TOMERGE 3.0]
2011-07-22 21:13:35 +00:00
Przemyslaw Czerpak
fd4699533c 2011-07-22 09:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
    ! added protection against self-recursive iterating in code like:
         FOR EACH var in @var
            [...]
         NEXT
      Now RTE is generated in such case instead of GPF
2011-07-22 07:57:30 +00:00
Viktor Szakats
44306c955c 2011-07-17 16:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/extend.api
  * include/harbour.hbx
  * include/hbdefs.h
  * include/hbapi.h
  * include/hbvm.h
  * include/hbapigt.h
  * include/clipdefs.h
  - src/pp/pplib3.c
  * src/pp/Makefile
  * src/vm/hvm.c
  * src/rtl/hbtoken.c
  * src/rtl/inkey.c
  * src/rdd/usrrdd/usrrdd.c
  * contrib/hbmysql/hbmysql.hbx
  - contrib/hbmysql/mysqlold.c
  * contrib/hbmysql/mysql.c
  * contrib/hbmysql/hbmysql.hbp
  * contrib/hbmysql/mysql.ch
  * contrib/hbpgsql/hbpgsql.hbx
  * contrib/hbpgsql/postgres.c
  * contrib/hbwin/hbwin.hbp
  * contrib/hbwin/hbwin.hbx
  - contrib/hbwin/legacy.prg
  - contrib/hbwin/legacycd.c
  - contrib/hbwin/legacyco.c
  - contrib/hbwin/legacycp.c
  * contrib/hbodbc/hbodbc.hbx
  - contrib/hbodbc/odbcold.c
  * contrib/hbodbc/odbc.c
  * contrib/hbodbc/hbodbc.hbp
  * contrib/hbtip/utils.c
  * contrib/hbtip/hbtip.hbx
    * deleted things marked with HB_LEGACY_LEVEL3, finishing cleanup
      job started many years ago.
    ; this also means that windows.h and os2.h will no longer be
      included by Harbour headers, HB_OS_WIN_USED is thus ineffective,
      so if someone needs these headers to access system APIs, they
      should be manually included in each source file. Some old
      hacks have also been removed which disabled some Clipper
      compatibility macros/types in compatibility headers (clipdefs.h, *.api),
      if someone uses these alongside windows.h/os2.h inclusion, it will
      be broken, here the strategy is to move to Harbour types and
      Harbour API headers, simply Clipper headers and newer OS headers
      are not compatible.
    ; HB_DONT_DEFINE_BASIC_TYPES is not effective anymore.
    ; INKEY_RAW is no more, use HB_INKEY_RAW instead.
    ; NEXTKEY() hidden parameter extension is disabled. Use HB_KEYNEXT()
      Harbour alternative which has it.
    ; Some legacy PP functions are no more.
    ; hb_vmPushState()/hb_vmPopState() APIs were now permanently deleted.
    ; __STR*() token handling legacy functions are no more, use native HB_TOKEN*()
      ones instead.
    ; WRITEBHEADER in USRRDD is no more, WRITEDBHEADER is the replacement.
    ; hbmysql, hbodbc compatibilty and deprecated functions were deleted
    ; hbwin compatibility functions were deleted. If there is demand, mainly to
      help migrating xhb users, they can be readded to xhb lib by interested
      developers, now deleted code should be changed to fall back to dummies
      on non-Windows builds.
    ; some deprecated hbpgsql functions were deleted
    ; hbtip HB_BASE64() is deleted. Use core HB_BASE64ENCODE() instead.

    ; Anyone affected by above changes has the option to stick with 3.0.x Harbour
      versions or to update their source code according to above instructions
      (or instructions included in past ChangeLog entries)

    ; Some fallouts in Harbour build is possible after these changes
2011-07-17 14:23:26 +00:00
Viktor Szakats
290be7f0e0 2011-07-16 15:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
    ! fixed to use LONG instead of DWORD for GetWindowLong() values
    ! fixed to use LONG_PTR instead of LONG for GetWindowLongPtr() values
      on systems requiring it, f.e. win64 builds
    ; review me pls
    ; TODO: GTWVG would have to be synced with recent GTWVT changes
2011-07-16 14:00:32 +00:00
Viktor Szakats
989fe5c8fa 2011-07-16 14:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtgui/gtgui.c
    ! added cast to pacify msvc64 warning
2011-07-16 12:28:20 +00:00
Viktor Szakats
7e7c0f2a61 2011-07-15 18:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbini.prg
    ! fixed HB_INIREAD() unable to read values containing '=' sign
      Patch by Francesco Saverio Giudice. Thank you.
2011-07-15 16:24:35 +00:00
Przemyslaw Czerpak
50d3cac0ba 2011-07-12 16:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/macro/macrolex.c
    ! added missing YY token assignment I removed by mistake in last
      macrolex modification.
      This modification fixes problem with extended string decoding
      by macrocompiler.

  * harbour/config/global.mk
    ! added missing $(HB_HOST_BIN_EXT) in wildcard command used of
      user HB_CCPATH/HB_CCPREFIX verification.
2011-07-12 14:03:11 +00:00
Viktor Szakats
08cd36dadb 2011-07-06 00:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    ! using HB_ prefixed name for locally defined
      CONSOLE_SCREEN_BUFFER_INFOEX structure related names
      and then these are mapped to Windows names using #define
      (untested)
    ! disabled whole above logic since it's not used currently
      anyway. this should fix compilation with mingw64-tdm
      and some other mingw64 builds with Windows headers
      featuring CONSOLE_SCREEN_BUFFER_INFOEX structure
    ; review me please
2011-07-05 22:05:54 +00:00
Przemyslaw Czerpak
1dfda63230 2011-07-05 07:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    % removed dummy (always false) condition

  * harbour/src/rtl/arc4.c
    ! do not uses sysctl() in Android builds
2011-07-05 05:49:24 +00:00
Viktor Szakats
cc606c3e9a 2011-06-23 09:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/classes.c
    ! error if HB_USE_PROFILER is defined. Patch from Teo Fonrouge.
2011-06-23 07:50:50 +00:00
Przemyslaw Czerpak
3f148040d0 2011-06-17 20:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtinfo.ch
  * harbour/src/rtl/gtwvt/gtwvt.c
    + added support for HB_GTI_MAXIMIZED
      Patch created by Heinz V. Bergen - thank you.

  * harbour/src/common/hbstr.c
    % simplified hb_strAt() code and added missing stop condition.
      This modification also quite nicely optimized the average speed
      of AT() function and $ operator.
2011-06-17 18:27:14 +00:00
Viktor Szakats
dc1f09c2c6 2011-06-16 00:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! fixed WinCE regression after recent patch
    % minor optimization
2011-06-15 22:39:24 +00:00
Viktor Szakats
50f49dbf55 2011-06-14 11:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/strtran.c
    ! minor in webpage URL

  * src/rtl/gtwvt/gtwvt.c
    ! Patch from Heinz V. Bergen, fixing full screen and alt-enter
      GT features when GTWVT windows was not open yet, also fixing
      screen positioning/sizing regression.

  * src/rtl/inkey.c
  * include/harbour.hbx
    + added HB_KEYLAST() which allows to pass a mask
      (I'm not sure if this is ultimate solution, but there is goes
      for now. Pls remove it if there is better one)

  * package/winuni/RELNOTES
    * updated 3rd party version numbers
2011-06-14 09:52:19 +00:00
Przemyslaw Czerpak
01b553df93 2011-06-12 13:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/strtran.c
    ! rewritten STRTRAN() to fix incompatibilities with Clipper and fatal
      performance of original code.
      This implementation is over 3 times faster then the previous code.
2011-06-12 11:16:23 +00:00
Viktor Szakats
1ad759fbb5 2011-06-09 22:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.h
  * src/rtl/gtwvt/gtwvt.c
  * tests/wvtext.prg
    + Massive GTWVT patch from Heinz V. Bergen. Thank you very much.
      Details:
      - fixed Alt-Enter for full screen, will no longer send the
        K_ENTER to the Input queue.
      - HB_K_RESIZE only sent if the Rows/Cols size actually changed.
      - Clicking Maximize (top right corner) button, will maximize window
        and change to Restore button, then clicking Restore button will
        restore the window to its previous size.
      - Dbl-clicking Title-Bar will maximize, then Dbl-Clicking Title
        bar again will restore.
      - Resizing window when in RESIZEMODE_FONT, will dynamically display
        the resulting size changes in real time.
      - All Maximize / Restore / Sizing works in RESIZEMODE_ROWS as would
        be expected.
      - Windows 7, dragging Window (Title-Bar) to top of screen will maximize,
        then dragging maximized window's Title bar down will Restore
        to previous size.
      - Windows 7, dragging Window (Title-Bar) left or right until mouse
        pointer hits the edge of the screen will size and dock to the left
        or right half of the screen, then dragging title bar away from docked
        position will restore the Window to its previous size.
      - Windows 7, resizing top or bottom until edge of screen hit
        (or dbl-clicking) will resize for maximum height. Then dragging
        title bar away will restore to previous size.
      - Before, depending on monitor's resolution, and when using
        Courier New or Terminal font, maximizing would fail due to Font
        metrics being incompatible with the Window's size or maybe due to
        math issues, I was able to resolve by slightly adjusting the Font's
        width or height down and then trying again until successful.
      - Pressing Alt-Enter (when enabled) for full screen mode and then
        pressing Alt-Enter again will restore Window to previous
        non-maximized size.
      - extended GT test app
    ; Please make test and report any experiences on devel list
2011-06-09 20:51:42 +00:00
Przemyslaw Czerpak
4bebbd6ac3 2011-06-09 15:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapifs.h
  * harbour/src/rtl/filesys.c
    % removed unnecessary PID setting in POSIX file lock function.
    + added new C function:
         int hb_fsLockTest( HB_FHANDLE hFileHandle, HB_FOFFSET nStart,
                            HB_FOFFSET nLength, HB_USHORT uiMode );
      It allows to test file range lock status.
      It returns -1 on error, 0 when lock can be set and value greater
      then 0 if part of given range is locked by other process. In POSIX
      systems this value is PID of current lock owner. In other systems
      it's always 1.
      In uiMode only FLX_SHARED bit is significant.

  * harbour/include/hbapifs.h
  * harbour/src/rtl/filebuf.c
    + added new C function:
         int hb_fileLockTest( PHB_FILE pFile, HB_FOFFSET nStart,
                              HB_FOFFSET nLen, int iType );
      It's redirected to hb_fsLockTest()

  * harbour/contrib/hbnetio/netio.h
  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbmemio/memio.c
    + implemented hb_fileLockTest() low level code

  * harbour/include/dbinfo.ch
    + added DBI_LOCKTEST

  * harbour/src/rdd/dbf1.c
    % small code simplification
    + implemented DBI_LOCKTEST
         dbInfo( DBI_LOCKTEST [, <nRecNo> ] ) -> <nStatus>
      returns corresponding results to C level hb_fsLockTest() function.
      If current workarea is already locked then 0 is returned.
      If low level FS is located on POSIX system (accessed directly or by
      HBNETIO) then value greater then 0 is PID of current lock owner.
      If the lock is hold by aliased area or other thread of calling
      process then <nStatus> is current PID. In Other systems 1 is returned
      when lock cannot be set in current workarea.
      If <nRecNo> is given then the test is for RLOCK() otherwise FLOCK()
      operation.
2011-06-09 13:32:19 +00:00
Viktor Szakats
2a650ba9bf 2011-06-03 02:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    ! missing paranthesis, causing miscalculation in :changeItem() 
      with dropdown listboxes. pls test.
2011-06-03 00:17:04 +00:00
Viktor Szakats
208a946eeb 2011-06-03 01:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/thread.c
    * upped sleep timeout in *nix version of hb_threadReleaseCPU() to 20 ms
      it halves CPU consumption. pls revert/comment if you notice
      causing this any harm.
2011-06-02 23:55:58 +00:00
Przemyslaw Czerpak
c72ee124b3 2011-06-02 21:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/thread.c
    * set sleep timeout in *nix version of hb_threadReleaseCPU() to 10 ms

  * harbour/src/compiler/hbpcode.c
    ! fixed typo which could cause compile time crash when debugger code
      is generated (-b) and file name with extenssion has only one or
      two characters

  * harbour/include/hbcompdf.h
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/hbstripl.c
  * harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyc
    ! removed old code designed to optimize line numbers generated in PCODE.
      It cannot work correctly and in some cases it was generating HB_P_LINE
      pcodes in wrong places.
    % enabled new code for HB_P_LINE PCODEs optimization also in debugger (-b)
      compilation so it can be used to replaced the old one.
2011-06-02 19:05:56 +00:00
Przemyslaw Czerpak
d514537840 2011-05-31 16:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gttrm/gttrm.c
    * enable resizing if PuTTY is autodetected regardles of [HB_]TERM setting
2011-05-31 14:04:09 +00:00
Przemyslaw Czerpak
a3660695ba 2011-05-31 15:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gttrm/gttrm.c
    * gives higher priority for PuTTY terminal autodetection then for
      envvar [HB_]TERM=linux
2011-05-31 13:33:29 +00:00
Przemyslaw Czerpak
20b5875721 2011-05-27 19:04 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapicdp.h
  * harbour/src/codepage/Makefile
  + harbour/src/codepage/uc858.c
    + added CP858 - basically it's CP850 but contains EURO SIGN (U+20AC) at position 0xD5
      instead of Turkish dotless-i (U+0131)
2011-05-27 17:04:24 +00:00
Przemyslaw Czerpak
ff9138a724 2011-05-24 11:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/arc4.c
    ! changed size parameter passed by reference to sysctl() to size_t
    ! fixed WINCE builds
    % enable pid checking only in *nix systems.
      If system does not support fork() or compatible operation
      (i.e. vfork(), clone()) then PID checking is completely useless.

  * harbour/src/rtl/gtwvt/gtwvt.c
    * pacified WINCE warnings

  * harbour/contrib/rddads/adsx.c
    ! fixed potentially uninitialized pTag variable
2011-05-24 10:00:11 +00:00
Viktor Szakats
71005961f9 2011-05-23 11:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/arc4.c
    ! build error on osx
2011-05-23 09:27:27 +00:00
Viktor Szakats
a25f17dcfb 2011-05-22 13:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/vmmt/Makefile
    ! added pbyref.c
2011-05-22 11:56:34 +00:00
Viktor Szakats
15c959fe1c 2011-05-21 14:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/teditor.prg
    ! fixed regression occurred in commit:
        2007-01-10 17:50 UTC+0800 Pritpal Bedi
      reproducible using:
        'memoedit(chr(13)+chr(10)+"abcdef"+space(50),1,1,2,20,,,90,,1,10,0,0)
        and in the edit window, press <down> once and <left> ten times after
        that. As you see, the edit windows shows incorrect data on the screen
        now.'
      Thanks to vbdasc for the report and fix.
2011-05-21 12:55:56 +00:00
Viktor Szakats
464af38648 2011-05-21 13:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  + src/vm/pbyref.c
  * src/vm/Makefile
    + added HB_PISBYREF() (renamed because HB_PARAM* prefix would 
      be new, whereas HB_P*() is already utilized)
      [Przemek]

  * contrib/xhb/xhb.hbx
  * contrib/xhb/xhbfunc.c
    - commented HB_ISBYREF(). it's broken.
2011-05-21 11:14:46 +00:00
Viktor Szakats
5553c16493 2011-05-21 12:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/hbrandom.c
    * HB_RANDOMMAX() -> HB_RANDOMINTMAX()
    ; TOFIX: now broken under mingw in all places where HB_RANDOMINT()
             is potentially called with larger than HB_RANDOMINTMAX()
             value. This will be impossible f.e. in RANDOM() CT function.

  * src/rtl/hbrandom.c
  * src/rtl/hbrand.c
    + hb_random_block() changed to use ARC4 backend.

  * examples/httpsrv/modules/showcounter.prg
    % hb_ntos()
2011-05-21 10:42:24 +00:00
Przemyslaw Czerpak
7fbc9044fe 2011-05-21 12:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/valtoexp.prg
    ! fixed typo in recent modifications causing RTE in HB_VALTOEXP()

  * harbour/contrib/hbwin/win_prn2.c
    ! allocate dynamic memory for print buffer in WIN_PRINTFILERAW()
      32KB variable on process execution stack is potential source of
      random GPFs in programs using deeper recursive calls and killer
      for MT mode when smaller thread stack is allocated.
    ! fixed potential data lost in WIN_PRINTFILERAW() when not all data
      is transfered in single WritePrinter() call
    ! interrupt printing in WIN_PRINTFILERAW() if WritePrinter() returns
      error

  * harbour/include/harbour.hbx
  * harbour/src/rtl/hbrandom.c
    ! restored my old fix - it was correct and the results over RAND_MAX
      range expected
    + added new PRG function:
         HB_RANDOMMAX() -> <nRAND_MAX>
2011-05-21 10:02:49 +00:00
Przemyslaw Czerpak
6c9f24b811 2011-05-20 17:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtwvt/gtwvt.c
    ! update font metrics after HB_GTI_FONTSIZE also when window is not
      active yet - without it all other calculations are broken

  * harbour/src/codepage/uc1250.c
  * harbour/src/codepage/uc1251.c
    * add some missing codes which are not officially defined but
      MS-Windows uses them - I've just check it reading unicode values
      from some fonts.
      It also look that some fonts have VGA glyphs attached only to control
      values at range 0-31 without their real Unicode representation. It's
      the reason why they are not shown in GTWVT UNICODE builds. Pritpal
      reported such problem recently.
      This can be quite easy resolved by replacing hb_cdpGetU16Disp()
      with hb_cdpGetU16() in gtwvt.c but it may cause that we lost control
      characters in some other fonts. I would like to ask MS-Windows users
      to makes some tests with such modified GTWVT and check if control
      code are well shown with different fonts. If not then we can add
      HB_GTI_* switch to enable/disable control codes to unicode values
      translation.
2011-05-20 15:11:19 +00:00
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