Commit Graph

14317 Commits

Author SHA1 Message Date
Mindaugas Kavaliauskas
508e2ec93f 2010-06-10 19:12 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/examples/httpsrv/uhttpd.prg
  * harbour/examples/uhttpd2/umain.prg
    * optimized hb_socketRecv() calls
    * optimized (removed) hb_socketSelect() calls, current API
      has timeout parameter and make things simple

  * harbour/examples/commouse/commouse.prg
    ! fixed error reporting (missing hb_comGetError()) parameter

  * harbour/include/hbsocket.ch
    * adjusted comment text

  * harbour/contrib/hbtpathy/telepath.prg
    ! fixed missing nTimeout parameter in tp_send()

  * harbour/source/rtl/hbcomhb.c
    ! fixed typo in hb_comSend()
    ! fixed hb_storni() paramter order bugs
2010-06-10 16:12:39 +00:00
Przemyslaw Czerpak
bf5511aa05 2010-06-10 18:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbclass.ch
    ! added missing TIMESTAMP class to ASSOCIATE CLASS command,
      thanks to Alex Strickland for the information
2010-06-10 16:00:41 +00:00
Viktor Szakats
93d1af68b2 2010-06-10 14:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/plug_moc.prg
  * utils/hbmk2/hbmk2.prg
    + Implemented separate filename notation setting for scripts 
      and cmdlines (just like with filename escaping).
      This should aid the win/bcc on linux cross-build scenario.
      (not testing done though)
2010-06-10 12:25:16 +00:00
Viktor Szakats
d7d345430e 2010-06-10 11:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    * Minor correction.
    ; Testing harbour-commits list.
2010-06-10 09:55:26 +00:00
Przemyslaw Czerpak
4fc65dce40 2010-06-10 11:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
    * minor formatting

  * harbour/doc/xhb-diff.txt
    + added section about pre/post incrementation/decrementation and
      <op>= operators.
      I think that you may find it interesting. I do not remember if I
      documented it in the past and it's important feature which allows
      Harbour programmers safely use pre/post ++/-- and <op>= operations
      for complex expressions with side effects.
2010-06-10 09:25:19 +00:00
Viktor Szakats
f3321fd140 2010-06-10 10:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added msvc version autodetection (works similarly
      to the .mk solution)
2010-06-10 08:03:19 +00:00
Viktor Szakats
d16d8613d6 2010-06-10 09:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/win/bcc.mk
    ! Left bug cleaned from prev commit.
2010-06-10 07:46:59 +00:00
Viktor Szakats
129a3ccdaf 2010-06-10 09:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    ! Reverted one optimization from yesterday's late
      night programming jam session.

  * contrib/hbqt/hbqt_base.cpp
    * Renamed HBQT_ISQTSTATICLINKED() to HBQT_ISSTATICLINK().
      (enough to have one 'QT' in the name)

  * config/win/bcc.mk
    + More changes targeting bcc support under WINE scenario.
    ; Here it now works "out of the box"

  * INSTALL
    + Added example for win/bcc build under WINE.
      (kudos go to Tamas Tevesz for the setup example)
    + Added win/bcc to supported cross(ish)-builds.

  * examples/httpsrv/uhttpd.prg
    ! Fixed bogus newlines in RTE ALERT() windows.
2010-06-10 07:44:15 +00:00
Pritpal Bedi
22f35559b7 2010-06-09 22:25 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbqt/qth/QHideEvent.qth
  + contrib/hbqt/qth/QShowEvent.qth
  + contrib/hbqt/qth/QWindowStateChangeEvent.qth
    + Added new classes.
  + contrib/hbqt/qtgui/QHideEvent.cpp
  + contrib/hbqt/qtgui/QShowEvent.cpp
  + contrib/hbqt/qtgui/QWindowStateChangeEvent.cpp
  + contrib/hbqt/qtgui/TQHideEvent.prg
  + contrib/hbqt/qtgui/TQShowEvent.prg
  + contrib/hbqt/qtgui/TQWindowStateChangeEvent.prg
    + Auto generated.

  * contrib/hbqt/qtgui/filelist.mk
    + Classes auto added.

  * contrib/hbide/resources/fullscreen.png
    + Added image for trayicon context menu.

  * contrib/hbqt/generator/qt45.qtp
    + Added new classes.

  * contrib/hbqt/hbqt.ch
    + Added QSystemTrayIcon_* constants.

  * contrib/hbqt/hbqt.h
    + Constants for new classes.

  * contrib/hbqt/hbqt_base.cpp
    + HBQT_ISQTSTATICLINKED() function provided by CarozoDeQuilmes.

  * contrib/hbqt/hbqt_garbage.h
    * Auto generated.

  * contrib/hbqt/hbqt_hbslots.cpp
  * contrib/hbqt/hbqt_hbslots.h
    + Signal/Slots for QSystemTrayIcon():activated(...).

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideobject.prg
    + Implemented: minimize action on hbIDE window landing in system tray 
      instead of statusbar. For now this is the default but provision is 
      in place to base it on user request. Once minimized in system tray,
      left-click will restore the window and icon in tray will disappear.
      Right-click on tray icon will bring forward a menu with "Show" and 
      "Exit" options. Exit is equivalant to toolbar's exit icon.

      This feature will be available only on those OSes which support 
      system tray area. Please test on all aupported systems. I am also 
      interested to know which other actions can make-up in the 
      icon's context menu.
