Commit Graph

120 Commits

Author SHA1 Message Date
Viktor Szakáts
e54b82f7dc various cleanups 2013-10-10 01:32:57 +02:00
Viktor Szakáts
6752936b57 use web url instead of obfuscated email 2013-10-09 20:08:24 +02:00
Przemysław Czerpak
a13480fa59 2013-10-01 16:43 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gttrm/gttrm.c
    ! fixed terminal ISO mode auto detection (broken in previous patch)
    % use position from UTF8/ISO mode detection instead of double asking
      terminal cursor position. With the minor cost of unknown initial
      column position we have faster start on slow connections.
2013-10-01 16:43:38 +02:00
Przemysław Czerpak
344bedfe68 2013-09-24 16:59 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbvm.h
  * src/vm/hvm.c
    * added new 7-th parameter fOverLoad to hb_vmRegisterSymbols() function.
      When it's TRUE then new public function symbols overload existing ones.

  * src/vm/runner.c
    ! use new fOverLoad parameter of hb_vmRegisterSymbols() function to
      overload existing functions (HB_HRB_BIND_OVERLOAD) instead of making
      local modifications in global symbol table. It fixes memory corruption
      when the same HRB module is reloaded with HB_HRB_BIND_OVERLOAD parameter.
      This was very old bug which has existed from the beginning when I added
      support for HB_HRB_BIND_* flags.
2013-09-24 16:59:52 +02:00
Przemysław Czerpak
65bf59cd3b 2013-09-20 15:42 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbcmd.c
    ! fixed dbRSelect() to be compatible with undocumented Cl*pper behavior:
      When parameter is missing, wrong or 0 then 1 is used as relation number
2013-09-20 15:42:35 +02:00
Przemysław Czerpak
c5db5dac72 2013-09-20 15:30 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbgtcore.c
    ! added explicit casting to strchr() result
2013-09-20 15:30:45 +02:00
Przemysław Czerpak
ff6d11c1d5 2013-09-19 09:52 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbgtcore.c
    + added support for GT parameters passed in //GT<NAME>
      parameter after ":", i.e. //GT<NAME>:<params>

  * src/rtl/gttrm/gttrm.c
    + added new parameters set in //GTTRM:<params>
         1) "NOPOS" - inform GTTRM that terminal does not support
            cursor position query: ESC [ 6 n
            At startup GTTRM asks terminal about cursor position
            and waits for answer for 2 seconds. If terminal doesn't
            support it then it's unnecessary delay at application
            startup.
         2) "UTF8" or "UTF-8" - force UTF-8 terminal output
            Useful when terminal does not support cursor position
            query so it cannot be used to detect automatically
            UTF-8 or ISO terminal mode.
         3) "ISO" - force ISO terminal output
         4) "XTERM", "LINUX", "PUTTY", "CONS" - force given terminal
            type
      f.e. working with Android Terminal Emulator it's good to use
         //GTTRM:UTF8,NOPOS
      because it still does not support cursor position query and
      LANG variable is not set.
2013-09-19 09:52:39 +02:00
Przemysław Czerpak
d5d33b921b 2013-09-16 15:11 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbsocket.c
    ! added missing error setting in hb_socketSelect() function
2013-09-16 15:11:24 +02:00
Przemysław Czerpak
de6a55cbec 2013-09-16 11:25 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* doc/cmpopt.txt
  * doc/xhb-diff.txt
    * typos

  * src/rtl/hbsocket.c
    * simplified hb_socketSelect() code

  * src/rtl/mtran.c
    ! updated HB_TRACE message
2013-09-16 11:25:27 +02:00
Przemysław Czerpak
118a95c425 2013-09-10 02:09 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/cdpapi.c
    ! added missing static in s_en_buffer declaration
    % faster code for unicode to ASCII CP437 control codes translation
2013-09-10 02:09:46 +02:00
Przemysław Czerpak
e5584850e7 2013-09-09 20:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/cdpapi.c
    * use CP437 control codes in translations from unicode to ASCII

  * src/rtl/gtwvt/gtwvt.c
    * added support for key code typed using ALT + <ASCII_VALUE_FROM_KEYPAD>

  * tests/gtkeys.prg
    * added parenthesis to clarify expression order
