Commit Graph

15904 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
6e1a0844d2 2011-01-27 00:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/src/compiler/hbmain.c
    * save and restore compiler settings when separated .prg files are
      compiled as different modules. Files compiled as single module
      (i.e. by .clp files, #included, added by DO ... [WITH ...], etc.)
      are still compiled using the same settings inheriting any modifications
      introduced by #pragma. It's intentional behavior.
2011-01-26 23:22:54 +00:00
Przemyslaw Czerpak
f3259b2cab 2011-01-26 23:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/src/pp/ppcore.c
    ! added resetting some internal PP states in hb_pp_reset()
2011-01-26 22:56:48 +00:00
Viktor Szakats
e5f2b0b9ae 2011-01-26 23:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiocui.prg
    + Shows server address in prompt when connected.
    + Shows server address when connecting.
2011-01-26 22:23:01 +00:00
Viktor Szakats
4215550198 2011-01-26 23:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocui.prg
    + RPC command names changed to begin with "hbnetiomgm_" (instead of "netio_")
    % Using constants for default ip/port and showing them
      dynamically in help screens.
    + Cleaned CUI options now there is simple -addr=<ip[:port]> format
      supported.
    * CUI option -adminpass= renamed to -pass=.
    + CUI now supports disconnect/connect command on the console.
      connect will ask for the password if omitted.
      It also means that console can now be in 'disconnected' state.
      This will be the mode it starts up when no password is
      specced on the cmdline.
2011-01-26 22:15:15 +00:00
Viktor Szakats
738886616f 2011-01-26 20:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiocui.prg
    * Minor correction in help screen.
2011-01-26 19:59:10 +00:00
Viktor Szakats
8f6d24f46f 2011-01-26 20:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    + Added 'netio_ping' RPC function.
      (utilitzed to detect broken connection. Is there a better way?)

  * contrib/hbnetio/utils/netiosrv/netiosrv.hbp
  - contrib/hbnetio/utils/netiosrv/netiocmd.prg
  + contrib/hbnetio/utils/netiosrv/netiocui.prg
    * Renamed console UI source.
    + Added 'exit' command to console UI, to
      simply exit the console.
    + Added detection of lost connection in console UI.
    % Deleted NETIO_DISCONNECT() call. Not needed ti
      NETIO_GETCONNCETION().
    + Added support for standalone console UI
      build mode. Added required entry/cmdline help functions.
    + Added error msg when connection to server management
      failed.

  + contrib/hbnetio/utils/netiosrv/netiocui.hbp
    + Added .hbp file for standalone console UI.
2011-01-26 19:38:09 +00:00
Przemyslaw Czerpak
3444dfc907 2011-01-26 19:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/hbpp.c
    * modified syntax info to keep output well formatted for 80 columns
  * harbour/src/pp/hbpp.1
    * updated

  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/sdf1.c
  * harbour/contrib/rddsql/sqlbase.c
    ! added protection against GPF when wrong field index is passed to
      {GET|PUT}VALUE[FILE]() methods
2011-01-26 18:08:34 +00:00
Viktor Szakats
c731995d06 2011-01-26 18:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Help text now show port and iface defaults.
    + Client info is now stored in the connection
      table (not used anywhere ATM). Finally solved it by
      using thread ID to identify connections in RPC server side.
    + Added thread ID to the per connection data structure.
    + 'show' command now shows thread ID instead of ordinal.
2011-01-26 17:08:30 +00:00
Viktor Szakats
48ab3218bd 2011-01-26 13:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    ! 'netio_logconn()' RPC was returning wrong value.
    + Console UI extended to use NETIO_GETCONNECTION() and
      use pConnection to make RPC calls. Which opens the door
      to support multiple server connections at the same time.
    + Added experimental code for management client indentification.
      Currently the management client will identify itself right
      after connection, and this information will be shown on the
      server console.
    ; QUESTION: How to find out in an RPC call on the server side,
                which connection it belongs to?
    ; QUESTION: Should NETIO_DISCONNECT() support optional pConnection
                parameter (instead of IP/port pair)?
2011-01-26 12:56:04 +00:00
Pritpal Bedi
6836b6dde7 2011-01-25 23:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbpmenubar.prg
    ! Fixed: a stupid untested typo.
2011-01-26 07:18:19 +00:00
Viktor Szakats
adfd4ba175 2011-01-26 02:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Console UI moved to separate thread and it's now fully
      contained in netiocmd.prg. The only communication between
      console UI and netio server is via remote management RPC
      interface.
      This means the console UI can be easily removed or moved
      to separate executable.
    + Added -noui cmdline option which disables interactive console.
    ; Little rough around the edges, but it show the capabilities.
2011-01-26 01:11:04 +00:00
Pritpal Bedi
89e22b7cbe 2011-01-25 14:41 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/netiosrq/netiosrq.hbp
    % Fix to previous partial fix.
2011-01-25 22:43:28 +00:00
Viktor Szakats
19bc39e837 2011-01-25 23:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/tests/netiomt1.prg
    + Added 'netio_conninfo' remote mgmnt command.
      It will return all client connections in an array of hashes.
2011-01-25 22:33:36 +00:00
Viktor Szakats
7cd5839b6e 2011-01-25 23:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
  + contrib/hbnetio/tests/netiomt1.prg
    + Added secondary server interface for remote management. Little hacky
      and incomplete yet.
      New options added: -adminport, -adminiface, -adminpass
    + Added remote management function: "netio_shutdown" (similar to 'quit' command)
    + Added 'shconn' and 'noshconn' commands to enable/disable 
      console feedback when client connects/disconnects.
      (this is permanently enabled for management connections)
2011-01-25 22:13:28 +00:00
Pritpal Bedi
09ac1e8abf 2011-01-25 13:34 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/netiosrq/netiosrq.hbp
    % Fixed: wrong path.

  * contrib/hbnetio/utils/netiosrq/netiosrq.prg
    ! Adopted: Latest changes in netio_* API.
    + Implemented: Bytes sent and received per connection.
2011-01-25 21:39:13 +00:00
Pritpal Bedi
e72c7b3cb1 2011-01-25 12:16 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/hbxbp.hbx
    ! Auto-changed.
      I should have taken care of it with my last commit.
      I really apologize for lapse in concentration.
2011-01-25 20:20:05 +00:00
Viktor Szakats
791cb5e88a 2011-01-25 18:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added command to enable/disable incoming connections.
      (noconn/conn commands)
      It makes client crash with read error, so I'm not sure if
      this is good solution, or how to solve it better.
    * Renamed 'conn' command to 'show'.
2011-01-25 17:11:53 +00:00
Viktor Szakats
ad8e69dbee 2011-01-25 17:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added command to stop specific or every connection.
      Using 'stop <ip:port>' or 'stop all'.
2011-01-25 16:54:18 +00:00
Przemyslaw Czerpak
a05a2ec496 2011-01-25 16:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/itemapi.c
    * do not clear parameter when NULL item is passed to
      hb_itemParamStore*() functions

  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbnetio/readme.txt
    - removed NETIO_SRVSOCKET()

  * harbour/ChangeLog
    * marked TODO as DONE
2011-01-25 15:54:46 +00:00
Viktor Szakats
e19f36ccc3 2011-01-25 16:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    * Minors.

  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    - Deleted now completed TODO items.
2011-01-25 15:40:22 +00:00
Viktor Szakats
6aa074cd5b 2011-01-25 15:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    * Eliminated netio_srvSocket() call.
    + Displaying bytes sent and received.
    + Displaying connection status.
    ; TOFIX: NETIO_SRVINFO_PEERADDRESS doesn't seem to work, returning NIL (or nothing),
             it's possible I'm missing something.
2011-01-25 14:58:22 +00:00
Viktor Szakats
9b70178aee 2011-01-25 15:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.hbp
    ! Corrected relative path to hbnetio.hbc

  * contrib/hbnetio/hbnetio.hbc
    ! Added missing incpath option.

  * contrib/hbnetio/hbnetio.ch
  * contrib/hbnetio/netiosrv.c
    ! Typo: NETIO_SRVINFO_PEERADDRES -> NETIO_SRVINFO_PEERADDRESS

  * contrib/hbnetio/netiosrv.c
    - Deleted: NETIO_OPENFILESCOUNT().
    ; TODO: Pls update netiosrq to use the new interface.
            Same for netiosrv. I'll do it in next commit.

  * contrib/hbnetio/hbnetio.ch
    ! Added notice that this .ch file is used also by .c code.
2011-01-25 14:28:48 +00:00
Przemyslaw Czerpak
1a44f58622 2011-01-25 14:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapiitm.h
  * harbour/src/vm/itemapi.c
    + added new C function hb_itemParamStoreRelease()
    * modified hb_itemParamStore*() functions to accept NULL items

  + harbour/contrib/hbnetio/hbnetio.ch
  * harbour/contrib/hbnetio/netio.h
  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbnetio/readme.txt
    + extended NETIO_SRVSTATUS() function so now it can be used to
      extract some additional information about connection socket:
         NETIO_SRVSTATUS( <pConnectionSocket>
                          [, <nStreamID> | <nSrvInfo>, @<xData> ] )
                  -> <nStatus>
      <nSrvInfo> can be:
         NETIO_SRVINFO_FILESCOUNT
         NETIO_SRVINFO_BYTESSENT
         NETIO_SRVINFO_BYTESRECEIVED
         NETIO_SRVINFO_PEERADDRES

    ; TODO: please eliminate NETIO_SRVSOCKET() from any code using it.
            It's too danger so I'll remove this function from HBNETIO soon.
            NETIO_SRVOPENFILESCOUNT() is also redundant now and can be
            replaced by:
               NETIO_SRVSTATUS( pConnSock, NETIO_SRVINFO_FILESCOUNT, @nCount )
            so it can be removed too.
2011-01-25 13:19:32 +00:00
Viktor Szakats
eb7c0ce7a4 2011-01-25 12:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added 'conn' console command to show number of connections
      and show information for all connections. The data includes
      IP and port, time of connection, no. of open files.
      Utilizing some concepts from Pritpal's netiosrq code, but
      rewritten, so new code doesn't use STATIC var, it's
      little bit more efficient. I didn't implement unfinished
      features, like byte counting.
2011-01-25 11:12:31 +00:00
Viktor Szakats
a91043008f 2011-01-25 11:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrq/netiosrq.prg
    ! STATIC var prefix with s_.
2011-01-25 10:08:11 +00:00
Viktor Szakats
d1fea6da08 2011-01-25 10:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbplist
  - contrib/hbnetio/utils/netiosrv/hbnetio.hbp
  + contrib/hbnetio/utils/netiosrv/netiosrv.hbp
    * Renamed.

  * contrib/hbnetio/netiosrv.c
    ! Fixed build-stopper typo in this modification:
         2011-01-25 12:41 UTC-0800 Pritpal Bedi
      I'd like to ask developers to _at least_ do _build test_
      before committing to SVN !!!
      Obviously this wasn't done for the above commit.

  - contrib/hbnetio/utils/netiosrq/netiosrvq.prg
  + contrib/hbnetio/utils/netiosrq/netiosrq.prg
  - contrib/hbnetio/utils/netiosrq/netiosrvqt.hbp
  + contrib/hbnetio/utils/netiosrq/netiosrq.hbp
  - contrib/hbnetio/utils/netiosrq/netiosrvq.qrc
  + contrib/hbnetio/utils/netiosrq/netiosrq.qrc
  - contrib/hbnetio/utils/netiosrq/harbour.ico
    ! Fixed inconsistent names.
    - Deleted Windows specific icon file.
    ! Fixed long filenames.
    + Added icon for OS/2.
    ; TOFIX: Build doesn't work due to missing external (CONFIRMBOX).
2011-01-25 09:44:22 +00:00
Viktor Szakats
c498928a81 2011-01-25 10:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbunix/daemon.c
    ! Fixed gcc warning. Patch by Tamas.

  * contrib/hbplist
  - contrib/hbnetio/utils/netiosrvq.prg
  - contrib/hbnetio/utils/harbour.png
  - contrib/hbnetio/utils/fullscreen.png
  - contrib/hbnetio/utils/netiosrvqt.hbp
  - contrib/hbnetio/utils/exit.png
  - contrib/hbnetio/utils/about.png
  - contrib/hbnetio/utils/terminate.png
  - contrib/hbnetio/utils/help.png
  - contrib/hbnetio/utils/harbour.ico
  - contrib/hbnetio/utils/netiosrvq.qrc
  + contrib/hbnetio/utils/netiosrq
  + contrib/hbnetio/utils/netiosrq/netiosrvq.prg
  + contrib/hbnetio/utils/netiosrq/fullscreen.png
  + contrib/hbnetio/utils/netiosrq/harbour.png
  + contrib/hbnetio/utils/netiosrq/netiosrvqt.hbp
  + contrib/hbnetio/utils/netiosrq/harbour.ico
  + contrib/hbnetio/utils/netiosrq/help.png
  + contrib/hbnetio/utils/netiosrq/terminate.png
  + contrib/hbnetio/utils/netiosrq/exit.png
  + contrib/hbnetio/utils/netiosrq/about.png
  + contrib/hbnetio/utils/netiosrq/netiosrvq.qrc
  - contrib/hbnetio/utils/hbnetio.hbp
  - contrib/hbnetio/utils/rpcdemo.hbs
  - contrib/hbnetio/utils/modules.hbp
  - contrib/hbnetio/utils/netiosrv.prg
  - contrib/hbnetio/utils/netiocmd.prg
  + contrib/hbnetio/utils/netiosrv
  + contrib/hbnetio/utils/netiosrv/hbnetio.hbp
  + contrib/hbnetio/utils/netiosrv/modules.hbp
  + contrib/hbnetio/utils/netiosrv/netiosrv.prg
  + contrib/hbnetio/utils/netiosrv/rpcdemo.hbs
  + contrib/hbnetio/utils/netiosrv/netiocmd.prg
    ! Fixed long filenames not allowed area. (more to come)
      Please don't upload long filenames without discussion.
    ! Fixed mixing two multi-file tool source into the same dir.
    ! Fixed to not put Windows specific icon file to non-Windows area.

  * contrib/hbnetio/netiosrv.c
  * contrib/hbnetio/utils/netiosrq/netiosrvq.prg
    * Renamed NETIO_SRVOPENFILES() to NETIO_SRVOPENFILESCOUNT().
      (it doesn't actually return list of file just number of files)
2011-01-25 09:23:41 +00:00
Pritpal Bedi
0647fa4b7d 2011-01-25 12:41 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbp3state.prg
  * contrib/hbxbp/xbpbrowse.prg
  * contrib/hbxbp/xbpcheckbox.prg
  * contrib/hbxbp/xbpdataref.prg
  * contrib/hbxbp/xbplistbox.prg
  * contrib/hbxbp/xbpmenubar.prg
  * contrib/hbxbp/xbpmle.prg
  * contrib/hbxbp/xbpradiobutton.prg
  * contrib/hbxbp/xbpscrollbar.prg
  * contrib/hbxbp/xbpsle.prg
  * contrib/hbxbp/xbpspinbutton.prg
  * contrib/hbxbp/xbptoolbar.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbxbp/xbpwindow.prg
    ! Renamed: XbpDataRef() => DataRef() to be exact Xbase++ compatible.
    + XbpMenu():popup()

  * contrib/hbnetio/netiosrv.c
    + Added: NETIO_SRVOPENFILES( pConnectionSocket ) -> nFilesOpen

  + contrib/hbnetio/utils/harbour.ico
  + contrib/hbnetio/utils/about.png
  + contrib/hbnetio/utils/exit.png
  + contrib/hbnetio/utils/fullscreen.png
  + contrib/hbnetio/utils/harbour.png
  + contrib/hbnetio/utils/help.png
  + contrib/hbnetio/utils/terminate.png
  + contrib/hbnetio/utils/netiosrvq.qrc
  + contrib/hbnetio/utils/netiosrvq.prg
  + contrib/hbnetio/utils/netiosrvqt.hbp
    + Added: GUI NetIO Server based on hbXBP and hbQT.
             implements : DateTime In, DateTime Out, IP connected from,
                          Port number connected from, number of files open.
             implements : Termination of a particular connection
                          via context menu or toolbar icon.
2011-01-25 08:51:49 +00:00
Przemyslaw Czerpak
a5d1bcaee7 2011-01-24 23:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
  * harbour/src/compiler/cmdcheck.c
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/hbusage.c
    - removed some old unused declarations and code

  * harbour/src/main/harbour.1
    * updated
2011-01-24 22:12:58 +00:00
Przemyslaw Czerpak
37d5c5b3be 2011-01-23 19:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
- harbour/contrib/hbunix/guids.c
  + harbour/contrib/hbunix/uidgid.c
  * harbour/contrib/hbunix/hbunix.hbp
    * renamed
2011-01-23 18:10:43 +00:00
Viktor Szakats
37999ce922 2011-01-23 17:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/harupdf.c
    + Added wrapper for HPDF_UseUTFEncodings().
      It requires 2.3.0 which is not released yet, so it's also not
      the version hosted in Harbour SVN.
2011-01-23 16:27:54 +00:00
Viktor Szakats
fa950fae9c 2011-01-23 10:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Minor typo in help text.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.es_PE.po
    + Updated from source.

  * contrib/hbmxml/tests/rem.xml
  * contrib/hbmxml/tests/rem_err.xml
    ! Added missing EOL @ EOF.

  * contrib/hbunix/hbposix.h
    + Added generic macro to accept both logical and numeric type for
      boolean-like input parameters.

  * contrib/hbunix/tests/testdmn.prg
  * contrib/hbunix/daemon.c
    + UNIX_DAEMON(): Changed to accept numeric value for logical parameters.
    + UNIX_DAEMON(): Changed to return numeric value.
    ; Patch by Tamas.
2011-01-23 09:24:47 +00:00
Viktor Szakats
4b18334560 2011-01-21 16:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/hb_c.cfg
    * Changed to align assignments.
    ! Fixed to align case statments like it's done in Harbour.

  * contrib/gtwvg/wvgcuig.c
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgwing.c
    * Reformatted with uncrustify.
      Results are fantastic with this tool.
2011-01-21 15:47:47 +00:00
Viktor Szakats
f067179880 2011-01-21 16:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbunix/hbposix.hbp
  + contrib/hbunix/hbunix.hbp
  - contrib/hbunix/hbposix.hbc
  + contrib/hbunix/hbunix.hbc
  - contrib/hbunix/hbposix.c
  + contrib/hbunix/posix.c
  * contrib/hbunix/tests/hbmk.hbm
    * Renamed hbposix lib to hbunix. Step 2 of 2.
    ; Please test.

  * contrib/hbunix/daemon.c
  * contrib/hbunix/tests/testdmn.prg
    * Renamed HB_POSIX_DAEMON() to UNIX_DAEMON().
2011-01-21 15:32:46 +00:00
Viktor Szakats
9a1a08e84c 2011-01-21 16:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbposix
  + contrib/hbunix
  * contrib/hbplist
    * Renaming hbposix lib to more generic hbunix. Step 1 of 2.
2011-01-21 15:27:16 +00:00
Przemyslaw Czerpak
8b7bbecb9d 2011-01-21 10:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/contrib/hbposix/hbposix.h
    + added header file for POSIX function wrappers

  * harbour/contrib/hbposix/hbposix.hbp
  + harbour/contrib/hbposix/posixerr.c
    + added C functions to save/restore errno value
    + added POSIX_ERRNO() PRG function

  + harbour/contrib/hbposix/guids.c
    + added POSIX_[GS]ET[E][UG]ID() functions

  * harbour/contrib/hbposix/daemon.c
    * use hbposix.h
    * save errno

  * harbour/contrib/hbposix/hbposix.c
    * use hbposix.h
2011-01-21 09:44:30 +00:00
Viktor Szakats
d43bb8058f 2011-01-21 09:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbposix/tests/testdmn.prg
  * contrib/hbposix/hbposix.hbp
  + contrib/hbposix/daemon.c
    + Added HB_POSIX_DAEMON( lNoChdir, lNoClose ) --> lResult

  * contrib/hbmxml/hbmxmlp.prg
  * contrib/hbmagic/hbmagis.prg
  * contrib/hbmagic/tests/hbmagit.prg
  * contrib/hbmagic/hbmagic.c
    ! Minor fix to copyright line.

  ; Patch from Tamas. Thank you!

  * contrib/hbposix/tests/testdmn.prg
  * contrib/hbposix/daemon.c
    * Renamed POSIX_DAEMON() to HB_POSIX_DAEMON() to reflect 
      fact that it implement higher level posix functionality 
      (as opposed to being a direct wrapper to posix function 
      names 'deamon()')
2011-01-21 09:00:49 +00:00
Przemyslaw Czerpak
7263e28508 2011-01-21 07:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmxml/hbmxml.c
    % optimization - moved hb_itemNew()/hb_itemRelease() outside for()
      loop
2011-01-21 06:04:51 +00:00
Viktor Szakats
0b27183357 2011-01-21 02:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/hb_c.cfg
    + Some more settings.
    * Changed to not wrap lines at column 100. It'd be great 
      feature, though sometimes it makes code less readable.

  * contrib/gtwvg/wvgcuig.c
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgwing.c
    ! Fixed formatting using uncrustify.

  * contrib/gtwvg/wvggui.c
    * Minor modification to make it not break when autoformatted.

  * contrib/hbmisc/dates2.c
  * contrib/hbtip/encurlc.c
  * contrib/hbwin/win_prn2.c
    % Optimized out HB_ISLOG() calls.
2011-01-21 01:22:58 +00:00
Viktor Szakats
b6117f003d 2011-01-20 20:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/c.mk
  * config/rules.mk
    + Added support for Objective C input files (.m)
2011-01-20 19:32:03 +00:00
Viktor Szakats
13c432e920 2011-01-20 19:09 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbct/misc4.c
  * contrib/hbct/dummy.c
  * contrib/hbct/hbct.hbp
  * contrib/hbct/hbct.hbx
    + Added two very simple functions ISAT() and TOOLVER().
2011-01-20 18:10:16 +00:00
Viktor Szakats
68cd610785 2011-01-20 18:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmxml/hbmxml.hbx
    ! Updated.

  * contrib/hblzf/hblzf.hbp
  + contrib/hblzf/hblzf.hbx
  + contrib/hblzf/hblzfx.prg
  * contrib/hbxdiff/hbxdiff.hbp
  + contrib/hbxdiff/hbxdiff.hbx
  + contrib/hbxdiff/hbxdiffx.prg
    + Added extern puller parts.
2011-01-20 17:48:37 +00:00
Viktor Szakats
076030bc1a 2011-01-20 18:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/harbour.spec
  * package/harbour-win.spec.in
  * package/harbour-wce.spec.in
  * include/hbver.h
  * config/global.mk
    + Changed version number to:
         2.1.0rc1 (from 2.1.0beta3)
2011-01-20 17:30:41 +00:00
Przemyslaw Czerpak
19515c4899 2011-01-20 11:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmxml/hbmxml.c
    ! redesigned to use mxml_node reference counters - it should fix
      all problems with memory leak and accessing freed memory which
      where in our wrapper.
    ! fixed few typos and possible GPF I've found
    ! modified mxmlDelete() wrapper to respect reference counter
      It means that it cannot call mxmlDelete() MXML function directly.
    - removed mxmlRelease() and mxmlRetain() PRG wrappers

  * harbour/contrib/hbmxml/3rd/minixml/mxml_fil.c
    ! fixed double mxml_node releasing

  * harbour/contrib/hbmxml/3rd/minixml/mxml_nod.c
    ! fixed mxmlDelete() to respect reference counters

    ; TODO: There are still two problems but inside MXML library.
      1. memory leak in testmxml rem_err.xml
        The leak is inside MXML function and have to be fixed by author
        (I do not want to change this code too deeply). Here is valgrind
        report:
            (88 direct, 1 indirect) bytes in 1 blocks are definitely lost
            at 0x4C234E7: calloc ()
            by 0x40ABF9: mxml_new (mxml_nod.c:758)
            by 0x40AE39: mxmlNewText (mxml_nod.c:547)
            by 0x407421: mxml_load_data (mxml_fil.c:1585)
            by 0x404E50: HB_FUN_MXMLLOADFILE (hbmxml.c:794)
            by 0x50A9FF6: hb_vmProc (hvm.c:5795)
            by 0x5086104: hb_vmExecute (hvm.c:1655)
            by 0x50A9FF6: hb_vmProc (hvm.c:5795)
            by 0x50ADC12: main (mainstd.c:96)
      2. Index functions in MXML library does not update reference counters.
         It means that it's possible to create index then remove nodes and
         access such nodes extracting their addresses from the index.
         It's the only one place I know when user can make sth wrong with
         memory using just modified HBMXML wrapper and it cannot be fixed
         without modifications in MXML library.

    Please test it.
2011-01-20 10:37:50 +00:00
Przemyslaw Czerpak
3ecdaafa86 2011-01-19 17:05 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbnetio/netiomt.prg
    + added 8-th parameter <sSrvFunc> to NETIO_MTSERVER().
      It allows to set own server function which can be used for
      statistic or connection INIT/EXIT code. By default it's
      @netio_server() is used.
      User functions may look like:
         function custom_netio_server( pConnectionSocket )
            register_connection( pConnectionSocket )
            begin sequence
               netio_server( pConnectionSocket )
            finally
               unregister_connection( pConnectionSocket )
            end sequence
         return nil

  * harbour/contrib/hbnetio/netiosrv.c
    + added new server function
         NETIO_SRVSOCKET( <pConnectionSocket> ) -> <pHbSocket>
      <pHbSocket> can be used with Harbour socket functions (hb_socket*())
      Please remember that <pHbSocket> handle can be used only for statistics
      and must not be used for any send/receive operations.

  * harbour/contrib/hbnetio/readme.txt
    * updated

  * harbour/contrib/hbwin/tests/olesrv1.prg
    * modified to return HVM error object as OLE object to the client
      on RTE
2011-01-19 16:06:12 +00:00
Przemyslaw Czerpak
0ebf1ee5cb 2011-01-19 07:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexpra.c
    ! fixed casting for C++ mode
2011-01-19 06:21:37 +00:00
Przemyslaw Czerpak
8761be1d95 2011-01-18 22:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexpra.c
  * harbour/include/hbexprb.c
  * harbour/src/common/expropt1.c
    ! fixed codeblock parameter processing in EVAL() call inside codeblock
      when -kc compiler switch is used
    ! fixed potential modification of constant string

  + harbour/contrib/hbfship/users.c
    + added new FlagShip compatible functions:
         USERSMAX() -> <nMaxUsers> (1024)
      (1024 is returned by unlimited FS version)
2011-01-18 21:28:01 +00:00
Przemyslaw Czerpak
d13589ebec 2011-01-18 18:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/contrib/hbfship/dbsetloc.c
  * harbour/contrib/hbfship/hbfship.hbp
    + added new FlagShip compatible function:
         DBSETLOCATE[BLOCK]( <bFor> ) -> <lSet>
2011-01-18 17:14:28 +00:00
Viktor Szakats
196dbfea24 2011-01-18 17:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hblzf/hblzf.c
    * Reformatted by uncrustify (nothing serious).

  * contrib/hbfship/index.c
    ! Fixed double assignment reported by bcc.

  * src/3rd/jpeg/Makefile
  * src/3rd/jpeg/jcmarker.c
  * src/3rd/jpeg/jpeglib.h
  * src/3rd/jpeg/jpeg.dif
  * src/3rd/jpeg/jcmaster.c
  * src/3rd/jpeg/jversion.h
  * src/3rd/jpeg/README
    + Updated to 8c. Patch from Tamas. Thanks!
2011-01-18 16:52:10 +00:00
Przemyslaw Czerpak
42b9b1e0ed 2011-01-18 16:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbfship/exec.c
    ! fixed to work with non *nix platforms

  + harbour/contrib/hbfship/index.c
  * harbour/contrib/hbfship/hbfship.hbp
    + added new FlagShip compatible functions:
         INDEXCOUNT() -> <nIndexCount>
         INDEXNAMES() -> <acIndexNames>
2011-01-18 15:32:14 +00:00