2010-06-10 05:45:55 +00:00
Viktor Szakats
5150ffda36 2010-06-10 02:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/poccarm.mk
  * config/win/xcc.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/icc.mk
    * Cleanups/formatting. Also Embarcadero patch by Tamas Tevesz.
2010-06-10 00:37:10 +00:00
Viktor Szakats
0618886c04 2010-06-10 02:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    % Minor optimization, in bcc location detection. I hope.
    + Changed autodetection to look for fixed .exe extension
      for tools which have no native *nix versions, so their
      name always ends with .exe regardless of host platform.
      This should make these tools usable under WINE.

  * config/win/bcc.mk
    + Attempt to better support bcc on linux build scenario,
      by using backslash escaping in this case.

  * utils/hbmk2/hbmk2.prg
    * Cleaned up to use hard-coded .exe extensions in autodetection 
      code for tools which have no other version. (syncing with 
      above GNU Make change). This has no effect yet.

  * config/global.mk
  * utils/hbmk2/hbmk2.prg
    ! xcc.exe -> xCC.exe
2010-06-10 00:34:12 +00:00
Viktor Szakats
70d4cc71ee 2010-06-10 02:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    ! Attempt to fix rare case when Windows cross-build on Linux
      platform wrongly changed HB_BUILD_SHARED mode on. IOW now
      automatic HB_BUILD_SHARED defaulting logic (based on install
      location) only kicks in if the target platform is *nix.
      Tamas could you please retest it?
2010-06-10 00:04:20 +00:00
Przemyslaw Czerpak
fc8b32088e 2010-06-10 01:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcom.c
    * use one static function to set timeouts for read/write operations
      in Windows builds
2010-06-09 23:02:52 +00:00
Przemyslaw Czerpak
011da193bf 2010-06-10 00:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
    + allow to open DBF files with 0x07 and 0x87 signature created by
      CA-VO DBFNTX when ANSI encoding is enabled.
      Thanks to Vitomir Cvitanovic for CA-VO tests.
      Warning! After any modifications in such files Harbour DBF* RDDs
      will correct above signatures to standard DBASE ones (0x03 and 0x83).
2010-06-09 22:27:14 +00:00
Viktor Szakats
b602644e09 2010-06-10 00:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* examples/uhttpd2/umain.prg
  * examples/uhttpd2/uhttpd2.hbp
  - examples/uhttpd2/socket.c
    + Changed to use core SOCKET API.

  * examples/uhttpd2/run.prg
    + Displays port it listens on.

  * examples/httpsrv/uhttpd.prg
    + Using hbsocket.ch constant instead of local one.
2010-06-09 22:04:01 +00:00
Viktor Szakats
ea7e1d15b9 2010-06-09 23:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsocket.ch
    + Added address info array positions.

  * src/rtl/hbsockhb.c
    - Deleted spaces @ EOL.

  * contrib/hbtpathy/telepath.prg
  * contrib/hbcomm/tests/test.prg
  * contrib/hbcomm/hbcomm.prg
  * contrib/hbsms/hbsms.prg
    ! Fixed HB_COMRECV() which requires a preallocated string
      to be passed.
      (no testing done, please review me, I'm almost sure I've
      made mistakes here)

  * examples/httpsrv/uhttpd.hbp
  * examples/httpsrv/uhttpd.prg
  - examples/httpsrv/socket.c
    + Changed to use new natic SOCKET API.
2010-06-09 21:38:32 +00:00
Viktor Szakats
b4fb0856f5 2010-06-09 22:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Tuned watcom filename escaping behavior:
      It will now use *nix notation on *nix builds.
      It will now use double quoting on Windows builds.
      It will now use single quoting in script files on all builds.
      No quoting on other platforms. [ watcom is special because
      each platform native compiler can create builds for other
      platforms, so we must use platform native fn quoting. ]

      This should in theory (hopefully) fix the remaining
      combinations for watcom, though I didn't test any
      of these. [ The only exception is using watcom Windows
      .exe via WINE on *nix systems. But that seems a little
      bit exotic of an option ;)
      Oh for testing pass some source filenames with spaces
      in them.
   ; TOCHECK: Whether watcom script files (@<fn>) use the same
              single quoting ('filename') on all platforms.
              For some reason so far it was only used for 
              win targets, so I may have broken it, if it 
              was done for good reason.
2010-06-09 20:42:12 +00:00
Viktor Szakats
a4b611ad44 2010-06-09 21:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to use *nix-style filename escaping when calling
      Windows cross tools only available via WINE (bcc, msvc*, pocc).
    ! Better *nix-style char escaping in filenames.