2013-09-09 20:54:11 +02:00
Przemysław Czerpak
87ddf9c110 2013-09-09 15:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/dlmalloc.c
    * use __builtin_clz() and __builtin_ctz() only with GCC 3.4 or newer.
      Problem reported by David Arturo Macias Corona and OS2 GCC3.3.5.

  * README.md
    + added link suggested by David to os2gcc454 from Paul Smedley

  * src/rtl/gtstd/gtstd.c
    + accept keyboard input from redirected file on platforms without
      dedicated code for keyboard support in GTSTD
2013-09-09 15:54:22 +02:00
Przemysław Czerpak
a87963b362 2013-08-28 17:18 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbsocket.c
    ! use sock_errno() instead of errno in OS2 WATCOM builds.
      It fixes few problems with socket code using errno value, i.e.
      hb_socketConnect() with timeout.
2013-08-28 17:18:20 +02:00
Przemysław Czerpak
f9362d3d4d 2013-08-26 20:56 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/compiler/hbdbginf.c
    ! fixed module names generated for debugger line info when user compiles
      files passing path with drive letters, i.e. hbmk2 c:\temp\test.prg
      Thanks to Anton Ryzhov for the information about the problem.
2013-08-26 20:56:58 +02:00
Przemysław Czerpak
0b4c999bb5 2013-08-26 15:51 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbsocket.c
    ! fixed hb_socketConnect() with timeout in DOS Watt-32 builds.
      Watt-32 sets socket error to EISCONN when connection is established.
2013-08-26 15:51:57 +02:00
Przemysław Czerpak
ea60542664 2013-08-23 14:25 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/fstemp.c
    ! fixed casting for DOS C++ builds

  * config/dos/watcom.mk
    ! moved CRTL library to the end of linked library list - some
      other libraries may overload some C RTL functions or symbols,
      f.e. error descriptions in WATT-32

  * utils/hbmk2/hbmk2.prg
    ! added hbpmcom library to linked library list in DOS builds
    ! fixed WATT-32 support in DOS builds to work in cross compilation
      environment
    ! link WATT-32 library before C RTL
    ! fixed simultaneous compilation with -jobs=N when N >= 2
      The same hash array (hReplace) was shared between different threads
      and each thread tried to modify it overloading their own parameters.
      It was causing different side effects, i.e. all threads compiled
      the same .c file instead of their own ones or HBMK2 was crashing
      due to memory corruption.
    * always join all started threads
2013-08-23 14:25:14 +02:00
Przemysław Czerpak
46d64612b5 2013-08-22 19:06 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbct/getsecrt.prg
    ! applied Clipper compatibility fix to GetSecret() by Pavel Tsarenko

  * src/common/hbdate.c
    * removed explicit _BSD_SOURCE definition - it was confusing our
      code used to detect localtime_r() support and is not necessary
      if we do not use extended fields of tm structure

  * src/rtl/mtran.c
    * updated to show strict Clipper compatible behavior - Clipper
      ignores 3-rd cSoftCR parameter if 2-nd one cHardCR is not given
      (strict compatibility is covered by HB_CLP_STRICT macro and
      disabled by default - undocumented feature which may confuse
      users)
    % minor optimization
