Commit Graph

1555 Commits

Author SHA1 Message Date
Viktor Szakats
e259115990 2011-01-15 20:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support for .def input files when creating executable targets.
    ; Please test it.
2011-01-15 19:03:55 +00:00
Przemyslaw Czerpak
c0b28bd5da 2011-01-15 01:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
    * do not inherit in macrocompiler -z compile time switch when -kc is
      also used

  * harbour/src/common/expropt2.c
    * disable logical expression optimization (reduction) in macrocompiler
      when -kc compile time switch is used.

  * harbour/config/beos/gcc.mk
  * harbour/config/qnx/gcc.mk
  * harbour/config/bsd/gcc.mk
  * harbour/config/wce/mingwarm.mk
  * harbour/config/vxworks/gcc.mk
  * harbour/config/hpux/gcc.mk
  * harbour/config/darwin/gcc.mk
  * harbour/config/dos/djgpp.mk
  * harbour/config/win/mingw.mk
  * harbour/config/linux/gcc.mk
  * harbour/config/cygwin/gcc.mk
  * harbour/config/symbian/gcc.mk
  * harbour/config/os2/gcc.mk
  * harbour/config/sunos/gcc.mk
  * harbour/utils/hbmk2/hbmk2.prg
    * enable some important warnings in GCC builds using -W<name>... instead
      of -Wall and -Wno-<name>... for warning level set to low.
      It should help in backward compatibility with some older GCC versions.
2011-01-15 00:15:42 +00:00
Przemyslaw Czerpak
7941a797a7 2011-01-14 10:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/beos/gcc.mk
  * harbour/config/qnx/gcc.mk
  * harbour/config/bsd/gcc.mk
  * harbour/config/wce/mingwarm.mk
  * harbour/config/vxworks/gcc.mk
  * harbour/config/hpux/gcc.mk
  * harbour/config/darwin/gcc.mk
  * harbour/config/dos/djgpp.mk
  * harbour/config/win/mingw.mk
  * harbour/config/linux/gcc.mk
  * harbour/config/cygwin/gcc.mk
  * harbour/config/symbian/gcc.mk
  * harbour/config/os2/gcc.mk
  * harbour/config/sunos/gcc.mk
    * use -Wall -Wno-unused -Wno-pointer-sign -Wno-uninitialized
          -Wno-switch -Wno-strict-overflow -Wno-main
      instead of -W when warnings are not enabled with GCC based compilers.
      Using only -W only is rather useless because this switch enables
      warnings which can be usually ignored in 3-rd party code.
      This modification should help in locating bugs introduced by us
      to 3-rd party code, i.e. due to wrong header files used on some
      platforms (we do not use autoconf assuming some default settings
      what can be wrong in some cases). It should also not hide some
      important/critical bugs in 3-rd party code.
      This modification pacifies some common warnings which can be
      ignored usually but it also enables some more important ones.
      If it's necessary then we can tune it a little bit more and disable
      some other warnings too.
      It's possible that on some platforms using very old GCC versions
      some of -W* switches are not supported - please make tests and
      inform us about problems.

  * harbour/utils/hbmk2/hbmk2.prg
    * use -Wall -Wno-unused -Wno-pointer-sign -Wno-uninitialized
          -Wno-switch -Wno-strict-overflow -Wno-main
      instead of -W when warning level is set to low with GCC based
      compilers
2011-01-14 09:13:06 +00:00
Viktor Szakats
e8c841d7c9 2011-01-08 11:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbplist
  + contrib/hbformat
  - utils/hbformat
  * utils/Makefile
    * Moved hbformat to contrib area.
2011-01-08 10:46:21 +00:00
Przemyslaw Czerpak
058d080c64 2010-12-17 02:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/cdpapi.c
    * removed dummy assignment

  * harbour/src/lang/msgpl852.c
  * harbour/src/lang/msgplmaz.c
  * harbour/src/lang/msgpliso.c
  * harbour/src/lang/msgplwin.c
    ! fixed one message translation

  * harbour/config/dos/watcom.mk
  * harbour/config/win/watcom.mk
  * harbour/config/linux/watcom.mk
  * harbour/config/os2/watcom.mk
    * disable explicitly some Open Watcom warnings in 3rd party code
      which we can safely ignore when HB_BUILD_WARN='no'

  * harbour/utils/hbmk2/hbmk2.prg
    * disable explicitly some Open Watcom warnings in 3rd party code
      which we can safely ignore when warning level is low