2010-06-09 19:46:38 +00:00
Viktor Szakats
164810c117 2010-06-09 20:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    ! Typos in last commit log.

  * contrib/hbqt/plug_moc.prg
  * utils/hbmk2/hbmk2.prg
    ! Fixed to use proper filename notation also in plugins.

  * package/mpkg_win.nsi
  * package/winuni/mpkg_win_uni.nsi
    * Minor cleanups.
2010-06-09 18:53:18 +00:00
Viktor Szakats
c8a32bfc8c 2010-06-09 19:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Quite big commit aiming to clean path forming in different
      situations. After this is change it should be more or less
      true that internally hbmk2 always uses native path format,
      it should accept _any_ format regardless of platform,
      and it should convert filenames to proper format only when
      calling external compiler tools, according to their specific
      taste.
      F.e. this should fix problems when doing Windows cross-build
      on *nix systems, with watcom, or other compilers (except
      mingw) which has native compiler. It should continue to
      work with WINE based on compilers in similar situations.
      There is one specific exception when passing around
      filenames as part of options. In this case hbmk2 cannot do
      too much magic, so try to avoid it.
      Though I never actualluy tried this latter case.
      Please test it, regressions are possible. I'd be happy to 
      see stress tests with passing various combination of pathseps 
      and watching -trace output whether everything is properly 
      converted to right format.
    + Will now convert filenames to Cygwin format for Cygwin
      targets.
    ! Fixed to accept .hbi files without '@' prefix.

  * config/postinst.prg
    % Do not add '@' prefix when referring to .hbi files.

  * src/vm/extend.c
    ! Fixed TRACE message of new hb_parnintdef() function.

  * src/rtl/hbcomhb.c
    * Minor correction to one function description in comment.

  * src/rtl/hbsocket.c
    * Minor formatting.

  * include/hbcom.ch
    + Added comments.
    * Formatting.
    + Added comment that code is used by .c code.

  * contrib/hbtpathy/telepath.prg
    * Rewritten to use native HB_COM*() API (instead of hbct
      specific COM_() one).
    + tp_send() code rewritten to use core timeout functionality.
    + Implemented formerly disabled tp_ctrldtr() function.
      (pls review it)
    % FetchChars() internal function simplified.

  * contrib/hbcomm/hbcomm.prg
    * Rewritten to use native HB_COM*() API (instead of hbct
      specific COM_() one).

  * contrib/hbsms/hbsms.prg
    * Rewritten to use native HB_COM*() API (instead of hbct
      specific COM_() one).
    * Receive code rewritten to rely on core timeout functionality
      instead of rolling local implementation.

  ; I didn't make any tests with API converted COM code, so please
    review and test these changes.

  * contrib/hbtpathy/hbtpathy.hbc
  * contrib/hbcomm/hbcomm.hbc
  * contrib/hbsms/hbsms.hbc
    - Deleted hbct dependency.

  * INSTALL
  * package/winuni/RELNOTES
    * QT 4.6.2 -> 4.6.3
2010-06-09 17:57:34 +00:00
Mindaugas Kavaliauskas
ff58339996 2010-06-09 18:42 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/examples/commouse/commouse.prg
    * added $id$
2010-06-09 15:43:10 +00:00
Mindaugas Kavaliauskas
f6ad555233 2010-06-09 18:37 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/src/rtl/hbcomhb.c
  * harnour/src/rtl/Makefile
  * harbour/include/hbextern.ch
    + added wrapper functions for Serial communication port API
      The list of exported functions is:
        HB_COMCLOSE( nPort )  --> lSuccess
        HB_COMDISCARDCHAR( nPort, nChar | cChar ) --> lSuccess
        HB_COMERRORCHAR( nPort, nChar | cChar ) --> lSuccess
        HB_COMFLOWCHARS( nPort, nXONchar | cXONchar, nXOFFchar | cXOFFchar ) --> lSuccess
        HB_COMFLOWCONTROL( nPort, @iValue, nFlow ) --> lSuccess
        HB_COMFLOWSET( nPort, nFlow ) --> lSuccess
        HB_COMFLUSH( nPort, [ nType = HB_COM_IOFLUSH ] ) --> lSuccess
        HB_COMGETDEVICE( nPort )  --> cDeviceName
        HB_COMGETERROR( nPort ) --> nError
        HB_COMGETOSERROR( nPort ) --> nError
        HB_COMINIT( nPort, nBaud, cParity, nSize, nStop ) --> lSuccess
        HB_COMINPUTCOUNT( nPort ) --> nCount
        HB_COMINPUTSTATE( nPort ) --> nState
        HB_COMLASTNUM() --> nLastPortNumber
        HB_COMLSR( nPort, @nValue ) --> lSuccess
        HB_COMMCR( nPort, @nValue, nClear, nSet ) --> lSuccess
        HB_COMMSR( nPort, @nValue ) --> lSuccess
        HB_COMOPEN( nPort ) --> lSuccess
        HB_COMOUTPUTCOUNT( nPort ) --> nCount
        HB_COMOUTPUTSTATE( nPort ) --> nState
        HB_COMSENDBREAK( nPort, [ nDuration = 50 ] ) --> lSuccess
        HB_COMSETDEVICE( nPort, cDeviceName ) --> lSuccess
        HB_COMRECV( nPort, @cBuffer, [ nLen = LEN( cBuffer ) ], [ nTimeout = 0 ] ) --> nBytesRecv
        HB_COMSEND( nPort, cBuffer, [ nLen = LEN( cBuffer ) ], [ nTimeout = 0 ] ) --> nBytesSent

  + harbour/include/hbcom.ch
  * harbour/include/hbapicom.h
    * moved HB_COM_* constants to .ch file

  + harbour/examples/commouse
  + harbour/examples/commouse/commouse.prg
    + sample application to decode and display COM port mouse data.
      Two types of mouse protocol is supported. You just need to 
      find COM port mouse! :) 

  * harbour/src/rtl/hbcom.c
    ! fixed timeouts on Windows platform (thanks Przemek!)