2013-08-22 19:06:06 +02:00
Przemysław Czerpak
e8c7f2067d 2013-07-18 02:24 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbdate.h
  * src/common/hbdate.c
    + added new C functions:
         double hb_timeLocalToUTC( double dTimeStamp );
         long hb_timeStampUTCOffset( int iYear, int iMonth, int iDay,
                                     int iHour, int iMinutes, int iSeconds );
    ; warning: some C RTLs may not correctly detect Summer time for all past
               dates in few countries.

  * include/harbour.hbx
  * src/rtl/dateshb.c
    + added new PRG function:
         hb_TSToUTC( <tsLocal> ) -> <tsUTC>
    + added support for optional timestamp parameter in hb_UTCOffset()
      function, current syntax is:
         hb_UTCOffset( [ <tsLocal> ] ) -> <nSeconds>

  * contrib/hbtip/hbtip.hbx
  * contrib/hbtip/utils.c
    + added new PRG function:
         tip_FileNameMimeType( <cFileName> ) -> <cMimeType>
      It's a wrapper to old C function s_findFileMimeType()
      TODO: replace few independent mimetype functions by single one.
    ! fixed tip_FileMimeType() to not call hb_fsClose() or any other FS
      function with wrong handler.
    ! fixed tip_TimeStamp() using hb_timeStampUTCOffset() instead of
      hb_timeUTCOffset() to correctly calculate UTC offset for dates
      different then current one.
    ! decode time passed as numeric second() value in 2-nd parameter of
      tip_TimeStamp() only when the 1-st one contains pure date value.
2013-07-18 02:24:58 +02:00
Przemysław Czerpak
084ab0bbe2 2013-07-08 23:34 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgentry.c
    + added protection against wrong parameters passed to __dbgDelBreak()

  * src/debug/debugger.prg
    + implemented display history for command window.
      This modification also fixes clearing command window when focus is
      changed.
    + added support for new commands:
         DELETE ALL BP
         DELETE BP <nNumber>
         LIST BP
    * replicated Clipper compatible command line shortcuts
    ! send :RefreshAll instead of :RefreshCurrent to source code window
      when break point changed
    ; TODO: add support for window resizing and repositioning. Commands
            like LIST BP are in practice unusable in 3 line command window.

  * src/rtl/console.c
    % minor optimization
2013-07-08 23:34:20 +02:00
Przemysław Czerpak
b2dd9d5923 2013-07-08 17:09 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgtmenu.prg
    ! allow to chose current menu item by its hotkey

  * src/debug/dbgtmitm.prg
    % eliminated dummy hb_DispOutAtBox() for not marked options

  * src/debug/debugger.prg
    ! keep RunAtStartup flag synced with menu
    ! fixed options decoding from init.cld file.
      Thanks to Franček Prijatelj for locating the problem though fix
      should be a little bit different.

  * src/debug/tbrwtext.prg
    ! respect LineNumbers on/off setting

  * src/rtl/console.c
    ! call hb_gtFlush() at the end of hb_DispOutAtBox() - it fixes
      different side effects in code using hb_DispOutAtBox().
2013-07-08 17:09:36 +02:00
Przemysław Czerpak
fa0cdfcd5d 2013-07-08 12:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbct/ctwfunc.c
    ! extract box frame string passed to WBOX() using BOX CP

  * src/vm/procaddr.c
    ! added hb_extIsNil() to hb_vmProcAddress() - it fixes PCODE DLLs
      using [HB_]ISNIL() macro and linked with hbmaindllp library or
      other wrapper using hb_vmProcAddress()

  * src/vm/codebloc.c
    - removed old comment which was never true in real HVM MT model

  * ChangeLog.txt
    ! typo: tanks -> thanks ;)
2013-07-08 12:54:43 +02:00
Phil Krylov
1d79a39621 2013-07-05 20:02 UTC+0400 Phil Krylov (phil a t newstar.rinet.ru)
* src/debug/debugger.prg
    % Don't save debugger window positions if user did not change them as the
      original debugger behaves.
    + Support arguments to Options Save and Options Restore debugger commands
      as the original debugger does.
2013-07-05 20:02:45 +04:00
Phil Krylov
2f28dd8d03 2013-07-05 19:34 UTC+0400 Phil Krylov (phil a t newstar.rinet.ru)
* src/debug/debugger.prg
    ! Maintain fixed window logical order as the original debugger does.
    ! Load debugger settings in two steps: before and after debugger UI activation.
    ! Save watchpoints to the settings file.
2013-07-05 19:34:53 +04:00
Phil Krylov
e48674f094 2013-07-05 17:50 UTC+0400 Phil Krylov (phil a t newstar.rinet.ru)
* src/debug/debugger.prg
    ! Set debugger activity flag before restoring settings.