2010-12-17 01:00:28 +00:00
Viktor Szakats
68ad6b9146 2010-12-08 23:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/hbpp.c
  * src/compiler/hbusage.c
  * contrib/hbnetio/utils/netiosrv.prg
  * contrib/hbide/idethemes.prg
  * utils/hbformat/hbformat.prg
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
  * utils/hbi18n/hbi18n.prg
  * utils/hbtest/hbtest.prg
  * utils/hbrun/hbrun.prg
  * INSTALL
    * Bumped copyright year to 2011.

  * contrib/hbide/ideprojmanager.prg
    ! Fixed $ id $ in generated source.
2010-12-08 22:38:19 +00:00
Viktor Szakats
9b0570c818 2010-12-06 18:05 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* utils/hbrun/hbrun.prg
    + Readded -I<selfdir> option.
      (partial revert of 2010-11-23 19:05 UTC+0100)
2010-12-06 17:05:49 +00:00
Przemyslaw Czerpak
a75f57da55 2010-12-02 11:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/codepage/cpcs852.c
  * harbour/src/codepage/cpcskam.c
  * harbour/src/codepage/cpcsiso.c
  * harbour/src/codepage/cpcswin.c
    ! switched from HB_CDP_ACSORT_INTERLEAVED to HB_CDP_ACSORT_NONE in
      Czech code pages.

  * harbour/config/win/bcc.mk
    * disable explicitly some common BCC warnings in 3rd party code
      which we can safely ignore when HB_BUILD_WARN=no

  * harbour/utils/hbmk2/hbmk2.prg
    * disable explicitly some common BCC warnings which we can safely
      ignore when warning level is set to low

  * harbour/contrib/hbmisc/bbabble.c
    * removed unnecessary incrementation to pacify compile warning
2010-12-02 10:20:06 +00:00
Viktor Szakats
55da2b05b6 2010-11-24 16:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed RTE in language file generation in some side case,
      reported by Mindaugas.
      (not tested, pls do)
2010-11-24 15:11:23 +00:00
Viktor Szakats
8d207a4fa1 2010-11-24 15:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed typo causing not recognized -hbl (without parameter)
      resetting option. Thanks to Mindaugas for the find.

  * contrib/hbhttpd/core.prg
    ! Changed UErrorHandler() to not issue a BREAK, to avoid
      new Harbour compiler behavior making it impossible
      to close a PROCEDURE with RETURN.

  * contrib/hbhttpd/log.prg
    * Reworked a little bit.
