Commit Graph

1296 Commits

Author SHA1 Message Date
Viktor Szakats
135cfb8a6e 2009-08-10 02:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
  * config/bsd/gcc.cf
  * config/wce/msvcarm.cf
  * config/wce/mingwarm.cf
  * config/wce/poccarm.cf
  * config/darwin/gcc.cf
  * config/hpux/gcc.cf
  * config/dos/djgpp.cf
  * config/win/cygwin.cf
  * config/win/mingw.cf
  * config/linux/gcc.cf
  * config/linux/icc.cf
  * config/linux/sunpro.cf
  * config/os2/gcc.cf
  * config/sunos/gcc.cf
  * config/sunos/sunpro.cf
    % Using ':=' instead of '=' where possible.
      (incomplete. pass two)
      The rest is really the core and need deeper examination
      of ordering and variable dependency. There is probably more
      room for improvement.
2009-08-10 00:47:30 +00:00
Viktor Szakats
ffbe793580 2009-08-10 02:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sessid.prg
  * contrib/hbtip/cgi.prg
  * contrib/hbtip/encoder.prg
  * contrib/hbtip/mail.prg
  * contrib/hbtip/sendmail.prg
  * contrib/hbtip/httpcli.prg
  * contrib/hbtip/smtpcli.prg
  * contrib/hbtip/client.prg
  * contrib/hbtip/ftpcli.prg
  * contrib/hbtip/popcli.prg
    + Added TIP_SSL() function to return whether SSL functionality is available
      or not.
    % Deleted unnecessary tip.ch header inclusions.
    + Added TIPCLIENT():INETTIMEOUT() method to set / refresh timeout.
    % Direct hb_inetTimeout() calls either optimized out (after ::super:open()),
      or replaced by ::hb_inetTimeout() calls.
    ! Fixed to also accept pop3s where pops is accepted.
    + TIPCLIENTPOP() will set default port to 995 in pop3s mode.
    + TIPCLIENTSMTP() will set default port to 465 in smtps mode.
    + TIPCLIENTHTTP() will set default port to 443 in https mode.
    + Some steps towards SMTP STARTTLS authentication.
    ! Uncommented setting "Content-Length" in TIPMAIL:SETBODY().
      gmail rejects attachment without it. It's also needed for internal
      consistency as TIPMAIL:NEW() sets this data.
    ! HB_SENDMAIL() fixed to use HB_MEMOREAD() to read attachment.
    ! HB_SENDMAIL() fixed to load the attachment if it was passed
      as a content/name pair array. Handling all combinations now.
    * HB_SENDMAIL() changed to not exit on the first invalid attachment
      specification, but simply ignore these. Feels more natural that way,
      but the old behaviour can be restored if there was a reason for it
      which overlooked.
    * Formatting.
    ; TOFIX: hbtip currently has two different facilities to find out the
             MIME type of a given extension: TIP_FILEMIMETYPE() and
             HB_SETMIMETYPE(). First one also looks into the content while
             the second one has a much more extensive extension based
             detection. There is also a 3rd and separate function which
             aims to detect whether a type is binary or text. This isn't
             very efficient this way, unless there is some reasoning
             behing current logic.

  * contrib/hbtip/log.prg
    ! Fixed to reset internal file handle to empty value on close.

  * contrib/hbssl/sslctx.c
    ! Added !OPENSSL_NO_STDIO guard for functions where it applies().
    + Added SSL_CTX_LOAD_VERIFY_LOCATIONS().

  * config/global.cf
    ! Deleted two debug lines from prev commit.