2013-07-05 17:50:54 +04:00
Phil Krylov
8184133ea1 2013-07-05 17:05 UTC+0400 Phil Krylov (phil a t newstar.rinet.ru)
* src/debug/debugger.prg
    ! Fixed a typo in my last commit.
    ! Make the debugger show itself before it starts restoring its settings.
2013-07-05 17:15:13 +04:00
Przemysław Czerpak
6153da2b05 2013-07-05 14:12 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgentry.c
    ! added missing casting

  * src/debug/debugger.prg
    + show in call stack references to code compiled without debug info

  * src/rtl/itemseri.c
    * ignore HB_HASH_RESORT flag during hash serialization
2013-07-05 14:12:46 +02:00
Phil Krylov
613ddf38cb 2013-07-05 04:35 UTC+0400 Phil Krylov (phil a t newstar.rinet.ru) 2013-07-05 04:44:55 +04:00
Przemysław Czerpak
79203c5939 2013-07-05 00:39 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgentry.c
    ! fixed line number setting in debugged coeblocks.
      Tanks to Teo for detail information about the problem.
2013-07-05 00:39:39 +02:00
Przemysław Czerpak
48137e6a61 2013-07-04 18:09 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgtwin.prg
  * src/debug/debugger.prg
    ! use explicitly INKEY mask in INKEY() calls to avoid interactions
      with user code

  * src/debug/debugger.prg
  * src/debug/tbrwtext.prg
    % removed code used for internal breakpoints handling - it was
      redundant and all necessary information can be easy and fast
      accessed directly from dbgentry.c. Current code is smaller,
      faster and we do not have to worry about keeping break point
      information synchronized between C level debugger internals,
      HBDebugger object and HBBrwText object.
    ! changed source code window navigation key to work like in
      Clipper debugger
    ! changed source lines displaying to work like in Clipper debugger -
      with HOME/END scrolling code horizontally it's not such important
      to always see line numbers
    ! redirect few missing K_CTRL_* keys to active window it fixes key
      navigation in some of them
    ! redirect K_ENTER to command window if command is not empty just
      like in Clipper debugger

  * src/rtl/inkeyapi.c
    ! do not convert ASCII 127 to character in hb_inkeyKeyString()
      and HB_KEYCHAR()
2013-07-04 18:09:47 +02:00
Przemysław Czerpak
ebcbbfd518 2013-07-04 05:33 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/debug/dbgentry.c
    + added new PRG functions:
         __dbgIsBreak( <pDbg>, <cModule>, <nLine> ) -> <nPos>
         __dbgGetBreakPoints( <pDbg> ) -> <aBreakPoints>

  * src/debug/debugger.prg
    - removed old and long time unused PRG function __dbgAltDEntry()

  * src/rtl/hbproces.c
    * changed returned status when execvp() fails, -1 should give
      maximal exit code on given platform (i.e. 255)
2013-07-04 05:33:22 +02:00
Przemysław Czerpak
ab3f6109c1 2013-07-03 12:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbapidbg.h
  * src/debug/dbgentry.c
  * src/debug/debugger.prg
    + added new C function hb_dbgGetModuleName() - it returns module name
      used to register module in HVM. In current version it only strips
      path part though in the future it may use some more advanced code
      which allow to debug modules with the same name but different paths
      in single application and such extension will be local to core debug
      code if upper level debugger uses hb_dbgGetModuleName()
    + added new PRG function __DBGGETMODULENAME() - it's wrapper to
      hb_dbgGetModuleName()
    + added new PRG function __DBGMODULEMATCH()
    ! use __DBGMODULEMATCH() instead of hb_FileMatch() and strip_path()
    ! eliminated strip_path() from PRG code and use hb_dbgGetModuleName()
      in C code in places where it's necessary
    ! replaced few strcmp() used to compare module names with
      FILENAME_EQUAL()
    ; above modification may fix few potential problem with breakpoints
      in debugger on some platforms if user uses different paths for
      debugger and compilers.
    ! eliminated hack with memvar/field name copy in watch points,
      it also fixes memory leak when fields are used in watch points.
    % replaced few DO CASE with SWITCH