2010-11-24 14:43:43 +00:00
Viktor Szakats
196c5a738c 2010-11-23 19:05 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbrun/hbrun.prg
    ! Do not process HB_INSTALL_INC to find external headers.
      This envvar is no longer supported and it only makes
      things more difficult now that hbrun has embedded headers.
      Also removed adding the host dir of input .hbs/.prg file
      as -I option (it's processed automatically by compiler).
      So now hbrun uses exactly the same rules as harbour
      compiler to find headers.
2010-11-23 18:07:03 +00:00
Viktor Szakats
4224db13f8 2010-11-10 18:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Adjusted the way Harbour dynlib is calculated for cygwin, after
      making it a platform.
    + Added feedback when platform is redetected along compiler autodetection
      process.
2010-11-10 17:17:36 +00:00
Viktor Szakats
f675856f4a 2010-11-10 13:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbzebra/hbzebra.hbp
  + contrib/hbzebra/d_hpdf.c
  + contrib/hbzebra/d_win.c
  + contrib/hbzebra/tests/testhpdf.prg
  + contrib/hbzebra/tests/testwin.prg
    + Added Windows DC renderer
    + Added libharu renderer
    ; TODO: rework current rendering solution. Thinking about
            callback based solution, to give it a smoother layout.
            Current system has too much interdependencies and 
            too much redundancy even in renderer "plugins".

  * utils/hbmk2/hbmk2.prg
    + Readded PathNormalize() calls missed after prev modif.
2010-11-10 12:06:28 +00:00
Viktor Szakats
d9384a3de1 2010-11-10 02:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Reworked logic calculating link contents (for -ln= options)
    ; Please test.

  * contrib/hbpost.hbm
    * Cygwin tweak for HB_BUILD_CONTRIB_DYN=yes mode, from Tamas.
2010-11-10 01:05:15 +00:00
Przemyslaw Czerpak
49e0b8e4e0 2010-11-09 10:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/sdf1.c
    ! fixed bug in SDF import procedure - many thanks
      to Enrico Maria Giordano for reporting the problem
      and to Vicente Guerra for locating the reason
      BTW fix committed to xHarbour may work but it's not correct,
      I suggest to update it.

  * harbour/src/rtl/hbdyn.c
  * harbour/src/rtl/hbsocket.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/contrib/hbct/bitnum.c
  * harbour/contrib/hbwin/olecore.c
    * pacified some of MSVC6 warnings reported by Andi

  * harbour/utils/Makefile
    * added internal/developers build switch
2010-11-09 09:47:51 +00:00
Viktor Szakats
794fc365d1 2010-11-08 11:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbmk2_plugin.hbs
    ! Do not apply HB_QTPOSTFIX to rcc tool.

  * utils/hbmk2/hbmk2.prg
    + Added two potential TOFIXes. I'd be grateful is something 
      could get to the end of them.
2010-11-08 10:17:35 +00:00
Viktor Szakats
e55c31bd69 2010-11-08 01:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/contrib.hbc
  * utils/hbmk2/hbmk2.prg
  * config/detfun.mk
  * config/detect.mk
  * INSTALL
    * Terminology cleanup: "external code" -> "3rd party code"

  - bin/hbxpatch.hbs
  + bin/hb3rdpat.hbs
  * config/postinst.hbs
  * package/harbour.spec
    * Renamed hbxpatch.hbs to hb3rdpat.hbs to reflect terminology
      cleanup ("external code" -> "3rd party code")

  * utils/hbmk2/examples/contrib.hbc
  * utils/hbmk2/examples/contribf.hbc
  * utils/hbmk2/examples/oohg.hbc
    * Using .hbc files.

  * contrib/hbssl/ssl.c
    + SSL_GET_READ_AHEAD() function enabled. Made it a dummy
      for bcc, where it for some reason creates unresolved
      external when referencing the corresponding openssl API.
2010-11-08 00:24:36 +00:00
Viktor Szakats
21a17c901f 2010-11-07 20:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + HB_HAS_<name> hbmk2 macro is now defined, in case a given
      dependency gets detected.
    + HB_HAS_<name>_LOCAL hbmk2 macro is now defined, in case a
      given dependency gets detected on a local path.
    + Added -depfinish=<name> option which will tell hbmk2 to
      not expect any more <name> related dependency information,
      and do the detection right there while processing options.
      Combined with above macros, now it's possible to use
      filters based dependency detection results.

  * contrib/hbsqlit3/hbsqlit3.hbp
  * contrib/hbmzip/hbmzip.hbp
  * contrib/hbexpat/hbexpat.hbp
  * contrib/hbbz2/hbbz2.hbp
  * contrib/hbhpdf/hbhpdf.hbp
  * contrib/sddsqlt3/sddsqlt3.hbp
    + By using above hbmk2 feature, now the locally hosted
      dependency won't be referenced (and thus won't be built)
      if the dependency is detected on a user supplied or
      system path.
      This effectively restores previous behavior (before
      moving 3rd party libs to hbmk2 build system / contrib
      area), and f.e. if a Linux user has sqlite3 installed
      as a system package, the locally hosted version won't
      be built.

  * contrib/hbexpat/3rd/expat/expat.hbp
    * expat locally hosted sources are now not excluded from
      *nix builds, and they will be used if it's not installed
      as a system package.