2009-08-10 00:10:46 +00:00
Viktor Szakats
8106523a59 2009-08-09 21:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    ! Fixed 'sh' HB_SHELL detection. Problem experienced with
       Cygwin GNU Make, where SHLVL isn't defined on the first
       level. Now also checking for SHELL=/bin/sh to detect sh
       shell.

  * tests/multifnc/Makefile
  * external/sqlite3/Makefile
  * external/libhpdf/Makefile
  * external/libpng/Makefile
  * contrib/gtalleg/Makefile
  * contrib/hbodbc/Makefile
  * contrib/hbtpathy/Makefile
  * contrib/hbsqlit3/Makefile
  * contrib/hbblat/Makefile
  * contrib/hbqt/Makefile
  * contrib/hbfbird/Makefile
  * contrib/hbxbp/Makefile
  * contrib/hbcurl/Makefile
  * contrib/gtqtc/Makefile
  * contrib/rddsql/sddfb/Makefile
  * contrib/rddsql/sddodbc/Makefile
  * contrib/rddado/Makefile
  * contrib/gtwvg/Makefile
  * contrib/rddads/Makefile
  * contrib/hbfimage/Makefile
  * contrib/hbtip/Makefile
  * contrib/hbwin/Makefile
  * contrib/hbssl/Makefile
  * source/vm/Makefile
  * source/vm/vmmt/Makefile
  * source/rtl/gtdos/Makefile
  * source/rtl/gtwin/Makefile
  * source/rtl/gtxwc/Makefile
  * source/rtl/gtcrs/Makefile
  * source/rtl/gttrm/Makefile
  * source/rtl/Makefile
  * source/rtl/gtos2/Makefile
  * source/rtl/gtsln/Makefile
  * source/rtl/gtgui/Makefile
  * source/rtl/gtwvt/Makefile
  * source/rdd/Makefile
  * source/rdd/dbffpt/Makefile
    ! Including 'global.cf' directly to make HB_ARCHITECTURE/HB_COMPILER/HB_COMMERCE
      variables work in case we're relying on autodetection.
    ; TODO: May need to do this for a few other cases where detection is relying
            on some additional variables. Like HB_XBUILD, which needs to be
            cleaned further, maybe autodetection added.
    ; NOTE: Above changes mean that from now on for basic build usage it's
            enough to have the compiler in PATH and to issue a simple 'make'
            or 'mingw32-make' (or whatever GNU Make is called in that environment),
            and make process should just work. IOW, no need to go through 
            "starter" scripts in root (make_gnu.*).