2010-06-09 15:37:23 +00:00
Mindaugas Kavaliauskas
02651dc13a 2010-06-09 15:37 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/src/rtl/hbsockhb.c
    * changed return values of some functions: nSuccess to lSuccess
    * HB_SOCKET_PF_* changed to HB_SOCKET_AF_*
    - hb_parnintdef() (moved to extend.c)
    ! some bug fixes
    ! some typo in documentation

  * harbour/examples/udpds/udpds.prg
    * sychronized with hb_socket*() changes
    * changed server thread exit condition (proposed by Przemek)

  * harbour/include/hbapi.h
  * harbour/src/vm/extend.c
    + hb_parnintdef()
2010-06-09 12:42:08 +00:00
Przemyslaw Czerpak
864974ae82 2010-06-09 12:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbsocket.c
  * harbour/include/hbsocket.ch
    ! cleaned a little bit HB_SOCKET_AF_*/HB_SOCKET_PF_* usage to not confuse
      other developers and users.
2010-06-09 10:55:49 +00:00
Viktor Szakats
cb1883e999 2010-06-08 23:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
    * Renamed HB_OS_IPHONE -> HB_OS_IOS
      (naming will become ambiguous once Harbour will support
      Cisco IOS, which may not happen tomorrow, well Apple iOS
      is also a pending question)
2010-06-08 21:20:35 +00:00
Viktor Szakats
c6543dc196 2010-06-08 22:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Modified regex expression to be POSIX compliant.
      Thanks to Tamas Tevesz for this modification.

      Now hbmk2 should be compatible with supported regex engines, 
      though it continues to fail (gracefully) if Harbour core is built
      using 'HB_WITH_PCRE=no' option.
2010-06-08 20:32:18 +00:00
Viktor Szakats
c853e5052d 2010-06-08 21:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbextern.ch
    + Added new HB_SOCKET*() functions.

  * config/postinst.prg
    ! Fixed to exclude whole extra shared binary creation for 
      all platforms except win/wce/os2.

  + examples/udpds/udpds.hbp
    + Added hbmk2 make file.