2010-11-07 19:29:42 +00:00
Viktor Szakats
575b574c53 2010-11-07 15:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/version.c
    + HB_VERSION( HB_VERSION_PLATFORM ) changed to use hb_verPlatformMacro().
      This means it will now supported recently added platforms.
    ; NOTE: For consistency, __PLATFORM__WINDOWS should pbly be changed to __PLATFORM__WIN,
            and __PLATFORM__WINCE to __PLATFORM__WCE.

  * utils/hbmk2/hbmk2.prg
    + Added HB_HOST_PLAT macro, returning: hb_Version( HB_VERSION_PLATFORM )
    + Added HB_HOST_PLAT_UNIX macro.
    ! Fixed cygwin to be detected as cross target platform.
    ! Few cygwin related TOFIX-es cleared.

  * external/Makefile
  - external/sqlite3
  + contrib/3rd
  + contrib/3rd/sqlite3
  * contrib/3rd/sqlite3/sqlite3.hbc
  + contrib/3rd/sqlite3/sqlite3.hbp
  - contrib/3rd/sqlite3/Makefile
    * Moved sqlite3 foreign code to contrib/3rd dir from
      global 3rd party code dir.
    + Migrated remaining platform tweaks from Makefile to sqlite3.hbp
      Bumps are expected, pls test.

  * contrib/hbsqlit3/hbsqlit3.hbp
  * contrib/sddsqlt3/sddsqlt3.hbp
    * Changed sqlite3 position.
    + Added sqlite3 reference.
    ; Please note that after above changes sqlite3 will only be built
      if required.

  * src/common/hbver.c
    * Formatting.
2010-11-07 15:02:55 +00:00
Viktor Szakats
58de824eb2 2010-11-07 13:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Changed the way target selection (-hblib, -hbdyn*, -hbexe, etc)
      options are handled. So far the last one specified remained
      active, now the first one specified will stay active.
      IOW: 'hbmk2 -hbdyn mylib.hbp' will result in dynamic lib target,
           even if mylib.hbp contains -hblib option.
    ; Beware of some regressions or incompatibility with certain
      build configs.

  * contrib/hbpost.hbm
  * contrib/hbpre.hbm
    * Moved -hbdyn option to hbpre.hbm. This makes it possible
      for .hbp files to act differently when built as dynamic lib.
    ; Such will be required for 

  * external/libhpdf/libhpdf.hbp
    * Cleared TOFIX after above changes.

  * contrib/hbplist
  * contrib/hbmzip/hbmzip.hbp
  * contrib/hbmzip/hbmzip.hbc
  - external/minizip
  + contrib/hbmzip/3rd
  + contrib/hbmzip/3rd/minizip
  * contrib/hbmzip/3rd/minizip/minizip.hbc
  * contrib/hbmzip/3rd/minizip/minizip.hbp
  - contrib/hbmzip/3rd/minizip/Makefile
    * Moved minizip dir under the contrib that uses it.
    ; Please test.
2010-11-07 12:50:38 +00:00
Viktor Szakats
99a99c0a16 2010-11-06 23:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gete.c
    % Optimized out memory allocation on non-dos/os2 platforms.

  + contrib/hbexpat/3rd/expat/_hbconf.h
    + Added config file placeholder. Not yet used and empty.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    * Formatting.
    % More StrTran() minor opt.

  * utils/hbmk2/hbmk2.prg
  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
    * -fpic -> -fPIC for linux dynamic libs.
    ; From Tamas.

  * INSTALL
    + Added expat related information.
2010-11-06 22:13:28 +00:00
Viktor Szakats
eb53924a77 2010-11-06 14:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/hbexpat.c
    ! Added missing 'enum' keyword to just added cast.

  ; Patches from Tamas:

  * utils/hbmk2/hbmk2.prg
    + cygwin is pic by default

  * bin/hbxpatch.hbs
    + report all missing tools in one go
2010-11-06 13:20:18 +00:00
Viktor Szakats
31d0d15e4d 2010-11-05 19:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed bad typo in watcom platform redetection. win was misdetected
      as dos. (this fixes expat watcom build)
    + Added experimental -depcontrol=<name>:strict:/opt/mingw/include
      option, which will make the given path the only one where header
      detection is done.

  * contrib/hbexpat/3rd/expat/expat.hbp
    ! Deleted unnecessary input files.
    ! Fixed os2 build by setting HAVE_MEMMOVE.
2010-11-05 18:22:39 +00:00
Viktor Szakats
944ff18cfd 2010-11-05 16:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/hbexpat.hbp
    ! Minor typo.

  * contrib/hbexpat/tests/tohash.prg
    - Deleted json dump.

  * utils/hbrun/hbrun.prg
    * Minor change to make it easier to update header list.