2009-08-09 19:52:17 +00:00
Viktor Szakats
504ca98e1c 2009-08-09 21:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* tests/hbpptest/Makefile
  * tests/bldtest/Makefile
  * tests/Makefile
  * tests/multifnc/Makefile
  * doc/en-EN/Makefile
  * doc/Makefile
  * external/sqlite3/Makefile
  * external/libhpdf/Makefile
  * external/libpng/Makefile
  * external/Makefile
  * include/Makefile
  * source/hbextern/Makefile
  * source/pp/Makefile
  * source/lang/Makefile
  * source/vm/maindllh/Makefile
  * source/vm/mainstd/Makefile
  * source/vm/maindllp/Makefile
  * source/vm/Makefile
  * source/vm/vmmt/Makefile
  * source/vm/mainwin/Makefile
  * source/main/Makefile
  * source/debug/Makefile
  * source/common/Makefile
  * source/nortl/Makefile
  * source/macro/Makefile
  * source/rtl/gtdos/Makefile
  * source/rtl/gtwin/Makefile
  * source/rtl/gtxwc/Makefile
  * source/rtl/gtcrs/Makefile
  * source/rtl/gtstd/Makefile
  * source/rtl/gttrm/Makefile
  * source/rtl/Makefile
  * source/rtl/gtcgi/Makefile
  * source/rtl/gtos2/Makefile
  * source/rtl/gtsln/Makefile
  * source/rtl/gtpca/Makefile
  * source/rtl/gtgui/Makefile
  * source/rtl/gt_tpl/Makefile
  * source/rtl/gtwvt/Makefile
  * source/hbpcre/Makefile
  * source/codepage/Makefile
  * source/rdd/dbfntx/Makefile
  * source/rdd/nulsys/Makefile
  * source/rdd/Makefile
  * source/rdd/dbfnsx/Makefile
  * source/rdd/dbfcdx/Makefile
  * source/rdd/hsx/Makefile
  * source/rdd/usrrdd/rdds/Makefile
  * source/rdd/usrrdd/Makefile
  * source/rdd/dbffpt/Makefile
  * source/rdd/hbsix/Makefile
  * source/compiler/Makefile
  * source/hbzlib/Makefile
  * source/Makefile
  * utils/hbformat/Makefile
  * utils/hbmk2/Makefile
  * utils/hbtest/Makefile
  * utils/hbi18n/Makefile
  * utils/hbrun/Makefile
  * contrib/gtalleg/Makefile
  * contrib/hbmysql/Makefile
  * contrib/hbct/Makefile
  * contrib/xhb/Makefile
  * contrib/hbodbc/Makefile
  * contrib/hbtpathy/Makefile
  * contrib/hbgt/Makefile
  * contrib/hbmzip/Makefile
  * contrib/hbsqlit3/Makefile
  * contrib/hbblat/Makefile
  * contrib/hbqt/Makefile
  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/Makefile_gen
  * contrib/hbfbird/Makefile
  * contrib/hbziparc/Makefile
  * contrib/hbxbp/Makefile
  * contrib/xpp/Makefile
  * contrib/hbnf/Makefile
  * contrib/Makefile
  * contrib/hbcurl/hbcurls/Makefile
  * contrib/hbcurl/Makefile
  * contrib/gtqtc/Makefile
  * contrib/rddsql/sddmy/Makefile
  * contrib/rddsql/sddpg/Makefile
  * contrib/rddsql/sddfb/Makefile
  * contrib/rddsql/sddodbc/Makefile
  * contrib/rddsql/Makefile
  * contrib/hbhpdf/Makefile
  * contrib/rddado/Makefile
  * contrib/gtwvg/Makefile
  * contrib/hbpgsql/Makefile
  * contrib/hbclipsm/Makefile
  * contrib/rddads/Makefile
  * contrib/hbfimage/Makefile
  * contrib/hbgd/Makefile
  * contrib/hbtip/Makefile
  * contrib/hbbmcdx/Makefile
  * contrib/hbvpdf/Makefile
  * contrib/hbssl/Makefile
  * contrib/hbbtree/Makefile
    % Using ':=' instead of '=' where possible.
    ; TODO: Central make files (.cf).

  * config/global.cf
  * config/bin.cf
  * config/globsh.cf
  * config/dir.cf
  * config/bsd/gcc.cf
  * config/bsd/global.cf
  * config/c.cf
  * config/wce/msvcarm.cf
  * config/wce/global.cf
  * config/wce/mingwarm.cf
  * config/wce/poccarm.cf
  * config/rules.cf
  * config/hpux/gcc.cf
  * config/darwin/gcc.cf
  * config/darwin/global.cf
  * config/dos/watcom.cf
  * config/dos/djgpp.cf
  * config/win/watcom.cf
  * config/win/icc.cf
  * config/win/global.cf
  * config/win/cygwin.cf
  * config/win/msvc.cf
  * config/win/xcc.cf
  * config/win/mingw.cf
  * config/win/pocc.cf
  * config/win/bcc.cf
  * config/linux/watcom.cf
  * config/linux/gcc.cf
  * config/linux/icc.cf
  * config/linux/sunpro64.cf
  * config/linux/sunpro.cf
  * config/os2/watcom.cf
  * config/os2/gcc.cf
  * config/sunos/gcc.cf
  * config/sunos/sunpro64.cf
  * config/sunos/sunpro.cf
    % Using ':=' instead of '=' where possible.
      (incomplete. pass one)

  * config/none.cf
    * Little change in text.

  * config/global.cf
    ! Fixed HB_ARCHITECTURE mis-detection as wce for a few win compilers.
2009-08-09 19:23:43 +00:00
Viktor Szakats
edf24746e1 2009-08-09 19:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* Makefile
  * tests/Makefile
  * contrib/hbmisc/Makefile
  * contrib/hbwin/Makefile
  * utils/Makefile
    % Started converting '=' operators to ':=' where applicable.
    ; TODO: Rest of Makefiles.

  * contrib/hbwin/Makefile
    ! Including 'global.cf' directly to make HB_ARCHITECTURE/HB_COMPILER
      variables work in case we're relying on autodetection.
    ; TOFIX: Rest of Makefiles.

  * config/global.cf
    + Added self-inclusion check to allow adding this .cf file
      directly to Makefiles in order to force platform detection
      for cases where this information is needed for local decisions.

  * config/dos/global.cf
    - Deleted 'ifndef MK' construct. Purpose unknown, and not
      found similar for other platforms.

  * config/global.cf
  * config/globsh.cf
    + Added my copyright.

  * contrib/hbtpathy/tpwin.c
  * contrib/hbtpathy/tpos2.c
    % Deleted unnecessary headers.