2013-07-03 12:14:50 +02:00
Przemysław Czerpak
e888c83011 2013-06-11 20:26 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbpp.h
  * src/pp/ppcore.c
    * replaced compile time macro HB_PP_MULTILINE_STRINGS with
      runtime #pragma setting, i.e.:
         #paragma multilinestrings = on

  * src/vm/hashes.c
    % resize index during hash arrays sorting, i.e. when strict order
      is disabled or user call HB_HSORT() function
    ! fixed typo in timestamp value comparison - in practice only date
      part was significant
    ! fixed new code I added recently for resorting hash arrays with
      strict order
2013-06-11 20:26:16 +02:00
Przemysław Czerpak
d55d57c622 2013-06-10 16:59 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtwvt/gtwvt.c
    * removed not longer user K_Ctrl[] array

  * contrib/gtqtc/gtqtc1.cpp
    ! fixed MT protection to work with recursive calls
      (such call can appear after ALT+ENTER)

  * doc/xhb-diff.txt
    * updated "HASH ARRAYS" paragraph

  * config/lang2po.hb
  * contrib/hbamf/amfdec.c
  * contrib/hbamf/amfenc.c
  * contrib/hbexpat/tests/tohash.prg
  * contrib/hbmxml/core.c
  * contrib/hbnetio/utils/hbnetio/hbnetio.prg
  * contrib/hbnetio/utils/hbnetio/netiomgm.hb
  * contrib/hbwin/hbolesrv.c
  * contrib/hbwin/tests/olesrv1.prg
  * contrib/hbwin/tests/olesrv2.prg
  * contrib/make.hb
  * contrib/xhb/xhbhasha.c
  * src/rtl/hbdoc.prg
  * src/rtl/hbini.prg
  * src/rtl/hbjson.c
  * tests/big5_gen.prg
  * tests/uc16_gen.prg
  * utils/hbmk2/hbmk2.prg
    * removed keeporder setting - now it's default for newly
      created hash arrays

  * contrib/gtwvg/gtwvg.hbx
    * added missing functions
2013-06-10 16:59:13 +02:00
Przemysław Czerpak
9b656834bc 2013-06-07 11:38 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/itemseri.c
    ! force resorting deserialized hash arrays

  * src/rtl/tgetlist.prg
    ! applied fix reported by Tony: typo in INS msg
2013-06-07 11:38:35 +02:00
Przemysław Czerpak
6d02d64878 2013-06-06 14:03 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/hashes.c
    ! added missing size update after hash array resorting
2013-06-06 14:03:49 +02:00
Przemysław Czerpak
2a22103f05 2013-06-05 15:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/hashes.c
    ! remove index when natural order is disabled by
         hb_hKeepOrder( hVal, .f. )
    ! do not update index when item is deleted and hash array
      is marked to be resorted
    % few minor optimizations

  * contrib/sddoci/sddoci.hbc
    * use ocilib as library name in Linux builds.
    ; I do not know on which platforms ocilib[wma] is used but it's
      possible that this modification should be done also for other
      platforms not only for Linux.
2013-06-05 15:54:01 +02:00
Przemysław Czerpak
ad65425d8a 2013-06-05 11:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbgtcore.c
    ! fix for recent modification
2013-06-05 11:01:40 +02:00
Przemysław Czerpak
09298f8f31 2013-06-05 10:37 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtwvt/gtwvt.c
    ! added workaround for AltGR and German keyboard

  * src/rtl/inkeyapi.c
    ! added missing 'static' in function declaration

  * src/rtl/hbgtcore.c
    ! added workarounds for HB_GTI_COMPAT_BUFFER switched to .F. by
      default.

  * tests/gtkeys.prg
    * switched to UTF8 CP by default
    + extended keycode information in Harbour
2013-06-05 10:37:34 +02:00
Przemysław Czerpak
c44379e66e 2013-06-04 20:25 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/pp/hbpp.c
    ! fixed memory leak due to unnecessary hb_strdup()
    * respect UTC offset in HB_VER_REVID created from ChangeLog entry