2010-11-05 15:38:37 +00:00
Viktor Szakats
7bd55a6158 2010-11-05 14:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/make.hbs
    ! Don't pickup dependencies with long-filename on MS-DOS hosts.
      Please test.

  * contrib/hbplist
    ! Added missing dependency comment.

  * contrib/rddads/rddads.h
    ! Fixed mingw warnings after recent change. Now _declspec
      is only defined for mingw, if it isn't already. Pls review me.

  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-11-05 13:55:57 +00:00
Viktor Szakats
1748d6f378 2010-11-05 14:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Added support for converting multiple input .qth files to
      generated source/doc.

  - contrib/hbqt/tests/hbqtgen.prg
    - Deleted initial generator tools. Its code now lives in
      hbqt_hbmk2_plugin.hbs script/plugin.

  * contrib/hbplist
    * Added comment.

  * utils/hbmk2/hbmk2.prg
    % Minor opt.
2010-11-05 13:26:49 +00:00
Viktor Szakats
06b7fe5ac0 2010-11-05 13:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbexpat
  + contrib/hbexpat/hbexpat.c
  + contrib/hbexpat/hbexpatc.c
  + contrib/hbexpat/hbexpatp.prg
  + contrib/hbexpat/hbexpat.ch
  + contrib/hbexpat/hbexpat.hbp
  + contrib/hbexpat/hbexpat.hbc
  + contrib/hbexpat/tests
  + contrib/hbexpat/tests/hbmk.hbm
  + contrib/hbexpat/tests/test.prg
  + contrib/hbexpat/tests/tohash.prg
    + Added Harbour bindings for expat XML parser lib.
    ; Test contains XML to hash conversion. It's very nice,
      small and complete, callback-based parser:
         http://expat.sourceforge.net/
         http://www.xml.com/pub/a/1999/09/expat/index.html
         http://www.xml.com/lpt/a/47

  + contrib/hbexpat/expat
  + contrib/hbexpat/expat/expat.hbp
  + contrib/hbexpat/expat/expat.hbc
  + contrib/hbexpat/expat/COPYING
  + contrib/hbexpat/expat/amigacon.h
  + contrib/hbexpat/expat/ascii.h
  + contrib/hbexpat/expat/asciitab.h
  + contrib/hbexpat/expat/expat.h
  + contrib/hbexpat/expat/expat_ex.h
  + contrib/hbexpat/expat/iasciita.h
  + contrib/hbexpat/expat/internal.h
  + contrib/hbexpat/expat/latin1ta.h
  + contrib/hbexpat/expat/macconfi.h
  + contrib/hbexpat/expat/nametab.h
  + contrib/hbexpat/expat/utf8tab.h
  + contrib/hbexpat/expat/winconfi.h
  + contrib/hbexpat/expat/xmlparse.c
  + contrib/hbexpat/expat/xmlrole.c
  + contrib/hbexpat/expat/xmlrole.h
  + contrib/hbexpat/expat/xmltok.c
  + contrib/hbexpat/expat/xmltok.h
  + contrib/hbexpat/expat/xmltok_i.c
  + contrib/hbexpat/expat/xmltok_i.h
  + contrib/hbexpat/expat/xmltok_n.c
    + Added expat as foreign code. It's ANSI C with MIT license.
      It's first example of adding foreign code in the contrib
      domain, using hbmk2 as build tool. It's also configured to work
      with hbxpatch.hbs.
    ; Please test, I bet MS-DOS builds are broken, and I didn't
      make tests with OS/2 and WinCE either, plus with some
      C compilers. Should build fine though with mingw[64], msvc[64],
      pocc[64], bcc.
    ; TOFIX: Watcom build is broken. Any takers?

  * contrib/hbplist
    + Enabled hbexpat.

  * utils/hbmk2/hbmk2.prg
    ! Minor fix.
2010-11-05 12:46:16 +00:00
Viktor Szakats
97bc5b9ea3 2010-11-05 00:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/cygwin/gcc.mk
  * include/hbwmain.c
  * src/vm/Makefile
  * src/vm/mainwin.c
  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * src/vm/mainstd.c
  * utils/hbmk2/hbmk2.prg
    + Finalizing cygwin/gcc entry point.
    ; Patch by Tamas.
    + Added hbmainstd for shared cygwin/gcc builds.

  * utils/hbrun/hbrun.hbp
    + Enabled header inclusion also in hbmk2 make file.