2009-08-09 17:56:46 +00:00
Viktor Szakats
85b368ae92 2009-08-09 01:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * config/global.cf
  * config/rules.cf
  * config/dos/watcom.cf
  * config/win/watcom.cf
  * config/os2/watcom.cf
    + Added HB_BUILD_UNICODE=yes[|no] option to control UNICODE builds
      on win/wce platforms.
2009-08-08 23:46:18 +00:00
Viktor Szakats
0cd1b77b32 2009-08-09 01:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    + Added build presets based on some predefined HB_BUILD_NAME values:
      HB_BUILD_NAME=.r     RELEASE
      HB_BUILD_NAME=.rx    RELEASE C++
      HB_BUILD_NAME=.ru    RELEASE UNICODE
      HB_BUILD_NAME=.rux   RELEASE UNICODE C++
      HB_BUILD_NAME=.d     DEBUG
      HB_BUILD_NAME=.dx    DEBUG C++
      HB_BUILD_NAME=.du    DEBUG UNICODE
      HB_BUILD_NAME=.dux   DEBUG UNICODE C++
    ; Initial/experimental commit, names may change yet.

  * external/sqlite3/Makefile
  * external/libhpdf/Makefile
  * external/libpng/Makefile
    % Minor opt.
2009-08-08 23:36:24 +00:00
Viktor Szakats
7c96b4cb9d 2009-08-08 13:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.bat
    + Showing error message if HB_BIN_INSTALL is not set.

  * config/instsh.cf
    * "$(COMSPEC) /C" -> "$(CMDPREF)"
2009-08-08 11:21:43 +00:00
Maurilio Longo
c1594b69d0 2009-08-07 23:43 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)
* config/globsh.cf
     ! fixed OS/2 section, os2-mkdir needs forward slashes as directory
       separators, not backslashes.
   * config/instsh.cf
     ! fixed OS/2 section, work around for OS/2 shell max line lenght.
   * config/os2/global.cf
     * EXE_EXT set to .exe
2009-08-07 21:50:27 +00:00
Viktor Szakats
1f8544419c 2009-08-07 19:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.cmd
  * bin/postinst.bat
  * bin/hb-mkdyn.bat
    ! Fixed to handle case when HB_*_INSTALL var is empty.
      Related features will be skipped in this case.

  * config/global.cf
    ! Don't try to set HB_*_INSTALL vars if HB_INSTALL_PREFIX is empty.
2009-08-07 17:06:45 +00:00
Viktor Szakats
fe728551ac 2009-08-07 18:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor formatting.

  * source/pp/Makefile
  * config/prg.cf
  * config/global.cf
  * config/bin.cf
  * config/globsh.cf
  * config/bsd/gcc.cf
  * config/bsd/global.cf
  * config/wce/msvcarm.cf
  * config/wce/global.cf
  * config/wce/mingwarm.cf
  * config/wce/poccarm.cf
  * config/rules.cf
  * config/darwin/gcc.cf
  * config/darwin/global.cf
  * config/hpux/gcc.cf
  * config/hpux/global.cf
  * config/dos/watcom.cf
  * config/dos/global.cf
  * config/dos/djgpp.cf
  * config/win/watcom.cf
  * config/win/icc.cf
  * config/win/cygwin.cf
  * config/win/global.cf
  * config/win/msvc.cf
  * config/win/xcc.cf
  * config/win/mingw.cf
  * config/win/pocc.cf
  * config/win/bcc.cf
  * config/linux/watcom.cf
  * config/linux/gcc.cf
  * config/linux/icc.cf
  * config/linux/global.cf
  * config/linux/sunpro.cf
  * config/os2/watcom.cf
  * config/os2/gcc.cf
  * config/os2/global.cf
  * config/sunos/gcc.cf
  * config/sunos/global.cf
  * config/sunos/sunpro.cf
    * EXE_* variables renamed to BIN_*.
    % BIN_EXT initialization moved to <arch>/global.cf.