2013-06-04 20:25:24 +02:00
Przemysław Czerpak
8b963cf79d 2013-06-04 14:20 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
    * added workaround for missing MT synchronization in QT for XLIB
      QT was designed to use screen widgets only in main thread so
      it's only workaround which helps but I cannot guaranti

  * contrib/hbmzip/mzip.c
    * workaround for wrong st_mtime type in struct stat on android

  * src/rtl/hbsocket.c
    * do not check if IPPROTO_IP is defined, on some platforms like
      android it's only enum type. Warning if it exploits some problems
      on some seldom used platforms/compilers then please report it.

  * src/vm/hvm.c
    * minor

  * package/mpkg_ver.sh
    * do not use bash extensions

  * package/harbour-wce.spec.in
  * package/harbour-win.spec.in
  * package/harbour.spec
  * package/mpkg_rpm.sh
  * package/mpkg_rpm_wce.sh
  * package/mpkg_rpm_win.sh
    * removed bash from dependencies list
2013-06-04 14:20:50 +02:00
Przemysław Czerpak
d900dc5b1c 2013-06-03 16:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbtoken.c
    + added support for passing token parser parameters as bit field number.
      The goal is to replace last to parameters with single bit field which
      allows to set many different parsing aspects instead of adding many
      new parameters.
    + added support for reverted apostrophes quoting: `a b c`
    ; TODO: add constant values to control parser in token functions

  * utils/hbmk2/hbmk2.prg
    ! respect reverted apostrophes quoting in options read from .hbp/.hbm
      files.
    ! do not ignore tool parameters passed in -*flags= hbmk2 params if
      they do not start with '-'. It resolves problems with shells which
      need special quoting to pass parameters, i.e. with both modifications
      it's possible to use in hbp files dynamic parameters encapsulated in
      different forms, depending on used platform, shell and parameter type,
      i.e. parameters are passed as set of separated arguments:
         -cflag=`config-tool1`
      or paramters are passed as single argument:
         -cflag="`config-tool2`"
      or parameters are passed in file which name shows config-tool3:
         -cflag="@`config-tool3`"
      In short words now things like:
         -cflag=`pkg-config --cflags gtk+-3.0`
      will work correctly with .hbp files
2013-06-03 16:45:25 +02:00
Przemysław Czerpak
e0238b29ce 2013-05-29 15:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/hashes.c
    ! fixed and optimized reordering when KEEPORDER flag is cleared
      in recent commit
2013-05-29 15:14:27 +02:00
Przemysław Czerpak
c27bb280a0 2013-05-29 08:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/hashes.c
    % changed sorting algorithm for hash arrays which keeps item order.
    % do not resort hash arrays when KEEPORDER flag is cleared but use
      existing internal index to create new order.
    * changed the behavior of hb_hSort() function. Now for hash arrays
      which keep item order it changes internal item pair position sorting
      them. The sort order depends on binary and case sensitivity hash
      array flags.

  * src/vm/hvm.c
    ! for literal hash array with repeated keys store the last item
      with the given key instead of the first one. It restores
      previous behavior.

  * contrib/rddads/rddads.hbx
    + added AdsSetIndexDirection()

  * contrib/rddads/adsfunc.c
    ! fixed formatting of AdsSetIndexDirection()
2013-05-29 08:53:45 +02:00
Tamas TEVESZ
b6ad77f6e3 2013-05-28 01:59 UTC+0200 Tamas TEVESZ (ice extreme.hu)
* src/vm/dynlibhb.c
    * Report dlopen() errors at HB_TR_LEVEL_DEBUG
  * ChangeLog.txt
    ! Put in a changelog entry I have completely missed previously.
2013-05-28 02:04:55 +02:00
Przemysław Czerpak
3713e7046e 2013-05-23 18:16 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbapi.h
  * src/vm/hvm.c
    * keep natural internal order in newly created hashes