2010-06-08 19:23:12 +00:00
Mindaugas Kavaliauskas
b9836e09ef 2010-06-08 21:54 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/src/rtl/hbsockhb.c
    + added wrapper functions for Harbour socket API
      The list of exported functions is:
        HB_SOCKETGETERROR() --> nSocketError
        HB_SOCKETGETOSERROR() --> nOSError 
        HB_SOCKETERRORSTRING( [ nSocketErrror = hb_socketGetError() ] ) --> cError
        HB_SOCKETGETSOCKNAME( hSocket ) --> aAddr | NIL
        HB_SOCKETGETPEERNAME( hSocket ) --> aAddr | NIL
        HB_SOCKETOPEN( [ nDomain = HB_SOCKET_PF_INET ] , [ nType = HB_SOCKET_PT_STREAM ], [ nProtocol = 0 ] ) --> hSocket
        HB_SOCKETCLOSE( hSocket ) --> nSuccess
        HB_SOCKETSHUTDOWN( hSocket, [ nMode = HB_SOCKET_SHUT_RDWR ] ) --> nSuccess
        HB_SOCKETBIND( hSocket, aAddr ) --> nSuccess
        HB_SOCKETLISTEN( hSocket, [ iQueueLen = 10 ] ) --> nSuccess
        HB_SOCKETACCEPT( hSocket, [ @aAddr ], [ nTimeout = FOREVER ] ) --> nSuccess
        HB_SOCKETCONNECT( hSocket, aAddr, [ nTimeout = FOREVER ] ) --> nSuccess
        HB_SOCKETSEND( hSocket, cBuffer, [ nLen = LEN( cBuffer ) ], [ nFlags = 0 ], [ nTimeout = FOREVER ] ) --> nBytesSent
        HB_SOCKETSENDTO( hSocket, cBuffer, [ nLen = LEN( cBuffer ) ], [ nFlags = 0 ], aAddr, [ nTimeout = FOREVER ] ) --> nBytesSent
        HB_SOCKETRECV( hSocket, @cBuffer, [ nLen = LEN( cBuffer ) ], [ nFlags = 0 ], [ nTimeout = FOREVER ] ) --> nBytesRecv
        HB_SOCKETRECVFROM( hSocket, @cBuffer, [ nLen = LEN( cBuffer ) ], [ nFlags = 0 ], @aAddr, [ nTimeout = FOREVER ] ) --> nBytesRecv
        HB_SOCKETSETBLOCKINGIO( hSocket, lValue ) --> nSuccess
        HB_SOCKETSETNODELAY( hSocket, lValue ) --> nSuccess
        HB_SOCKETSETREUSEADDR( hSocket, lValue ) --> nSuccess
        HB_SOCKETSETKEEPALIVE( hSocket, lValue ) --> nSuccess
        HB_SOCKETSETBROADCAST( hSocket, lValue ) --> nSuccess
        HB_SOCKETSETSNDBUFSIZE( hSocket, nValue ) --> nSuccess
        HB_SOCKETSETRCVBUFSIZE( hSocket, nValue ) --> nSuccess
        HB_SOCKETGETSNDBUFSIZE( hSocket, @nValue ) --> nSuccess
        HB_SOCKETGETRCVBUFSIZE( hSocket, @nValue ) --> nSuccess
        HB_SOCKETSETMULTICAST( hSocket,  cAddr ) --> nSuccess
        HB_SOCKETSELECTREAD( hSocket,  [ nTimeout = FOREVER ] ) --> nRet
        HB_SOCKETSELECTWRITE( hSocket,  [ nTimeout = FOREVER ] ) --> nRet
        HB_SOCKETSELECTWRITEEX( hSocket,  [ nTimeout = FOREVER ] ) --> nRet
        HB_SOCKETSELECT( aRead, lSetRead, aWrite, lSetWrite, aExcep, lSetExcep, [ nTimeout = FOREVER ] ) --> nRet
        HB_SOCKETRESOLVEINETADDR( cAddr, nPort ) --> aAddr | NIL
        HB_SOCKETRESOLVEADDR( cAddr, [ nFamily = HB_SOCKET_AF_INET ] ) --> cResolved
        HB_SOCKETGETHOSTS( cAddr, [ nFamily = HB_SOCKET_AF_INET ] ) --> aHosts
        HB_SOCKETGETIFACES( [ nFamily ], [ lNoAliases ] ) --> aIfaces

  + harbour/examples/udpds
  + harbour/examples/udpds/udpds.prg
    + added UDP Discovery Server sample

      This module demonstrates a simple UDP Discovery Server
     
      If you run some service on the network (ex., netio), you need to
      know server IP address and configure client to connect to this
      address. UDPDS helps client to find server address (or addresses
      of multiple servers) on local network. UDPDS should be run in
      parallel to real server (ex., netio). Server part of UDPDS uses
      threads, so, it should be compiled in MT mode.
     
      Server functions:
        UDPDS_Start( nPort, cName [, cVersion ] ) --> hServer
        UDPDS_Stop( hServer ) 
        
      Client function:
        UDPDS_Find( nPort, cName ) --> { {"ip_addr_1", "version_1"}, ... }

    ; Please add .hbc, .hbp files, if it is required. This module requires 
      only a standard harbour runtime library and MT VM.
2010-06-08 18:54:58 +00:00
Viktor Szakats
45447a4c91 2010-06-08 20:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbregexc.c
    + Restored RTE which is thrown when unsupported regex string is
      found in any .prg level regex API calls except HB_REGEXCOMP().
      The only difference compared to previous solution is different
      error code (3015) to differenciate this case from wrong
      parameter _type_ error cases.
    ; TOFIX: IMO even current solution is not ideal, because it just
             forces developers to use HB_ISREGEX() to pre-evaluate regex
             strings before actually using them (causing performance hit),
             or it forces them to use HB_REGEXCOMP() to pre-compile and
             pre-evaluate the expressions before passing them to actual
             regex functions, in the valid case they want to avoid unexpected
             RTEs due to missing or unsupported regex (PCRE) subsystem.
             IOW it makes plain HB_ATX( <cRegExp>, ... ) style calls
             prone to fail with RTE in certain, very hard to predict
             situations in officially supported Harbour builds.
             Comments are appreciated.

  * utils/hbmk2/hbmk2.prg
    * Deleted unused code.
    * Formatting.
2010-06-08 18:32:53 +00:00
Przemyslaw Czerpak
87657b036f 2010-06-08 19:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbsocket.c
    ! added missing code to duplicate IP6 address passed explicitly
      to hb_socketResolveAddr() - thanks to Mindaugas for reporting
      the problem
2010-06-08 17:58:23 +00:00
Pritpal Bedi
7770c050be 2010-06-08 09:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbide/resources/idepreferences.png
    + Icon for "hbIDE Setup" option.

  * contrib/hbide/resources/setup.ui
  * contrib/hbide/resources/setup.uic
    ! Some more advancement.

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/ideharbourhelp.prg
    ! Fixed a bug where multiple enteries were retained after "Refresh"
      in Documentation Viewer's <Index> tab.
  * contrib/hbide/idesaveload.prg
    ! Advances in hbIDE Setup front.