2009-08-07 16:21:09 +00:00
Viktor Szakats
5d1b5bb178 2009-08-07 15:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    ! Minor fix to prev.
2009-08-07 13:54:06 +00:00
Viktor Szakats
6a374a67ec 2009-08-07 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    + Added HB_COMPILER autodetection for darwin/hpux/bsd.
2009-08-07 13:49:10 +00:00
Viktor Szakats
b3de6192cb 2009-08-07 02:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to ignore filtered -gt switches (like -gtxwc{unix})
      without warning message.
    + Some small steps towards adding sunpro[64] support to hbmk2.
    % Merged watcom compiler support code for different platforms.
      (option casing also synced)
    ! Added "{LS}" (resources) to os2/watcom compiler cmdline.
    ! Added -bt=os2/nt to resource compiler cmdline for watcom.
    + Added '-p=64' option to win|os2|dos/watcom lib cmdline.
    + Added '-q' option to watcom wlib/wrc cmdlines.
    ! Fixed debug linker option for watcom.

  * config/dos/watcom.cf
  * config/win/watcom.cf
  * config/linux/watcom.cf
  * config/os2/watcom.cf
    + Added doc link to wlib tool.
    * Synced link option casing with each other and hbmk2.
    % Deleted 'export DOS4G=quiet' for win and os2.

  * config/global.cf
    + Minor cosmetic.
2009-08-07 00:54:59 +00:00
Viktor Szakats
604ee44854 2009-08-05 10:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.sh
  * make_gnu.sh
  + config/linux/sunpro64.cf
  * config/linux/sunpro.cf
  * config/sunos/sunpro64.cf
  * config/sunos/sunpro.cf
    ; Applyied patch by Tamas Tevesz.
    ! Fixes for Sun Pro so generation.
    + Added sunpro64.cf for linux.
    + Added HB_ISAOPT variable to hold ISA selection switches.
    + Added $(HB_CCPATH)$(HB_CCPREFIX) to sunos/sunpro.cf to CC/LD.
    ! Typo in make_gcc.sh (== -> =)
2009-08-05 08:07:03 +00:00
Viktor Szakats
04e59dcc83 2009-08-05 09:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    ! Typos in recent entries.

  * source/common/hbver.c
    * Cosmetic patch by Tamas Tevesz.

  + config/readme.txt
    + Added readme.txt to include license and links to included
      binaries and sources.
    ; It'd be probably better to delete all these binaries
      (GNU Makes are only there for convenience), but then
      'mkdir -p' and 'rm -f -r' commands need to be hacked somehow
      for DOS and OS/2 shells. Also a proper copy cmd is needed
      for DOS. Maybe we should simple write these simple utilities
      using a public domain license and include the binaries of these.
      Couldn't find the source of the OS/2 tools' binary releases.

  * config/mingw32-make.exe
  * config/dj-rm.exe
  * config/dj-cp.exe
  * config/dj-mkdir.exe
    * Updated to match the exact binaries referred to in readme.txt.
      (no change in functionality or version numbers)
2009-08-05 07:39:27 +00:00
Viktor Szakats
abb6886ede 2009-08-04 14:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtsln/kbsln.c
    ! Silenced linux/sunpro warning.

  * config/linux/sunpro.cf
    ! Minor fix.
2009-08-04 12:59:48 +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
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
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
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
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
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
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
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
Viktor Szakats
64d32725b8 2009-07-28 18:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * make_gnu.sh
    % Deleted crs/sln detection. Not needed anymore for hbmk.cfg
      generation.

  * config/global.cf
    ! Don't set DOC dir for *nix targets.
2009-07-28 16:26:24 +00:00
Viktor Szakats
b3a432118c 2009-07-28 15:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.bat
  * config/global.cf
    ! Fixed HB_BIN_COMPILE usage in postinst.bat. This variable
      wasn't exported, so parts of postinst.bat didn't work with
      cross-builds. Now HB_HOST_BIN_DIR is used instead, which
      got exported from global.cf.

  * INSTALL
    * Minor.