2010-11-04 23:59:06 +00:00
Viktor Szakats
47952c23b3 2010-11-04 22:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbjson.c
  * src/rtl/hblpp.c
    ! Silenced msvc64 warnings.

  * utils/hbrun/hbrun.prg
    * Moved creation of header hash to separate function.
    + Added HBRUN_NOHEAD envver to disable embedded headers.
      Any non-empty value will have this effect.

  * utils/hbrun/Makefile
    + Enabled embedded headers.

  * contrib/make.hbs
  * config/postinst.hbs
  * bin/hbxpatch.hbs
    ! Resolved TOFIX notes: now the headers can be used
      just like in any .prg, and no need to locally #define
      core constants.
      Also hbqt_hbmk2_plugin.hbs should work now in stdalone 
      mode, with all the OOP code.
2010-11-04 21:46:37 +00:00
Viktor Szakats
086c8cba68 2010-11-04 21:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * MS-DOS LFN vs. SFN next guess: deleted hack when loading
      plugin.

  * include/hbwmain.c
  * src/vm/cmdarg.c
  * config/bin.mk
    * Cygwin main entry patch from Tamas.

  * INSTALL
    + Added note that all settings are case sensitive.
      Not that those would read it who would need to.
2010-11-04 20:34:47 +00:00
Przemyslaw Czerpak
2432e2f5d3 2010-11-04 20:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbcomp.h
  * harbour/src/pp/ppcore.c
  * harbour/src/main/harbour.c
  * harbour/src/compiler/hbmain.c
  * harbour/src/compiler/ppcomp.c
  * harbour/src/compiler/hbcmplib.c
    * added support for setting hash array as container for included
      files in HB_COMPILE*() functions.

  * harbour/utils/hbrun/hbrun.prg
    + added optional support for embedding all core header files
      into final HBRUN executable file. It can be enabled by
      compilation with HBRUN_WITH_HEADERS macro.

  * harbour/contrib/hbsqlit3/hbsqlit3.c
    ! removed non standard C construction
    % push function parameters directly on HVM stack