2010-06-08 16:29:08 +00:00
Xavi
a5469097e7 2010-06-08 14:08 UTC+0200 Xavi (jarabal/at/gmail.com)
* contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
  * contrib/hbwin/win_shell.c
    ! Fixed MinGW-w64 cross compiler detection with the recommended "official" method.
      MinGW-w64 can also compile for x86, in this case are the same built-in macros.
2010-06-08 12:10:53 +00:00
Viktor Szakats
ce166b1c81 2010-06-08 13:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbregexc.c
    * Changed to not throw RTE, just gracefully return
      error value when invalid PCRE expression is used.
      It will continue to throw RTE only for user-controllable
      error situations, f.e. when wrong argument type is passed.
    ! Fixed to not contain English text hard-coded in RTE message.

  * src/rtl/hbregex.c
    * HB_ATX() changed to fill parameters passed by reference with
      error values (zeros) in case of error.
    * HB_REGEX(), HB_REGEXSPLIT(), HB_REGEXATX(), HB_REGEXALL()
      functions changed to consistently return arrays. If there
      is no match, the array will be empty. This gives a more
      natural (and Clipper/Harbour-like) interface (f.e. return
      value can be passed to FOR EACH loop without extra checks
      and extra local variable).
      Slight INCOMPATIBILITY for those who did 'r == NIL' check
      to verify non-match and something special in this case.
      For code simply evaluating the returned matches, the NIL
      check can be deleted, and for code which wants to be
      backward/forward compatible _and_ to specifically check
      for no match situation it's suggested to use 'EMPTY( r )'.
      Please check me.
    * HB_REGEXMATCH() marked as HB_LEGACY_LEVEL4. (this leaves
      quite some headstart to change it)

  * include/hbextern.ch
    - Deleted HB_REGEXMATCH().

  * utils/hbmk2/hbmk2.prg
    % Simplified regex usage after above changes.
    + Will now show an internal error in case the used
      regex is invalid in current Harbour context
      (f.e. when no PCRE engine was forced by user, or
      the one used doesn't support the expression used by
      hbmk2). I don't know how special current expression
      is (it doesn't seem very much so), but it can be
      streamlined to something more compatible if current
      is deemed not ideal.

  * src/compiler/hbusage.c
    * Changed to enclose e-mails between '()' instead of '<>'.

  * include/hbsetup.h
    ! Patch by Tamas Tevesz for SunPro compiler.

  * ChangeLog
    - Deleted my personal exception from ChangeLog license.
2010-06-08 11:19:04 +00:00
Przemyslaw Czerpak
d263ec370d 2010-06-08 02:53 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/garbage.c
    ! added missing HB_STACK_TLS_PRELOAD
2010-06-08 00:54:08 +00:00
Pritpal Bedi
15ade39255 2010-06-07 07:47 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbide/resources/setup.ui
  + contrib/hbide/resources/setup.uic
    + New dialog to hold setup and ini information - in the making.

  * contrib/hbide/hbide.prg
    ! "Output Console" made hidded even if at previous run it was visible.

  * contrib/hbide/ideactions.prg
    + New menu option <Setup><hbIDE Setup> to invoke Setup dialog.

  * contrib/hbide/ideobject.prg
  * contrib/hbide/ideprojmanager.prg
    ! Fixed error reported by few which appears randomely 
      and I could not reproduce.

  * contrib/hbide/idesaveload.prg
    + Added class IdeSetup() - in the making.
2010-06-07 14:56:23 +00:00
Viktor Szakats
310cf196a2 2010-06-07 13:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtgui/gtgui.c
  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * examples/gtwvw/gtwvw.c
    + Will now put to clipboard and request from clipboard UNICODE
      text in UNICODE (default) mode. This should fix CP conversion 
      problems experienced in non-UNICODE mode (more in a separate 
      bug report).
      Please review me.
2010-06-07 11:23:34 +00:00
Viktor Szakats
4a32694328 2010-06-07 11:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/Makefile
  * contrib/hbtpathy/hbtpathy.hbp
  * contrib/hbtpathy/hbtpathy.hbc
  * contrib/hbtpathy/telepath.ch
  - contrib/hbtpathy/tpcommon.c
  - contrib/hbtpathy/tpwin.c
  - contrib/hbtpathy/tpos2.c
  - contrib/hbtpathy/tpunix.c
  - contrib/hbtpathy/tpdos.c
  * contrib/hbtpathy/telepath.prg
    * Changed to use hbct lib COM functions.
    * Changed some misc functions to .prg from .c.
    - Deleted all .c files.
    ; NO GUARANTEES. PLEASE TEST AND REVIEW IT. All my testing
      was to make sure the lib and test app builds properly.

  * contrib/hbtpathy/tests/testtp.prg
    * Formatting.
2010-06-07 09:56:55 +00:00
Viktor Szakats
b0c8a35e2d 2010-06-06 22:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/minizip/ioapi.h
    ! Fixed for watcom compilers (turned off 64-bit file IO)
2010-06-06 20:29:42 +00:00
Viktor Szakats
b8522a372e 2010-06-06 22:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/mpkg_win.nsi
  * package/winuni/mpkg_win_uni.nsi
    + Installation will now create 'Harbour' registry key under
      'Software', and in it write 'InstallDir' value with the
      location of Harbour dir structure.
      With this, additional tools (addons) can easily locate
      Harbour on a system and install themselves indide the
      dir structure or make necessary configuration settings
      which need this information. F.e. HBIDE installer (which
      can go even to '%ProgramFiles%/Harbour IDE' or '%ProgramFiles%/HBIDE'
      can locate Harbour and configure its .ini to point to
      proper hbmk2 location.
2010-06-06 20:07:28 +00:00
Pritpal Bedi
9ecc338c5e 2010-06-06 10:55 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/idetools.prg
    ! Changed: macro notation for "Tools and Utilities" to confirm 
      to hbMK2 standards. 
        {source_fullname} => ${source_fullname}
        {source_name}     => ${source_name}
        {source_path}     => ${source_path}
                          => ${source_ext}  [Added]
        {%MY_ENV_VAR%}    => ${MY_ENV_VAR}

      If marco keywords are not recognized, they are assumed to be 
      environment variables and return value of hb_GetEnv( cMacro )
      is substituted.
2010-06-06 18:03:10 +00:00
Viktor Szakats
077fc4398e 2010-06-06 19:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtdos/gtdos.c
    ! Fixed C++ compilation (caused by BYTE -> HB_BYTE change)
2010-06-06 17:16:38 +00:00
Pritpal Bedi
4809712e1b 2010-06-06 02:43 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbide/resources/go-bottom.png
  + contrib/hbide/resources/go-down.png
  + contrib/hbide/resources/go-first.png
  + contrib/hbide/resources/go-jump.png
  + contrib/hbide/resources/go-last.png
  + contrib/hbide/resources/go-next.png
  + contrib/hbide/resources/go-prev.png
  + contrib/hbide/resources/go-top.png
  + contrib/hbide/resources/go-up.png
  + contrib/hbide/resources/hilight-all.png
  + contrib/hbide/resources/updown.ui
  + contrib/hbide/resources/updown.uic

  * contrib/hbqt/hbqt_hbqplaintextedit.cpp
    ! An important fix.

  * contrib/hbide/ideedit.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/idetools.prg
    + Extended: in addition to next/previous buttons to naviagte 
      occurances of selected text, three more buttons are added:
      "first", "last", occurance and "highlight all" occurances.

    + Implemented: macros parsing in "Parameters" list of 
      "Tools and Utilities" protocol. Currently following macros 
      are parsed:
        {source_fullname} => full sourcename of current edit instance
        {source_name}     => mere name of current edit instance
        {source_path}     => only path of source in current edit instance
        {%MY_ENV_VAR%}    => result of hb_GetEnv( "MY_ENV_VAR" )
           C:\temp\mycopy.bat {source_fullname} {source_path}\mysource.bkp
                =>
           C:\temp\mycopy.bat C:\harbour\contrib\hbide\hbide.prg C:\harbour\contrib\hbide\mysource.bkp
             ( assuming that current editor is containe hbide.prg )
2010-06-06 10:08:55 +00:00
Viktor Szakats
163ee53500 2010-06-06 00:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * external/sqlite3/Makefile
  * utils/hbmk2/hbmk2.prg
  * config/global.mk
  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    * Changed HB_COMPILER_VER values for msvc targets. Previously it was
      the Visual Studio version, now it is the C compiler version,
      the same value used in _MSC_VER predefined macro:

         Name                                    old  NEW
         -------------------------------------- ---- ----
         C Compiler version 6.0                       600
         C/C++ compiler version 7.0                   700
         Visual C++, Windows, version 1.0        100  800
         Visual C++, 32-bit, version 1.0         100  800
         Visual C++, Windows, version 2.0        200  900
         Visual C++, 32-bit, version 2.x         200  900
         Visual C++, 32-bit, version 4.0         400 1000
         Visual C++, 32-bit, version 5.0         500 1100
         Visual C++, 32-bit, version 6.0         600 1200
         Visual Studio .NET (2002), version 7.0  700 1300
         Visual Studio .NET 2003, version 7.1    710 1310
         Visual Studio 2005, version 8.0         800 1400
         Visual Studio 2008, version 9.0         900 1500
         Visual Studio 2010, version 10.0       1000 1600

      INCOMPATIBLE for users setting HB_COMPILER_VER manually, pls
      change the value as indicated above. For most users it's
      recommended to rely on autodetection and not to set this
      variable at all.

  * config/postinst.prg
    ! Fixed to use hb_osFileMask() instead of hard-coded '*' mask.
2010-06-05 22:53:22 +00:00
Pritpal Bedi
c2556d1b65 2010-06-05 11:01 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideedit.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideobject.prg
    + Implemented: interface to find next/previous occurance of selected 
      text in the current editing instance. 

      The moment some text is selected in the editor, two tool-buttons will 
      automatically show-up on the lower-right corner of the editing window 
      to facilitate you execute "find" operation for selected text up or down.
      Buttons will disappear where there is no more selected text.

      The feature was requested by Antonio Linares.
2010-06-05 18:09:35 +00:00
Xavi
fbbfd76c41 2010-06-05 17:45 UTC+0200 Xavi (jarabal/at/gmail.com)
* contrib/hbwin/win_shell.c
    + Added protection to typedef SHNAMEMAPPING, LPSHNAMEMAPPING for MINGW64.
      MinGW-W64 provides these definitions and cause error when building hbwin.
2010-06-05 15:47:53 +00:00
Viktor Szakats
0338672fa7 2010-06-05 14:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/postinst.prg
    ! Fixed to use platform native pathseps in few remaining places.

  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    + Added copyright header.
2010-06-05 12:26:00 +00:00
Viktor Szakats
ddba010f99 2010-06-04 20:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni.nsi
    * Version adjustment (-20 -> -21)
2010-06-04 18:21:32 +00:00
Viktor Szakats
f3c2721fff 2010-06-04 18:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added pkg-config and *-config support for MacPorts.
2010-06-04 16:50:59 +00:00
Viktor Szakats
81c9b0506c 2010-06-04 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/*
    * Deleted 'www.' from harbour-project.org website name.
      (www.harbour-project.org -> harbour-project.org)
2010-06-04 13:32:23 +00:00
Viktor Szakats
7858b4c783 2010-06-04 13:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Minor.

  * contrib/hbmysql/hbmysql.hbc
  * contrib/gtalleg/gtalleg.hbc
  * contrib/gtalleg/gtallegs.hbc
  * contrib/hbct/hbct.hbc
  * contrib/sddmy/sddmy.hbc
  * contrib/hbodbc/hbodbc.hbc
  * contrib/xhb/xhb.hbc
  * contrib/sddfb/sddfb.hbc
  * contrib/hbtpathy/hbtpathy.hbc
  * contrib/hbgt/hbgt.hbc
  * contrib/hbsqlit3/hbsqlit3.hbc
  * contrib/hbmzip/hbmzip.hbc
  * contrib/hbblat/hbblat.hbc
  * contrib/hbqt/hbqt.hbc
  * contrib/hbqt/hbqts.hbc
  * contrib/hbfbird/hbfbird.hbc
  * contrib/sddpg/sddpg.hbc
  * contrib/hbziparc/hbziparc.hbc
  * contrib/hbxbp/hbxbp.hbc
  * contrib/hbbz2/hbbz2.hbc
  * contrib/hbblink/hbblink.hbc
  * contrib/hbnf/hbnf.hbc
  * contrib/hbcurl/hbcurl.hbc
  * contrib/hbcurl/hbcurls.hbc
  * contrib/hbmemio/hbmemio.hbc
  * contrib/hbxpp/hbxpp.hbc
  * contrib/hbfship/hbfship.hbc
  * contrib/hbcups/hbcups.hbc
  * contrib/rddbmcdx/hbbmcdx.hbc
  * contrib/hbfoxpro/hbfoxpro.hbc
  * contrib/hbnetio/hbnetio.hbc
  * contrib/rddsql/rddsql.hbc
  * contrib/hbhpdf/hbhpdf.hbc
  * contrib/gtwvg/gtwvg.hbc
  * contrib/hbpgsql/hbpgsql.hbc
  * contrib/hbclipsm/hbclipsm.hbc
  * contrib/rddads/rddads.hbc
  * contrib/rddads/rddads.hbp
  * contrib/sddsqlt3/sddsqlt3.hbc
  * contrib/hbfimage/hbfimage.hbc
  * contrib/sddodbc/sddodbc.hbc
  * contrib/hbgd/hbgd.hbc
  * contrib/hbmisc/hbmisc.hbc
  * contrib/sddoci/sddoci.hbc
  * contrib/hbcomm/hbcomm.hbc
  * contrib/hbtip/hbtipssl.hbc
  * contrib/hbtip/hbtip.hbc
  * contrib/hbcairo/hbcairo.hbc
  * contrib/hbwin/hbwin.hbc
  * contrib/hbssl/hbssls.hbc
  * contrib/hbssl/hbssl.hbc
  * contrib/hbsms/hbsms.hbc
  * examples/ps32/ps32.hbc
  * examples/hbsqlit2/hbsqlit2.hbc
  * examples/gfspell/gfspell.hbc
  * examples/rddado/rddado.hbc
  * examples/hbapollo/hbapollo.hbc
  * examples/hbvpdf/hbvpdf.hbc
  * examples/hbbtree/hbbtree.hbc
  * examples/gtwvw/gtwvw.hbc
    % Replaced libs=<libname> with libs=${hb_name} to avoid repeating 
      the libs own name, if it's the same as the name of the .hbc file.
2010-06-04 11:08:35 +00:00