2009-07-28 14:14:50 +00:00
Viktor Szakats
71b32fe18b 2009-07-28 10:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
  * config/globsh.cf
    + Moved $(DIRSEP) defaulting to global.cf for non-sh shells.

  * config/global.cf
    ! Reverted prev opt. $(DIRSEP) must be used as the values are
      exported and used in native script/batch files.
2009-07-28 08:43:51 +00:00
Viktor Szakats
58de04190f 2009-07-28 09:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Do not install hbpp executable when HB_HOST_BUILD == 'lib'.
      Please verify me.

  * config/global.cf
    % Minor simplification to HB_*_INSTALL defaulting.

  * utils/hbmk2/hbmk2.prg
    * Minor formatting.
2009-07-28 07:14:16 +00:00
Viktor Szakats
4b7833ba16 2009-07-28 01:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/libhpdf/Makefile
    + Enabled for os2/watcom.

  * include/hbdefs.h
    * Minor addition to new type section.
      'bool' is the new type for boolean, so maybe we should
      use them instead of hbBool/TRUE/FALSE.

  * source/rtl/hbsocket.c
    ! Added one 'static'.
    * Added one pair of paranthesis (formatting).

  * source/rtl/hbgtcore.c
  * source/rtl/hbsha1.c
  * contrib/hbwin/win_prt.c
    * Minor formatting.

  * contrib/xhb/xhbfunc.c
    + Added copyright holder for HB_F_EOF().

  * contrib/hbssl/ssl.c
    ! Minor typo in comment.

  * contrib/hbssl/hbssl.h
    ! Added HB_EXTERN_BEGIN/HB_EXTERN_END.

  * config/global.cf
    + Added HB_UNIX_COMPATIBLE variable.
    + Setting default lib install dir to lib/<arch>/<comp>
      on non-*nix systems.

  * examples/httpsrv/socket.c
    + Copied from uhttpd2. Please verify.
2009-07-27 23:54:06 +00:00
Viktor Szakats
4a51d89404 2009-07-23 18:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ source/rtl/hbfeof.c
  * source/rtl/Makefile
  * source/rtl/philes.c
    ! HB_FEOF() moved to separate file to ease name collision
      situations.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/evpmd.c
  * contrib/hbssl/evpenc.c
    ! Fixed buffer sizes, after valgrind test.
      (off by one bugs. hb_storclen_buffer()/hb_retclen_buffer() need
      one byte extra above the size returned, in order to hold the 
      EOS char)

  * contrib/xhb/freadlin.c
  * contrib/hbqt/qth/QFtp.qth
  * contrib/hbqt/qth/QHttp.qth
  * contrib/hbqt/QFtp.cpp
  * contrib/hbqt/QHttp.cpp
  * contrib/hbcurl/hbcurl.c
  * contrib/hbwin/win_prt.c
    ! Fixed similar to above allocation errors.

  * config/global.cf
    + Added HB_???_INSTALL initialization. Just a step, needs more
      work before making it a replacement for current method.
2009-07-23 17:22:31 +00:00
Viktor Szakats
2cefe1006f 2009-07-23 14:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/evpciph.c
    + EVP_OPENINIT(), EVP_OPENUPDATE(), EVP_OPENFINAL()
      (not tested yet)
    ; TOFIX: EVP_SEALINIT() - does something nasty with memory.

  * contrib/hbssl/ssl.c
    ! MSVC cast/warning.

  * config/globsh.cf
    + Put a nt cmd param in dblquotes.
2009-07-23 12:05:14 +00:00
Viktor Szakats
2f3f3252de 2009-07-22 22:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    ! Fixed GTSLN exclusion if HB_COMMERCE is set.
      This is rrequired to communicate this fact with 
      postinst.sh (hb-func.sh -> hbmk script and hbmk.cfg)
      Thanks to Tamas Tevesz for report and tests.

  ; Reported libharu WinCE failures and Pelles C warnings:
    http://bugs.libharu.org/view.php?id=22
    http://bugs.libharu.org/view.php?id=21