2010-11-04 19:28:05 +00:00
Viktor Szakats
1503e9cfc1 2010-11-04 15:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + MS-DOS builds got internal protection against trying to load
      .hbc/.hbp/.hbm/plugin files with long filenames (only in
      filename/extension part, so it's sort of a hack).
      Such would result in unpredictable behavior depending on
      MS-DOS OS or emulation used, but for sure none can load the
      intended file.
      So current hack will consider such files non-existent,
      and consequently fail along the way. Please test in on
      MS-DOS.
2010-11-04 14:40:26 +00:00
Viktor Szakats
cfd647e5d5 2010-11-04 01:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Reworked standalone hbqt generator as dynamic hbmk2
      plugi. It will now dynamically convert .qth to
      .cpp + .prg + .txt. .qtp lists can now be
      replaced by .hbm files. See them inside /qth dirs.
    * Minor cleanups and optimizations to generator code.
    * Standalone conversion mode is also available, though it's
      little difficult to run due to current hbrun limitations.
    % Generated code further slimmed down.
    + Since now we have no generated central header, each
      required declarations have to be repeated in each source
      file. Consistency is maintained by generator.
    ; TODO: Consider splitting .qth generator functionality
            from mainstream hbqt hbmk2 plugin.
    ; TODO: Switch to using new dynamic code generation.
    ; TODO: Consider merging .cpp + .prg using #pragma BEGINDUMP.
            In generated code, I find it benign, and hopefully
            eventually .prg code can be eliminated fully.
    ; TODO: Resolve dependence on generated central headers,
            in manual source files.
    ; TOFIX: Error message in plugin now erroneously shows
             as "hbclass.ch(131)", IOW the compiler thinks its
             compiling the header, while in reality its compiling
             the .hbs file.

  * utils/hbmk2/hbmk2.prg
    + REQUESTing some stuff for hbqt plugin.
2010-11-04 00:58:03 +00:00
Viktor Szakats
79b266ca4f 2010-11-03 19:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Using _APPMAIN() instead of MAIN() as entry function, to be
      friendly with plugins using MAIN().
    * Commented test code added for hbrun integration.
    + Added popular package handler's lib and include directory
      to bsd builds' default setup.
    * Added comments describint which such directory belongs to which package
      system (darwin, bsd)
    + Plugins will now be called with Harbour header directory properly setup,
      so it's possible to use headers in them.

  * include/hbclass.ch
    - Deleted some lines which were active when __HARBOUR__ is not defined.
      As I understand this is Harbour-only header, so __HARBOUR__ is always
      to be defined. Please speak up if you know what it was for.
      It was added here: 2006-10-04 02:30 UTC+0200

  * src/pp/hbpp.c
    + Support for -e option which lets override the name of the
      public entry function in generated PP rules .c file.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Some provisions to handle .qth files.

  * INSTALL
    * https links changed to http for win nightly pkgs.
2010-11-03 18:03:03 +00:00
Viktor Szakats
5b83056a40 2010-11-03 00:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtgui/hbqt_init.cpp
    ! Fixed missing HB_EXTERN_BEGIN/END from around a new internal function.

  * contrib/hbqt/utils/hbqtgen.prg
    ! Fixed to not spit HB_TR_ALWAYS msgs while running.
    % Deleted unnecessary HB_SYMBOL_UNUSED in generated code.
    % Minor optimization in generate code.
    ; TODO: Optimize code generated for GC desctructor.

  * contrib/hbqt/*/g/*
    * Regenerated.

  * utils/hbmk2/hbmk2.prg
    + Will now accepts macros in Harbour options.
      (lightly tested)
2010-11-02 23:20:32 +00:00
Viktor Szakats
8cc76097c5 2010-11-02 14:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gete.c
    % Deleted very old code to satisfy Borland C++ getenv()
      requirement, and which turned out to be a mere Borland
      documentation error (confirmed by Borland).
      Thanks to Tamas Tevesz for getting to end of this and
      the patch.

  * utils/hbmk2/hbmk2.prg
    * Formatting.

  * ChangeLog
    ! Fixed bloody daylight saving timezone in recent commits.
2010-11-02 13:36:07 +00:00
Viktor Szakats
5e0daa68f6 2010-11-01 13:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/Makefile
  * src/vm/mainwin.c
  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * src/vm/vmmt/Makefile
  * utils/hbmk2/hbmk2.prg
  * config/global.mk
  * config/cygwin/global.mk
    + Cygwin related patch from Tamas Tevesz.
      - Fixing cygwin dynamic lib name
      - Dynamic lib linking
      - defining __PLATFORM__CYGWIN in cross-platform builds

  * src/rtl/dateshb.c
  + tests/dttest.prg
    + HB_DATETIME() got new, optional nYear, nMonth, nDay, nHour, nMinute, nSecond, nFragment
      parameters. If passed, it will return date or timestamp based on passed parameters
      instead of current timestamp.
      Based on initiative and code by Carlos Bacco. Thank you!

  * contrib/hbsqlit3/hbsqlit3.c
    - Reverted UTF8 patch in 2010-11-01 00:05 UTC+0200.
    + Replaced above solution with transparent one, using
      Str API usage and extended it for all places where UTF8
      strings are expected or returned by sqlite3 API.
      Please test. This clears an old TOFIX.
    + Added TOFIX for raw pointer usage.

  * contrib/hbqt/qtgui/g/QApplication.cpp
  * contrib/hbqt/qtgui/qth/QApplication.qth
    ! Fixed to wrap one declaration in HB_EXTERN_BEGIN/END.
2010-11-01 12:58:15 +00:00
Viktor Szakats
e359ff6d2d 2010-10-29 21:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Applied cygwin patch from Tamas Tevesz.
    ! Few more cygwin related fixes here and there.
    + Added more cygwin related TOFIX notes.
2010-10-29 19:42:49 +00:00
Viktor Szakats
b39443ed81 2010-10-29 14:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Platform/compiler checks made robust and don't
      give match anymore for 'win' when checking it against
      'darwin' or 'cygwin'.

  * utils/hbmk2/hbmk2.prg
  * INSTALL
    * Updated to reflect that cygwin is now distinct platform.
      (TODO: examples)
2010-10-29 12:01:35 +00:00
Viktor Szakats
59f94ca462 2010-10-21 00:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbrun/hbrun.prg
    ! Refixed icon ordinal in file type registration.
2010-10-20 22:56:18 +00:00
Viktor Szakats
a2dda5ada2 2010-10-20 23:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbcurl/hbcurl.hbc
    * Changed to use 'libcurl' as implib name also for mingw.
      This name will work for the implib generated
      by Harbour build process. If you want to use something
      else (f.e. one shipped with a prebuilt libcurl binary release),
      update the .hbc file locally.

  * utils/hbrun/hbrun.prg
    * Minor stdization in recent output msgs.
2010-10-20 21:58:15 +00:00
Viktor Szakats
c778e0c758 2010-10-20 00:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbziparc/hbziparc.prg
    + HB_ZIPFILE() will now store file timestamp in zip.

  * utils/hbrun/hbrun.prg
    * Minor cleanup.
2010-10-19 22:14:54 +00:00
Viktor Szakats
eff42d47ef 2010-10-19 23:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbrun/hbrun.prg
    + Added support for registering/unregistering .hbs file type
      in Windows registry. Based on .reg files provided by Mindaugas
      (with modifications and unregister support). I changed the way
      defaulticon entry is made, but it still doesn't appear, maybe
      I need reboot or something. Pls test it.
      Usage (from cmdline):
        -r  - register for current user
        -ra - register for all users (requires admin rights)
        -u  - unregister for current user
        -ua - unregister for all users (requires admin rights)
      Tested on Win7 using current user only.
      NOTE: regedit (the tool used for registration) doesn't
            return errorlevels on error, so it's not possible
            to write correct feedback (so hbrun always shows
            success).
2010-10-19 21:57:43 +00:00
Viktor Szakats
76292a7b44 2010-10-19 23:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni.bat
    ! Added .hbs files in contrib roots to unified windows
      package. In practice this means that the hbmk2 qt plugin 
      will now be shipped with standard distro.

  * utils/hbmk2/hbmk2.prg
    ! Typo in comment.
2010-10-19 21:01:46 +00:00
Przemyslaw Czerpak
eeb8fa3099 2010-10-16 09:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
  * harbour/utils/Makefile
  * harbour/contrib/xhb/xhb.hbp
    * reverted my last unintentional commit
2010-10-16 07:26:17 +00:00
Przemyslaw Czerpak
a8e0d9e1eb 2010-10-16 01:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtstd/gtstd.c
    * updated to compile with WinCE

  * harbour/package/harbour.spec
    * modified to work with new HBMK2 translations

  * harbour/contrib/hbmzip/hbmzip.c
    ! fixed function order

  * harbour/contrib/hbwin/axcore.c
    * include <olectl.h>
    ! fixed buffer sizes in debug function
    * removed trailing spaces and tabs

  * harbour/contrib/hbwin/hbolesrv.c
    * include <tchar.h> - for some compilers which do not make it
      with OLE header files
2010-10-15 23:38:39 +00:00
Viktor Szakats
3ce1854189 2010-10-15 20:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/utils/hbqtgen.prg
    ! Fixed to pass 'uchar' where QT needs it (instead of current 'char')

    ; TOFIX: hb_parc() return value is still de-const-ed and passed 
             to QT which is 100% way to create random GPFs.
             See TOFIXes in code.

  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-10-15 18:46:57 +00:00
Viktor Szakats
c669471aa2 2010-10-14 20:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour/utils/hbmk2/hbmk2.prg
    + *nix builds will now use /opt/harbour/contrib and /opt/harbour/addons
      dirs to autofind .hbc files. (if /opt/harbour dir exists)
2010-10-14 18:26:16 +00:00
Przemyslaw Czerpak
4e42f796aa 2010-10-14 00:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/rddads/ads1.c
    ! casting
  * harbour/utils/hbmk2/hbmk2.es_PE.po
    ! typos
2010-10-13 22:32:06 +00:00
Przemyslaw Czerpak
bdfbd4ef4f 2010-10-13 20:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    * use "~hbmk" instead of ".hbmk" as temporary directory name in DOS
      builds to avoid problem with unsupported file names.
      TODO: for better customization we need new function:
            HB_FNameCheck( <cFileName> ) -> <lNameOK>
  * harbour/contrib/hbmzip/hbmzip.c
    ! fixed GPF when file datetime is passed as 3-rd argument to
      HB_ZipFileCreate()
    % eliminated repeated code
2010-10-13 18:59:17 +00:00