Commit Graph

11556 Commits

Author SHA1 Message Date
Viktor Szakats
2ac8a70f01 2009-08-04 03:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/fm.c
    ! Fixed linux/sunpro warning.
2009-08-04 01:44:32 +00:00
Viktor Szakats
3c7df60cdd 2009-08-04 03:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/linux/sunpro.cf
  * config/sunos/sunpro.cf
    ! Fixed bug I've mistakenly added when applying the patch.
2009-08-04 01:39:15 +00:00
Viktor Szakats
9ca6d04aef 2009-08-04 03:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dynlibhb.c
    ! Fixed to not use dl*() functions on linux/sunpro.

  * config/linux/sunpro.cf
    ! Fixed to include gpm lib.

  ; TOFIX: linux/sunpro linking dies on:
           ../../../../../lib/linux/sunpro/libhbpcre.a(pcrecomp.o): In function `check_auto_possessive':
           pcrecomp.c:(.text+0x2952): undefined reference to `.CG4A.3263'
           pcrecomp.c:(.text+0x2959): undefined reference to `.CG4A.3263'
           pcrecomp.c:(.text+0x2b29): undefined reference to `.CG40.3253'
           pcrecomp.c:(.text+0x2b30): undefined reference to `.CG40.3253'
2009-08-04 01:34:11 +00:00
Viktor Szakats
51416661e9 2009-08-04 03:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_slots.cpp
    ! Deleted windows.h.

  * include/hbsetup.h
    + PPC CPU detection made better.

  * include/hbatomic.h
  * source/vm/maindllp.c
  * source/rtl/gttone.c
    + Using HB_CPU_* macros to detect CPU instead of compiler
      specific solutions.
      Przemek, please review me.

  * source/vm/maindllp.c
    % Using hbver.h constants to form the version number
      included in the .dll name. So it's now maintainence
      free.
    % Reduced redundancy when forming .dll names.

  * source/vm/maindllp.c
  * utils/hbmk2/hbmk2.prg
    * Renamed wce .dll to harbour[mt]-20-wce-arm.dll
    * Renamed non-ARM wce .dlls to harbour[mt]-20-wce.dll

  * INSTALL
  + config/linux/sunpro.cf
    + Added Sun Studio compiler support for Linux platforms.
      Thanks Tamas Tevesz for the tip that this port exists.
      It has various problems to fix, but it's a start.

  * config/sunos/sunpro.cf
    ! Typo in prev commit.
2009-08-04 01:26:12 +00:00
Pritpal Bedi
3fe4811871 2009-08-03 18:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/qt45.qtp

  * contrib/hbqt/qth/QAbstractItemModel.qth
  + contrib/hbqt/qth/QFontMetrics.qth
  * contrib/hbqt/qth/QSize.qth

  * contrib/hbqt/hbqt_slots.cpp
  * contrib/hbqt/Makefile_gen
  * contrib/hbqt/QAbstractItemModel.cpp
  + contrib/hbqt/QFontMetrics.cpp
  * contrib/hbqt/QSize.cpp
  * contrib/hbqt/TQAbstractItemModel.prg
  * contrib/hbqt/TQFontMetrics.prg
    + Added one more class and updated others.
2009-08-04 01:06:08 +00:00
Viktor Szakats
499b0f2c33 2009-08-04 01:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    ! Further tweaked HB_STRICT_ALIGNMENT detection by using
      HB_CPU_* macros.
      Please review and extend/tweak if needed.

  * include/hbdefs.h
  * include/hbsetup.h
  * include/hbinit.h
  * source/vm/fm.c
  * source/common/hbver.c
  * config/sunos/sunpro.cf
    + Patch for Sun support by Tamas Tevesz.
      - SunPro compiler C++ mode support.
      - HB_STRICT_ALIGNMENT config refinement for Sun platform.
      - SunPro compiler version detection will detect raw version
        number for newer releases.
      - SunPro optimization flag tweaks for C/C++ mode.
        Trying to be Blastwave.org compatible as much as possible.
      - LD_OUT -o option tweak for SunPro.
      ; NOTE: -o option should better be revised for all supported
              [gcc] compilers to have space between it and the
              filename.

  * source/vm/extrap.c
    + Changed to use HB_CPU_* macros instead of using compiler
      specific ones.
2009-08-03 23:27:00 +00:00
Viktor Szakats
2828f74525 2009-08-04 00:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Minor.

  * config/global.cf
    + Added screen dump of build settings. Initial version,
      only settings having standard names are being shown.
    + Added some new links to comment.
    ! Fixed $(info ...) usage protection.

  * Makefile
    % Using ':=' assignments where possible.
    ! Fixed to choose OS/2 postinst script based on shell, not
      HB_ARCHITECTURE.
    * Indentation.

  * make_gnu.bat
    + Added alternative GNU Make executable names in comment.

  * source/compiler/cmdcheck.c
    + Added support for --help cmdline option.

  * config/dir.cf
    * Indentation.
2009-08-03 22:52:28 +00:00
Viktor Szakats
15d3303b11 2009-08-02 09:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.sh
  * source/common/hbver.c
    ! Minor fixes to SunPro compiler support by Tamas Tevesz.

  * contrib/xhb/Makefile
  + contrib/xhb/htmlform.ch
  + contrib/xhb/tfile.prg
  + contrib/xhb/html.ch
  + contrib/xhb/tedit.prg
  + contrib/xhb/tframe.prg
  + contrib/xhb/htjlist.prg
  + contrib/xhb/htmlclrs.ch
  + contrib/xhb/thtm.prg
  + contrib/xhb/hterrsys.prg
  + contrib/xhb/tcgi.prg
  + contrib/xhb/cgi.ch
  + contrib/xhb/hjwindow.prg
  + contrib/xhb/htmutil.prg
    + Added cgi library borrowed from xhb.
    ! Warning fixes.
    * Cleanups applied here and there.
2009-08-03 07:06:47 +00:00
Viktor Szakats
3d8cf69cff 2009-08-01 21:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    ! Minor fix to OS/2 shells. Bug introed today.
2009-08-01 19:08:27 +00:00
Viktor Szakats
fd7f3d4a12 2009-08-01 21:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    % Some more opt. Rules are very clean and simple now without 
      redundancy. In fact only one line has be changed to move 
      away bin/lib/obj workdirs. There are no more hidden 
      dependencies on the dir names or layout.
2009-08-01 19:01:37 +00:00
Viktor Szakats
65eefef98f 2009-08-01 20:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    % Minor opt/cleanup.
2009-08-01 18:57:00 +00:00
Viktor Szakats
a9847d159c 2009-08-01 20:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    - Cleaned 3 lines left there by mistake.
2009-08-01 18:53:02 +00:00
Viktor Szakats
ad1d81f46c 2009-08-01 20:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * utils/hbmk2/hbmk2.prg
  * config/global.cf
    + Little bit changed the meaning of HB_BUILD_NAME. It's now
      simply appended to <arch>/<comp> value. So, to create
      '<arch>/<comp>.<bld>' style names HB_BUILD_NAME=.dbg can be
      used. This will result in the flattest dir structure.
      To create a subdir, this can be used:
      HB_BUILD_NAME=/dbg. To create a dir structure:
      HB_BUILD_NAME=/dbg/cpp
    + GRANDP variable is now automatically calculated.

  * config/sunos/sunpro.cf
    ! Minor typo.
2009-08-01 18:50:44 +00:00
Przemyslaw Czerpak
83b409179a 2009-08-01 20:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsetup.h
  * harbour/include/hbthread.h
  * harbour/include/hbatomic.h
  * harbour/source/vm/thread.c
    * added support for MT mode in WinCE builds using raw MS-Windows API
      instead of CRTL wrappers. It's possible that it may badly interact
      with some CRTLs functions we are using in our code so I do not know
      it will work. Please test.
2009-08-01 18:24:40 +00:00
Viktor Szakats
242cc75975 2009-08-01 19:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    * Changed HB_BUILD_SUBDIR to HB_BUILD_NAME.
    ! HB_BUILD_NAME fixes after initial testing. Should be okay now.

  * INSTALL
    + Documented new HB_BUILD_NAME setting.

  * utils/hbmk2/hbmk2.prg
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
    + Added support for -build= option. This is similar to HB_BUILD_NAME
      when building Harbour. Also added ${hb_build} macro.
2009-08-01 18:00:17 +00:00
Viktor Szakats
89c3175137 2009-08-01 17:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/hblog.prg
    + Added HB_LogConsole:Out() method from xhb.
    + Added HB_LogDbf() class from xhb.
    ! Applied fix recently committed to xhb.
      Harbour version uses different (clean) method.

  * contrib/xhb/hblog.prg
  * contrib/xhb/hblognet.prg
  * contrib/xhb/stream.prg
    % Updated code to not require hbcompat.ch.
      Please test.

  * contrib/xhb/trpccli.prg
  * contrib/xhb/hblognet.prg
  * contrib/xhb/hblog.prg
  * contrib/xhb/trpc.prg
  * contrib/xhb/cstruct.prg
    % Updated code to not require xhb.ch.
      Please test.
    ; No more xhb lib code requires these compatibility headers.
2009-08-01 16:07:01 +00:00
Viktor Szakats
f533da4d92 2009-08-01 16:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * bin/postinst.sh
  * source/vm/fm.c
  * source/common/hbver.c
  + config/sunos/sunpro64.cf
  * config/sunos/sunpro.cf
  * ChangeLog
    + Applied second SunPro patch sent by Tamas Tevesz.
      Addressed these former TODOs:
      + Added sunpro64 target.
      + Finalized C compiler options (including warning level settings).
      + Added compiler identification code to hbver.c.
      + dynamic lib creation.

  * utils/hbmk2/hbmk2.prg
    ! Fixed RTE when run on sunos. Needs further work to discover how
      it could run onto that codepath, normally it shouldn't.

  * bin/postinst.sh
    % Cleaned a few remaining 'gpp' HB_COMPILER value checks.
2009-08-01 14:58:20 +00:00
Viktor Szakats
b531d010db 2009-08-01 15:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
  * config/lib.cf
  * config/bin.cf
  * config/globsh.cf
  * config/instsh.cf
  * config/none.cf
  * config/dirsh.cf
    ! Using embedded GNU Tools on OS/2. This fixes the install dir
      creation problems (at least makes it work like on other platforms).
      Fixes HB_BUILD_SUBDIR support. It also allowed to remove all
      remaining hacks to try to create dirs for platforms where 'mkdir -p'
      equivalent isn't available.
      Probably it would be better to solve this using some GNU Make
      tricks, but couldn't find one yet.
    % Using native DOS commands for RM and MD. (MD is not used currently)
    * EXE_DIR, LIB_DIR moved to global.cf
    % Deleted (I hope) unnecessary $(CMDPREF) variables.
      If someone knows what was the purpose of them, we can readd them, but 
      we should then readd them to all shell types and all commands consistently.
    ! Fixed nt dir walking rule for old GNU Make versions.

  + config/os2-rm.exe
    + Added OS/2 GNU rm binary.
2009-08-01 13:49:20 +00:00
Viktor Szakats
3edb418b26 2009-08-01 14:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    + Minor improvements.
    ; NOTE:
      I was experimenting how to return HB_COMPILER
      and HB_ARCHITECTURE values from GNU Make to caller batch/script.
      So far no success.
      Help/ideas would be much appreciated. This would be needed
      to fully switch to GNU Make level arch/comp detection, since
      these values are also needed by make_gnu*.*, mpkg_gnu.* scripts.

  * source/rtl/hbinet.c
    * Renamed iErrorCode to iError.
2009-08-01 12:47:55 +00:00
Viktor Szakats
f87ee247e1 2009-08-01 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/header.cf
  * config/rules.cf
  * config/none.cf
  * config/global.cf
  * config/doc.cf
  * config/lib.cf
  * config/bin.cf
  * config/dir.cf
  * config/test.cf
    + Added HB_COMPILER and HB_ARCHITECTURE autodetection.
      It's experimental yet.
    + Added support for HB_BUILD_SUBDIR envvar which can
      extend the <arch>/<comp> path by arbitrary subdir(s).
      Useful to keep custom binary builds in parallel, f.e.
      release/debug, cpp/c, cpu targets. Notice that hbmk2
      will not be able to use such customized directory
      structure yet, but there'll probably be a cmdline option
      for that in the future (it won't/can't be automatic).
      Notice, this feature doesn't work yet on OS/2 because
      the shell doesn't support 'mkdir -p' equivalent.
    * Cleaned internal ARCH_COMP var usage.
    % Deleted SOURCE_DIR usage, it was a no-op.

  * make_gnu.bat
    ! Fixed autodetection of mingwarm.
    ; Autodetection code will have to be deleted from here anyway.

  + config/os2-mkdir.exe
    + Added OS/2 GNU mkdir executable. (not yet used)

  * examples/superlib/superlib.dif
    + Added 'const'.

  * source/rtl/hbinet.c
    ! Fixed to use hb_retc() to return hb_socketErrorStr() value.
2009-08-01 10:41:04 +00:00
Przemyslaw Czerpak
9b3a931176 2009-07-31 13:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbthread.h
    ! unblocked MT compilation for WinCE
2009-07-31 11:21:30 +00:00
Viktor Szakats
81dcbfa6ec 2009-07-31 12:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbinet.c
    % Minor internal type cleanup.
2009-07-31 10:33:58 +00:00
Viktor Szakats
c7da271ebe 2009-07-31 12:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbinet.c
    % Cleaned old error description handling logic. Now the error
      desc is dynamically retrieved instead of being stored along
      the error code.
2009-07-31 10:30:43 +00:00
Przemyslaw Czerpak
352ca04d7b 2009-07-31 11:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbinet.c
    ! fixed typo in received bytes calculation. It was reported as warning
      in BCC builds - thanks to Enrico.
2009-07-31 09:58:11 +00:00
Przemyslaw Czerpak
b58897acb5 2009-07-31 11:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
    ! small fix in previous commit description
2009-07-31 09:35:50 +00:00
Przemyslaw Czerpak
bbd1e6b0a4 2009-07-31 11:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbinet.c
    ! modified hb_inetRecv[All]() to always return number
      of bytes read if at least one byte was successfully read
      just like in documentation so it's not longer necessary to
      use hb_inetCount() to check real number of read bytes.
      On error they return -1 and 0 when foreign host closed connection.
    ! modified hb_inetSend[All]() to always return number of written
      bytes if at least one byte was successfully written so it's not
      longer necessary to use hb_inetCount() to check real number of
      written bytes. On error they return -1.
    ! modified hb_inetRecvLine() to return "" on errors and always
      set numeric value with error code or number of bytes read
      in 2-nd parameter passed by reference
    ! modified hb_inetDataReady() to return -1 instead of .F. to
      indicate errors when socket is not open socket
    ! modified  hb_inetRecvLine() and hb_inetRecvEndBlock() to work
      like in documentation and set in 2-nd parameter passed by
      reference the size of read line with line terminator, -1
      or error and 0 when foreign host closed connection.
    ! modified hb_inetRecvEndBlock() to always use default EOL when
      there is no not empty string in passed string parameter or
      passed array with line terminators
    ! fixed some small differences between hb_inetRecvLine() and
      hb_inetRecvEndBlock()
    ! fixed returned values in hb_InetDGramSend() and hb_InetDGramRecv()
      to be synced with documentation
    * minor: modified hb_inetRecvEndBlock() to use as default EOL
      s_inetCRLF instead of hardcoded "\r\n"
    * eliminated some redundant code
    + added automatic socket initialization in windows builds
    % added support for read ahead buffer in hb_inetRecvLine() and
      hb_inetRecvEndBlock() and updated other functions which may
      interact with it. It greatly improved the speed of code
      which extensively uses above functions.

   Warning!!! Above modifications may force updating other code which used
              some undocumented hb_inet*() functions behavior i.e. some side
              effects in previous implementation. Please update your code
              if necessary.

  * harbour/doc/inet.txt
    ! modified hb_inetAccept() documentation wrongly describing value
      returned on error when it's NIL

  * harbour/config/os2/watcom.cf
    ! fixes for real OS2 command processor - please test
2009-07-31 09:32:11 +00:00
Viktor Szakats
1058de3021 missed word from ChangeLog entry:
added first round of Sun Pro _support_.
2009-07-31 09:31:48 +00:00
Viktor Szakats
b3cc100468 2009-07-31 11:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
  * include/hbsetup.h
  * include/hbinit.h
  * source/vm/fm.c
  + config/sunos/sunpro.cf
    + Added first round of Sun Pro (Sun Studio) compiler.
      Contribution of Tamas Tevesz.
    ; TODO:
      + Add other Sun Pro CPU targets.
      * Finalize __inline keyword usage. (currently in fm.c)
        Przemek, could you take a look at it?
      ! Fix warning option.
      + Add compiler identification code to hbver.c.
      + hbmk2 support.
      + dynamic lib creation.

  * utils/hbmk2/hbmk2.prg
    * Minor rename.

  * contrib/hbclipsm/gauge.c
    % Minor opt, plus removed cast.

  * contrib/hbwin/wce_smsc.c
  * contrib/hbwin/wce_sim.prg
    * Minor formatting.
2009-07-31 09:12:15 +00:00
Francesco Saverio Giudice
14bb643a9a 2009-07-31 10:26 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/examples/httpsrv/uhttpd.prg
    * Uploaded Handler_HrbScript() changes missed in previous upload.
      I need vacations!
2009-07-31 08:28:22 +00:00
Francesco Saverio Giudice
a66d739f24 2009-07-31 10:16 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/Changelog
    * fixed wrong month in previous updates
  * harbour/examples/httpsrv/uhttpd.prg
    * Fixed readRequest() and Handler_HrbScript() functions as per
      Przemek suggestions. Thank you.
2009-07-31 08:20:13 +00:00
Francesco Saverio Giudice
592d200105 2009-04-30 18:56 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/Changelog
    * minor fix to previous entry
2009-07-30 16:57:15 +00:00
Francesco Saverio Giudice
3f6a3e9ec3 2009-04-30 18:49 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/examples/httpsrv/uhttpd.prg
    * Added some hb_ToOutDebug() points garded from DEBUG_ACTIVE define
      for debugging purpose
  * harbour/examples/httpsrv/modules/showcounter.prg
  * harbour/examples/httpsrv/modules/tableservletdb.prg
    * fixed path for current directory
      as now define all _SERVER variables
  * harbour/examples/httpsrv/cookie.prg
    * fixed error on deleting cookie
2009-07-30 16:54:13 +00:00
Viktor Szakats
b3e422d967 2009-07-30 12:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  + contrib/hbwin/hbsim.ch
  + contrib/hbwin/wce_simc.c
  + contrib/hbwin/wce_smsc.c
  + contrib/hbwin/wce_sim.prg
  + contrib/hbwin/tests/testsim.prg
    + Added SIM reading and SMS sending interfaces for WinCE.
      This is a contribution from Jose Luis Capel. Many thanks for it.

    ; NOTE:
      mingwarm doesn't support these APIs unfortunately, poccarm does,
      and msvcarm as well, but I couldn't try the latter.
      (I've applied formatting, cleanups and some minor fixes)
      Jose and all, please review and test.

  * examples/httpsrv/uhttpd.prg
  * examples/httpsrv/uhttpd.hbp
  * examples/httpsrv/readme.txt
    % Given less focus on the socket selection issue. Now the only
      difference is .prg level API and local API is fully portable.
    * Made the proprietary one the default on all platforms.
      (it looks much more obvious/simple to use, also requires less
      STATIC variables)

  * contrib/hbwin/win_misc.c
    ! Fix for WinCE.

  * ChangeLog
    ! Typos.
2009-07-30 10:01:06 +00:00
Viktor Szakats
1237de4177 2009-07-30 08:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/common/hbdate.c
    + Enhancement to hb_timeUTCOffset(). (using thread safe 
      version of gmtime() where available, and precisely checking 
      tm_isdst). Thanks to Przemek.
2009-07-30 06:50:56 +00:00
Viktor Szakats
0e4021d699 2009-07-30 06:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/common/hbdate.c
    ! Refixed for HB_HAS_LOCALTIME_R.
2009-07-30 04:59:48 +00:00
Viktor Szakats
072c6896c4 2009-07-30 06:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/common/hbdate.c
    ! Fixed typos in last modif.
2009-07-30 04:49:12 +00:00
Viktor Szakats
ecb56859df 2009-07-30 06:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/common/hbdate.c
    ! Fixed for some systems where tm->tm_gmtoff isn't available.
      (like sunos). Thanks to Tamas Tevesz for report and pointer.

  * contrib/rddads/adsfunc.c
    + ADSCREATESAVEPOINT()
      ADSROLLBACKSAVEPOINT()
      Added support for 3rd optional parameter on Harbour level.

  * include/hbapi.h
  * source/vm/extend.c
    + hb_parnidef(), hb_parnldef() to give a faster and shorter
      alternative to HB_ISNUM( x ) ? hb_parn[i|l]( x ) : <value>
      construct, which quite often occure in C interface code.
      We may also add a hb_parl() version which returns TRUE,
      this covers most real-life usages.

  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    % Deleted local hb_parnidef() wrapper.
2009-07-30 04:36:35 +00:00
Viktor Szakats
d518e481c5 2009-07-30 00:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbextern.ch
  * source/rtl/dateshb.c
    + Added HB_UTCOFFSET() -> <nSecs> core function to return UTC offset
      as signed number in seconds.

  * contrib/hbwin/win_misc.c
    + Copied WIN_SYSREFRESH() from httpsrv. Bit reworked (types, goto,
      64-bit compatibility, unnecessary outer loop), pls review.

  * examples/httpsrv/uhttpd.hbp
  - examples/httpsrv/uhttpdc.c
  * examples/httpsrv/uhttpd.prg
    * HB_UTCOFFSET() renamed to UHTTPD_UTCOFFSET() and rewritten as .prg.
    ! Using __PLATFORM__WINDOWS to enable WIN_SYSREFRESH() calls.
2009-07-29 22:46:19 +00:00
Viktor Szakats
4607e2fd7a 2009-07-29 23:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdate.h
  * source/common/hbdate.c
  * contrib/hbtip/utils.c
  * examples/httpsrv/uhttpdc.c
    + Added hb_timeUTCOffset( void ) -> long (in seconds)
    % Using hb_timeUTCOffset() in TIP_TIMESTAMP() and HB_UTCOFFSET().
      These functions can now be implemented on .prg level if we
      add a .prg level wrapper for hb_timeUTCOffer(), but I have no
      good idea which format to use to return this value, so maybe
      simple signed number of seconds.
2009-07-29 21:47:28 +00:00
Viktor Szakats
28b15bce39 2009-07-29 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/utils.c
  * contrib/hbtip/tests/tiptime.prg
    ! Reworked TIP_TIMESTAMP():
      ! Applied fix from xhb. (with cleanups/optimizations and without
        newly introduced bug)
      + Added support for DATETIME type as first parameter.
        (at the same time second numeric time parameter is deprecated)
      % Simplified code, more optimal API/memory usage.
      * Second parameter will always override default time, if passed.
        This is a little bit different, but more natural behavior than
        before.
      + Replaced meaningless test code with some better one.
    ; NOTE: We should probably add some core functions to detect TZ offset.

  * examples/httpsrv/uhttpdc.c
    ! Applied above fix/cleanups to HB_UTCOFFSET().

  * source/common/hbdate.c
    * Minor formatting.
2009-07-29 20:39:57 +00:00
Viktor Szakats
0bacb356a2 2009-07-29 18:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor formatting.
2009-07-29 16:03:33 +00:00
Viktor Szakats
1e91d9af72 2009-07-29 17:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dlmalloc.c
    ! Restored 2.8.3.
      Huge amount of warnings (all Windows compilers), compile time (pocc, watcom)
      and build time (mingw) errors, incompatibility with fm.c parts, with 2.8.4,
      so I opted to revert.
      I hope someone will give it another go, as it should provide better MT
      performance on Windows, unfortunately this feature doesn't seem to be well 
      tested at this point.

  * config/lib.cf
    ! Fix dir creation for hbpp executable with os2 shells.
2009-07-29 15:47:59 +00:00
Przemyslaw Czerpak
efae473295 2009-07-29 11:53 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! fixed interface settings for multicast in IPv6 - in IPv6 interface
      indexes are used instead of addresses
2009-07-29 09:53:54 +00:00
Viktor Szakats
f769e560ad 2009-07-29 11:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/gtcrs.c
    + Utilizing write return values and returning success from low 
      level write functions to satisfy linux/gcc insisting on warnings.
2009-07-29 09:09:25 +00:00
Viktor Szakats
d6d9e74142 2009-07-29 10:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/gtcrs.c
    ! Suppress Linux warnings complaining about dropping return
      values of write operations.
2009-07-29 08:56:09 +00:00
Viktor Szakats
9a976e633e 2009-07-29 10:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbsocket.c
    ! Added missing 'static'.
2009-07-29 08:22:38 +00:00
Viktor Szakats
955f02d619 2009-07-29 09:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dlmalloc.c
    + Updated to 2.8.4 (from 2.8.3)
      Reapplied two local patches (the rest of local fixes were applied upstream):
         2009-07-28 16:31 UTC+0200 Przemyslaw Czerpak
         2009-03-30 22:17 UTC+0200 Przemyslaw Czerpak
    ; From the dlmalloc changelog:
      V2.8.4 Wed May 27 09:56:23 2009  Doug Lea  (dl at gee)
        * Use zeros instead of prev foot for is_mmapped
        * Add mspace_track_large_chunks; thanks to Jean Brouwers
        * Fix set_inuse in internal_realloc; thanks to Jean Brouwers
        * Fix insufficient sys_alloc padding when using 16byte alignment
        * Fix bad error check in mspace_footprint
        * Adaptations for ptmalloc; thanks to Wolfram Gloger.
        * Reentrant spin locks; thanks to Earl Chew and others
        * Win32 improvements; thanks to Niall Douglas and Earl Chew
        * Add NO_SEGMENT_TRAVERSAL and MAX_RELEASE_CHECK_RATE options
        * Extension hook in malloc_state
        * Various small adjustments to reduce warnings on some compilers
        * Various configuration extensions/changes for more platforms. Thanks
           to all who contributed these.
2009-07-29 07:38:32 +00:00
Przemyslaw Czerpak
f9561f17c8 2009-07-29 05:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    * force blocking IO on socket returned by accept() - on some system
      new sockets can inherit blocking IO flag from the listening socket
2009-07-29 03:20:01 +00:00
Przemyslaw Czerpak
fe03d112cb 2009-07-29 04:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! finished hb_socketResolveAddr() in systems where getaddrinfo()
      is not available
2009-07-29 02:25:02 +00:00
Przemyslaw Czerpak
6a49526b0f 2009-07-29 00:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbsocket.c
    ! disabled inet_pton() and inet_ntop() in OS2 GCC builds.
2009-07-28 22:50:50 +00:00