2009-07-22 20:12:26 +00:00
Viktor Szakats
bed56bb8dc 2009-07-22 01:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/instsh.cf
  * config/dirsh.cf
  * config/globsh.cf
    ! Added double quotes to all 'if [ -? * ]' expressions:
      'if [ -? "*" ]'. This fixes clean rule in Solaris builds
      '[ -z $(EXE_FILE) ]' when $(EXE_FILE) was empty.
      (Thanks for Tamas Tevesz for report and fix suggestion)
      Please speak up if there is any reason why double quotes
      weren't used in bash commands embedded in .cf files while
      they are consistently used in all .sh files.
2009-07-21 23:01:20 +00:00
Viktor Szakats
ea8a5f8a86 2009-07-21 15:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/evp.c
  + contrib/hbssl/evpciph.c
  + contrib/hbssl/evpmd.c
  * contrib/hbssl/hbssl.ch
  + contrib/hbssl/tests/digest.prg
  + contrib/hbssl/tests/crypt.prg
    + Added almost complete EVP (hashing, encryption, decryption) API.
      This means support for a max of 14 hashing methods and 
      about 90 symmetric encryption methods.

  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
    * Moved two functions between files.

  * bin/postinst.bat
  * config/globsh.cf
    + Tweaked/fixed to allow building Harbour present on a path
      which contains spaces.
2009-07-21 13:08:20 +00:00
Viktor Szakats
799606888e 2009-07-18 14:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/hbssl.hbc
    + External libraries added for *nixes, OS/2 and adjusted
      for Windows.

  * contrib/hbssl/tests/test.prg
    * Changed test site to a better one.

  * config/global.cf
    + Adding __ARCH64BIT__ for some win targets.
      Not necessary for Harbour code at this moment.

  * config/globsh.cf
    * Minor: @- -> -@

  * external/libpng/pngrio.c
  * external/libpng/pngerror.c
  * external/libpng/pngconf.h
  * external/libpng/pngwrite.c
  * external/libpng/pngset.c
  * external/libpng/pngpread.c
  * external/libpng/pngwtran.c
  * external/libpng/LICENSE
  * external/libpng/pngwio.c
  * external/libpng/pngrutil.c
  * external/libpng/pngwutil.c
  * external/libpng/pngread.c
  * external/libpng/pngmem.c
  * external/libpng/png.c
  * external/libpng/pngget.c
  * external/libpng/png.h
  * external/libpng/pngrtran.c
  * external/libpng/pngtrans.c
    * Updated to 1.2.38 (from 1.2.37)
2009-07-18 12:39:18 +00:00
Viktor Szakats
18ae8f1bca 2009-07-17 12:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    + Attempt to fix dos shell clean rules. Please test.
    + Attempt to fix os2 shell clean rules. Obviously blind attempt.
    * RDP -> RD for os2 since it cannot remove full paths in OS/2 (AFAIK).
    + Added '@' to all os2 dirbase and clean commands.
2009-07-17 10:27:13 +00:00
Przemyslaw Czerpak
7b9e94a15c 2009-07-17 12:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    ! set EXE_FILE - it's workaround to force bin/<arch>/<cmp> directory
      creation in current make files and then cleaning it if possible

  * harbour/config/rules.cf
    * removed old hardcoded clean rules which deleted files not created
      by build process

  * harbour/config/instsh.cf
    * pacified install command echo

  * harbour/config/globsh.cf
    ! fixed new sh clean rules: [ ! -f $(LIB_DIR)/* ] causes syntax
      error when more then one file exists in $(LIB_DIR) directory
2009-07-17 10:15:40 +00:00
Viktor Szakats
5cb93fcc29 2009-07-17 12:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Fixed to delete hbpp.tds.

  * config/globsh.cf
    + Attempt to fix nt shell clean rules. Please test.
    ! Fixed to create bin dir even when lib targets are being
      created. This hack is needed to support existing hack
      inside source/pp/Makefile. If there is any possibility
      to solve current hbpp lib+bin rules in some cleaner ways
      IMO we should do it, but so far I couldn't figure out
      how current method works.
2009-07-17 10:06:27 +00:00
Viktor Szakats
e6948aba1f 2009-07-17 11:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.cf
    * Using RM instead of RD in sh clean rules.
2009-07-17 09:34:04 +00:00