2013-05-23 18:16:04 +02:00
Tamas TEVESZ
4469d28b70 2013-05-16 22:34 UTC+0200 Tamas TEVESZ (ice extreme.hu)
* contrib/3rd/sqlite3/sqlite3.hbp
    * Disable on Minix (no MAP_SHARED which is needed by SQLite WAL);
      (Hopefully a temporary measure.)
  * src/rtl/filesys.c
    ! Disable hb_fsPipeUnblock() on Minix;
      makes hb_processRun() work. Thanks to Przemek for the idea.
2013-05-16 22:39:24 +02:00
Przemysław Czerpak
ad8fcef5ae 2013-05-15 19:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/pp/hbpp.c
    ! fixed ChangeLog file name detection broken after adding .txt
      extension.

  * src/rtl/hbproces.c
    + added support merged stdout and stderr output in hb_fsProcessRun()

  * src/rtl/hbprocfn.c
    + added support merged stdout and stderr output in hb_processRun()
      PRG function. To extract merged stdin and stdout application output
      it's enough to pass by reference in 3-rd and 4-th parameters the same
      variable, i.e.:
         nResult := hb_processRun( cCommand,, @cOutErr, @cOutErr )

  * utils/hbmk2/hbmk2.prg
    ! use hb_processRun() intead of hb_processOpen() to extract merged
      stdout and stderr output. It fixes all builds in which hb_processOpen()
      does not exists due to some system limitations like missing pipes,
      i.e. DOS builds.

  * src/vm/fm.c
    ! fixed typo in DOS builds

  * src/rtl/gtwin/gtwin.c
    ! ignore mouse position reported in mouse wheel events which use
      screen based coordinates instead of console window ones.
2013-05-15 19:54:49 +02:00
Przemysław Czerpak
1062ed644b 2013-05-10 08:28 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbgtinfo.ch
    + added HB_GTI_REDRAWMAX
      It sets maximum number of unchanged neighboring chars in redrawn
      line. It may help to optimize screen updates in some GTs.

  * include/hbgtcore.h
  * src/rtl/hbgtcore.c
  * contrib/hbct/ctwin.c
    + respect HB_GTI_REDRAWMAX in default REDRAWDIFF() GT methods.

  * contrib/gtqtc/gtqtc1.cpp
    ! added protection against font resizing for degenerated console
      window size.
    % set HB_GTI_REDRAWMAX to 1

  * src/rtl/gtwvt/gtwvt.c
    ! translate screen base mouse wheel cords to window based ones.
    % set HB_GTI_REDRAWMAX to 1

  * src/rtl/gttrm/gttrm.c
    % set HB_GTI_REDRAWMAX to 8

  * src/rtl/gtwin/gtwin.c
    % set HB_GTI_REDRAWMAX to 4
2013-05-10 08:28:56 +02:00
Przemysław Czerpak
79539c96c2 2013-05-08 09:57 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
    * minor: removed {}

  * src/rtl/gtwin/gtwin.c
    * reenabled code to get/set palette in GTWIN
    ! fixed console window resizing when palette is set
    ! do not change default console palette at application startup.
      It's Clipper compatible behavior which allows to inherit colors
      set by some initialization program executed before or by some
      parent processes which control console environment, i.e. other
      Harbour GTWIN applications.
    % reset palette on exit only if it was changed.
    + return predefined MS-Windows console palette also in systems where
      GetConsoleScreenBufferInfoEx() is not available.

  * src/rtl/gtwvt/gtwvt.c
    ! use predefined BLACK color for building box character bitmaps
      instead of palette color[ 0 ] because user can redefine palette.
2013-05-08 09:57:51 +02:00
Tamas TEVESZ
fc10ed0458 2013-04-30 12:30 UTC+0200 Tamas TEVESZ (ice extreme.hu)
* bin/3rdpatch.hb
    * Change diff files to use Unix-style path separators;
      Thanks to Alexey Myronenko for testing.
  * src/3rd/jpeg/jpeg.dif
  * src/3rd/pcre/pcre.dif
  * src/3rd/tiff/tiff.dif
    * Change path separators to Unix-style
2013-04-30 12:34:37 +02:00