Commit Graph

15369 Commits

Author SHA1 Message Date
Viktor Szakats
d58646b8f8 2010-11-09 01:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbexpat/3rd/expat/expat.dif
  * contrib/hbexpat/3rd/expat/expat.hbp
    + Added .dif file.

  * contrib/hbhpdf/3rd/libhpdf/libhpdf.dif
    * Updated .dif file.

  ; NOTE: Previous failures were caused by .hbs extension being 
          associated with hbrun and I relied on this when running 
          hb3rdpat.hbs. It wouldn't work this way, and I experienced 
          various unexpected behavior in such case with other scripts 
          too in the past. So moral of the story, always use 
          'hbrun <name>.hbs', at least on Windows.
2010-11-09 00:41:02 +00:00
Przemyslaw Czerpak
ceffdd839d 2010-11-09 01:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/Makefile
    % small optimization in concurrent build (-j GNU make switch) dependency
2010-11-09 00:17:45 +00:00
Przemyslaw Czerpak
d5c7c499b5 2010-11-08 23:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/include/hbexprb.c
  * harbour/src/common/expropt1.c
    + added protection against pushing series of parameters on HVM
      stack by hb_arrayToParams() function used in wrong contects,
      i.e.:
         var := hb_arrayToParams( { 1, 2, 3 } )
      Possible TODO: add compile time warning in such case.

  * harbour/contrib/hbexpat/3rd/expat/_hbconf.h
  * harbour/contrib/hbexpat/3rd/expat/expat.hbp
  * harbour/contrib/hbexpat/3rd/expat/xmltok.c
  * harbour/contrib/hbexpat/3rd/expat/xmlrole.c
  * harbour/contrib/hbexpat/3rd/expat/xmlparse.c
    * updated to define endian setting using information from hbdefs.h

  * harbour/contrib/hbexpat/3rd/expat/xmltok.c
   ! added missing members in structure initializations
2010-11-08 22:37:26 +00:00
Viktor Szakats
89308c197d 2010-11-08 22:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/3rd/expat/expat.hbp
    + *nix support.

  * contrib/hbqt/qtwebkit/hbqtwebkit.hbm
  * contrib/hbqt/hbqt_common.hbm
    + bsd support.

  ; Along the patch by Tamas.
2010-11-08 21:28:39 +00:00
Viktor Szakats
c69ba47c03 2010-11-08 12:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
    ! Fixed to enable win-specific dynamic lib related option 
      only on win platform.

  * doc/xhb-diff.txt
    ! Minor typo.
2010-11-08 11:41:03 +00:00
Przemyslaw Czerpak
a73bbdb1e3 2010-11-08 12:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/xhb.hbp
  * harbour/contrib/xhb/xhb.hbx
  + harbour/contrib/xhb/xhbarrex.c
    + added ASIZEALLOC(), ALENALLOC() xHarbour functions
      In Harbour they are in practice useless because we are using
      dynamic array preallocation not static one as in xHarbour.

  * harbour/doc/xhb-diff.txt
    + added information about HB_ARRAYTOPARAMS() function
2010-11-08 11:21:00 +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
999382fba9 2010-11-08 01:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmysql/hbmysql.hbp
  * contrib/gtalleg/gtalleg.hbm
  * contrib/sddmy/sddmy.hbp
  * contrib/hbodbc/hbodbc.hbp
  * contrib/sddfb/sddfb.hbp
  * contrib/hbsqlit3/hbsqlit3.hbp
  * contrib/hbmzip/hbmzip.hbp
  * contrib/hbmzip/3rd/minizip/minizip.hbp
  * contrib/hbexpat/hbexpat.hbp
  * contrib/hbqt/hbqt_common.hbm
  * contrib/hbfbird/hbfbird.hbp
  * contrib/sddpg/sddpg.hbp
  * contrib/hbbz2/hbbz2.hbp
  * contrib/hbcurl/hbcurl.hbm
  * contrib/hbcups/hbcups.hbp
  * contrib/hbhpdf/hbhpdf.hbp
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
  * contrib/hbpgsql/hbpgsql.hbp
  * contrib/sddsqlt3/sddsqlt3.hbp
  * contrib/hbfimage/hbfimage.hbp
  * contrib/sddodbc/sddodbc.hbp
  * contrib/hbgd/hbgd.hbp
  * contrib/sddoci/sddoci.hbp
  * contrib/hbcairo/hbcairo.hbp
  * contrib/hbwin/hbwin.hbp
  * contrib/hbssl/hbssl.hbm
  * config/detfun.mk
  * config/global.mk
  * INSTALL
    * HB_BUILD_EXTDEF -> HB_BUILD_3RDEXT
2010-11-08 00:40:00 +00:00
Viktor Szakats
798841c195 2010-11-08 01:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/harbour.spec
    ! Fixed messed accents.
    ; QUESTION: Can we switch this file to UTF-8? It contains 
                translations to multiple different languages, 
                so current state is already not very optimal.
                Anyone?

  * ChangeLog
    + Added TODO to prev. (HB_BUILD_EXTDEF -> HB_BUILD_3RDEXT)
2010-11-08 00:29:36 +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
5468e70e8a 2010-11-07 18:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/make.hbs
    - Deleted completed TODO.

  * contrib/hbhpdf/hbhpdf.hbp
    ! Updated libharu source location after latest changes.
2010-11-07 17:36:50 +00:00
Viktor Szakats
a33dbe783a 2010-11-07 18:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- external
    - Deleted.
2010-11-07 17:28:30 +00:00
Viktor Szakats
7022118152 2010-11-07 18:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- external/zlib
  - external/png
  - external/jpeg
  - external/hbpmcom
  - external/pcre
  - external/Makefile
  + src/3rd
  + src/3rd/zlib
  * src/3rd/zlib/Makefile
  + src/3rd/png
  * src/3rd/png/Makefile
  + src/3rd/hbpmcom
  * src/3rd/hbpmcom/Makefile
  + src/3rd/jpeg
  * src/3rd/jpeg/Makefile
  + src/3rd/pcre
  * src/3rd/pcre/Makefile
  + src/3rd/Makefile
    * Moved /external to /src/3rd
    ; This way all core components reside in core.
    ; NOTE: png, jpeg are not referenced by core components,
            so they may be moved to contrib area in the future.

  * config/detect.mk
  * Makefile
  * src/Makefile
  * src/rtl/hbcom.c
  * contrib/hbmzip/hbmzip.hbp
  * contrib/hbmzip/3rd/minizip/minizip.hbp
  * contrib/hbhpdf/hbhpdf.hbp
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
  * contrib/hbhpdf/3rd/libhpdf/hpdf.h
  * contrib/hbwin/hbwin.hbp
    * Updated to reflect above change.
    ; NOTE: Now -j builds can be optimized to better overlap with 
            3rd component builds. Please do it in src/Makefile.

  * contrib/hbplist
    * Updated.
2010-11-07 17:17:05 +00:00
Viktor Szakats
08c1bf8970 2010-11-07 17:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbbz2/3rd/bz2/Makefile
    - Deleted.
2010-11-07 16:26:06 +00:00
Viktor Szakats
e83eeb99c2 2010-11-07 17:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbbz2/hbbz2.hbp
  * contrib/hbbz2/hbbz2.hbc
    * Modified for new 3rd source location.

  * external/Makefile
  - external/bzip2
  + contrib/hbbz2/3rd
  + contrib/hbbz2/3rd/bz2
  - contrib/hbbz2/3rd/bz2/bzip2.hbc
  + contrib/hbbz2/3rd/bz2/bz2.hbc
  - contrib/hbbz2/3rd/bz2/bzip2.hbp
  + contrib/hbbz2/3rd/bz2/bz2.hbp
    * Moved to contrib local dir.
    * Renamed to bz2 to match lib name.

  - contrib/hbhpdf/3rd/libhpdf/Makefile
    - Deleted.
2010-11-07 16:24:57 +00:00
Viktor Szakats
855b43fd69 2010-11-07 17:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/hbhpdf.hbp
  * contrib/hbhpdf/hbhpdf.hbc

  * contrib/hbexpat/3rd/expat/expat.hbc
    ! Fixed for 'HB_BUILD_CONTRIB_DYN=yes'

  * external/Makefile
  - external/libhpdf
  + contrib/hbhpdf/3rd
  + contrib/hbhpdf/3rd/libhpdf
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbc
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
    * Moved to contrib local dir.
    + Added support for 'HB_BUILD_CONTRIB_DYN=yes'

  * contrib/hbhpdf/3rd/libhpdf/hpdf.h
    ! Fixed for dynamic build.
    ; TODO: Regenerate .dif. For me it restored original copy for some reason :(

  * contrib/hbsqlit3/hbsqlit3.hbc
  * contrib/sddsqlt3/sddsqlt3.hbc
    * Using .hbc file for 3rd party lib.

  * contrib/3rd/sqlite3/sqlite3.hbp
  * contrib/hbhpdf/3rd/libhpdf/libhpdf.hbp
  * contrib/hbmzip/3rd/minizip/minizip.hbp
  * contrib/hbexpat/3rd/expat/expat.hbp
    ! Changed -warn=no to -warn=low, which is equivalent to 'HB_BUILD_WARN := no'
      in Makefile.
2010-11-07 16:14:20 +00:00
Viktor Szakats
dd3feac85e 2010-11-07 16:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- external/sqlite3
    * Wrestle with svn and its bl$dy tree conflicts.
2010-11-07 15:04:30 +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
7b4935ec01 2010-11-07 12:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* external/sqlite3/sqlite3.hbp
  * external/sqlite3/Makefile
    + Added -DSQLITE_OMIT_DEPRECATED as suggested by Petr.
      Shaves off a few Ks from sqlite3 lib size.

  * contrib/hbodbc/tests/testodbc.prg
    * Formatting.

  * config/hbextern.hbs
    * cygwin update.

  * bin/hbmk2l2d.hbs
    ! Added missing #endif
    * Changed guard.

  * INSTALL
    * Updated hbmk2 examples about using libs/packages.
2010-11-07 11:57:46 +00:00
Viktor Szakats
9624a94fd7 2010-11-07 01:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbodbc/tests/testodbc.prg
  * contrib/hbodbc/odbc.c
    ! Two minor corrections to prev.
2010-11-07 00:41:11 +00:00
Viktor Szakats
3273cb1bb3 2010-11-07 01:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbodbc/odbc.c
    ! SQLERROR(): Fixed to accept handle as pointer (not as number).
    ! SQLERROR(): Fixed returned cErrorMsg using proper length.
    ! SQLERROR(): Fixed to initialize 'out' parameters.
    + Added SQLGETDIAGREC( <nHandleType>, <hHandle>, <nRecNumber>, @<cSQLState>, @<nError>, @<cErrorMsg> ) -> <nResult>

  * contrib/hbodbc/sql.ch
    * Added self-guard
    * Enclosed negative constant values in parents.
    + Added SQL_HANDLE_* constants.

  * contrib/hbodbc/tests/odbcdemo.prg
  * contrib/hbodbc/tests/odbccall.prg
  * contrib/hbodbc/tests/testodbc.prg
    * Added "simpleio.ch"
    * Formatting.
    ! Changed locally rolled WITH OBJECT emulation with real WITH OBJECT syntax.
    + Added SQLERROR() and SQLGETDIAGREC() test calls.
2010-11-07 00:34:02 +00:00
Viktor Szakats
9b31a920d7 2010-11-06 23:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Little clarification to '2. HOW TO DO A PARTIAL [RE]BUILD' 
      section.
2010-11-06 22:26:26 +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
df1b77773e 2010-11-05 20:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Reworded two sentences where HB_COMPILER/HB_PLATFORM 
      is explained.
    * Changed the order of settings to reflect importance.
      HB_INSTALL_PREFIX is first, HB_USER_* are second.
    - Deleted HB_INSTALL_??? envvars from list of documented 
      settings.
2010-11-05 19:26:24 +00:00
Viktor Szakats
05d539d3f5 2010-11-05 20:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/hbexpat.c
    ! Cast for C++.

  * contrib/hbexpat/tests/test.prg
  * contrib/hbexpat/tests/tohash.prg
    * HB_OSNEWLINE() -> HB_EOL()
2010-11-05 19:02:44 +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
64bcbcbe28 2010-11-05 18:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/hbexpat.hbp
  * contrib/hbexpat/hbexpat.hbc
  - contrib/hbexpat/expat
  + contrib/hbexpat/3rd
  + contrib/hbexpat/3rd/expat
    * Moved expat 3rd party code under '3rd' dir.

  * contrib/hbexpat/hbexpat.hbp
  + contrib/hbexpat/hbexpat.hbx
  + contrib/hbexpat/hbexpatx.prg
    + Added .hbx and extern puller harness.
2010-11-05 17:15:16 +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
9cdb89624f 2010-11-05 15:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbexpat/expat/expat.hbp
  * contrib/hbexpat/hbexpat.hbp
  * contrib/hbexpat/hbexpat.hbc
    * Minor cleanups.

  * contrib/hbexpat/tests/tohash.prg
    + Added HB_HKEEPORDER( , .T. )

  * external/Makefile
  * config/global.mk
  * INSTALL
    - Deleted central option to control external lib building:
         HB_EXTERNALLIBS
    ! Also deleted one reference to HB_EXTERNAL_ADDONS, which has
      been removed earlier.

  + external/minizip/minizip.hbp
  + external/minizip/minizip.hbc
  + external/sqlite3/sqlite3.hbc
  + external/sqlite3/sqlite3.hbp
  + external/bzip2/bzip2.hbc
  + external/bzip2/bzip2.hbp
  + external/libhpdf/libhpdf.hbc
  + external/libhpdf/libhpdf.hbp
    + Added experimental hbmk2 make files for 
      foreign code which is used solely by contribs.
2010-11-05 14:59:11 +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
2fc69d4894 2010-11-05 12:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbvm.h
  * src/vm/hvm.c
    + Added hb_vmPushPointerGC().

  * contrib/hbqt/qtcore/hbqt_init.cpp
    + Added experimental (not activated) code example to pass GC collected 
      pointer back from callbacks. This is just intermediate step, as it 
      should return .prg level class, but at least some room for leaks 
      can be avoided this way, plus the pointer type is identifiable.
      Based on code posted to list by Pritpal.
2010-11-05 12:00:28 +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
Petr Chornyj
f1dc3346ec 2010-11-04 18:05 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* harbour/contrib/hbsqlit3/hbsqlit3.c
    ! Fixed last modification typo
2010-11-04 15:58:52 +00:00
Petr Chornyj
e9180697b7 2010-11-04 17:50 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* harbour/contrib/hbsqlit3/hbsqlit3.c
    * Protected sqlite3_sourceid() by SQLITE_VERSION_NUMBER
    + Added sqlite3_create_function()
      sqlite3_create_function(
          db, cFuncName, nArg, [Nil]|[cFunc]|[sFunc] ) -> nResult
      Only scalar function creation now supported.
2010-11-04 15:48:35 +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
Przemyslaw Czerpak
73ba6d20a6 2010-11-04 13:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/cdpapi.c
    + added internal macro for developers making tests with C compilers
      which can make some character translations in compiler strings.
      This macro (__HB_IGNORE_CP_ERRORS) disables 9994 internal error.
      ("Harbour CP (%s) initialization failure").
      It should not be used in production builds.
2010-11-04 12:06:29 +00:00
Viktor Szakats
4100f80b34 2010-11-04 12:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbqt/qtgui/g
  - contrib/hbqt/qtgui/doc/en/*.txt
  - contrib/hbqt/qtwebkit/g
  - contrib/hbqt/qtwebkit/doc/en/*.txt
  - contrib/hbqt/qtcore/g
  - contrib/hbqt/qtcore/doc/en/*.txt
  - contrib/hbqt/qtnetwork/g
  - contrib/hbqt/qtnetwork/doc/en/*.txt
  - contrib/hbqt/qscintilla/g
  - contrib/hbqt/qscintilla/doc/en/*.txt
  - contrib/hbqt/qtuitools/g
  - contrib/hbqt/qtuitools/doc/en/*.txt
  - contrib/hbqt/qtdesigner/g
  - contrib/hbqt/qtdesigner/doc/en/*.txt
    - Deleted generated files which are now created
      dynamically.

  - contrib/hbqt/utils
    - Deleted utils dir.

  + contrib/hbqt/tests/hbqtgen.prg
  + contrib/hbqt/tests/QtUiTools.txt
  + contrib/hbqt/tests/hbqtgen2.prg
  + contrib/hbqt/tests/QtGui.txt
  + contrib/hbqt/tests/QtCore.txt
  + contrib/hbqt/tests/QtNetwork.txt
    * Moved to tests dir.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    - Disabled one debug output left in.

  ; After these changes HBQT overall size went from 9.5MB to 1.6MB.
    It still makes it the largest contrib lib in terms of dir content size.
  ; BTW, most of current .qth content could be dropped by dynamically
    extracting information from original QT headers. QT is required anyway
    to build HBQT, and in such dynamic scenario the generated wrappers
    could always precisely match the QT version we're building against.
    Until then, .qth files are matching the QT version they were created
    for (currently 4.5), and it needs hefty manual work to update it to newer
    versions of QT (latest 4.7). Chances are good that such extraction tool
    already exists for PyQt and similar projects.
2010-11-04 11:21:17 +00:00
Mindaugas Kavaliauskas
a8e4855d4b 2010-11-04 11:23 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddsql/sqlbase.c
    + added timestamp type support in PutValue RDD method
  * harbour/contrib/hbwin/axcore.c
    * commented out debug line to be in sync with commented out 
      function that it uses
2010-11-04 09:23:51 +00:00
Viktor Szakats
3179ac92bf 2010-11-04 05:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwmain.c
  * src/vm/cmdarg.c
    + Cygwin HB_PROGNAME()/HB_ARGV(0) patch from Tamas.

  * src/rtl/hbcom.c
    * Cygwin related comment added. Patch by Tamas.

  * hbqt/qtgui/qth/*.qth
  * hbqt/qtwebkit/qth/*.qth
  * hbqt/qtcore/qth/*.qth
  * hbqt/qtnetwork/qth/*.qth
  * hbqt/qscintilla/qth/*.qth
  * hbqt/qtuitools/qth/*.qth
  * hbqt/qtdesigner/qth/*.qth
    % Harbour license text changed to a one-liner reference to
      COPYING file. Copyright message kept as is.
      Overal .qth file size dropped to half.
    ! Deleted multiple empty lines at EOL.
2010-11-04 04:19:36 +00:00
Viktor Szakats
9b6598c2e5 2010-11-04 04:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* hbqt/hbqt_hbmk2_plugin.hbs
    ! Fixed to not pickup false object references.
    ! Fixed to automatically pickup object references in manual contructor code.
    * crc32 restored to be compatible with old one.
    ! Fixed typo causing incremental build always rebuild everything
      (for .qth files).

  * hbqt/qtcore/qth/HBQString.qth
    ! Fixed reference to manual header.

  * hbqt/qtgui/hbqt_hbqtableview.h
  * hbqt/qtgui/hbqt_hbqsyntaxhighlighter.h
  * hbqt/qtgui/hbqt_hbqplaintextedit.h
  * hbqt/qtgui/hbqt_hbqgraphicsitem.h
    * Header cleanup. Hopefully good.

  * contrib/hbqt/qtwebkit/qth/QWebView.qth
    - Deleted reference to no more existing hbqtnetwork.h

  + hbqt/qtgui/hbqtgui.h
  + hbqt/qtcore/hbqtcore.h
    + Added headers with stuff referenced by non-generated code
      (and some more)

  + contrib/hbqt/qtgui/qth/filelist.hbm
  + contrib/hbqt/qtwebkit/qth/filelist.hbm
  + contrib/hbqt/qtcore/qth/filelist.hbm
  + contrib/hbqt/qtnetwork/qth/filelist.hbm
  + contrib/hbqt/qscintilla/qth/filelist.hbm
  + contrib/hbqt/qtuitools/qth/filelist.hbm
  + contrib/hbqt/qtdesigner/qth/filelist.hbm
    + Added new .hbm files pulling in .qth and 
      setting up generation.
      This way also .qth placement became fully modular.

  * contrib/hbqt/hbqt_common.hbm
  * hbqt/qtgui/hbqtgui.hbc
  * hbqt/qtgui/hbqtgui.hbm
  * hbqt/qtwebkit/hbqtwebkit.hbc
  * hbqt/qtwebkit/hbqtwebkit.hbm
  * hbqt/qtcore/hbqtcore.hbc
  * hbqt/qtcore/hbqtcore.hbm
  * hbqt/qtnetwork/hbqtnetwork.hbc
  * hbqt/qtnetwork/hbqtnetwork.hbm
  * hbqt/qscintilla/hbqscintilla.hbm
  * hbqt/qscintilla/hbqscintilla.hbc
  * hbqt/qtuitools/hbqtuitools.hbm
  * hbqt/qtuitools/hbqtuitools.hbc
  * hbqt/qtdesigner/hbqtdesigner.hbm
  * hbqt/qtdesigner/hbqtdesigner.hbc
    - Deleted 'g' subdir from header path list.
    * Changed to use .qth files directly.

  ; TODO: If things go well, g subfolders, doc/en
          folder content and utils dirs can be deleted.
  ; TODO: Cleanup the way HBQT_TYPE_* and hb_par_* are defined.
          It's currently kinda hackish.

  ; Now everyone can start to bitch, moan and argue or ignore. 
    That's sole reason I'm doing commits. Thanks in advance.
2010-11-04 03:42:35 +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
a7710b224d 2010-11-03 29:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/harbour.hbx
  * src/rtl/dateshb.c
    + Added HB_DATE( [<nYear>, <nMonth>, <nDay>] ) -> <dDate>
      If called without options, it returns current date, just like DATE().
    * Changed HB_DATETIME() to work like above except for timestamps.

  * contrib/hbqt/hbqt_all.hbp
    - Deleted wrong MS-DOS fix.

  * contrib/hbqt/utils/hbqtgen.prg
    % Optimized to not read each input file twice.

  * contrib/hbqt/hbqt_hbmk2_plugin.hbs
    + Added #include "hbclass.ch". After 2010-11-03 23:28 UTC+0100
      it works as expect. Thanks a lot Przemek!
      Header dir is setup correctly now by hbmk2, so hbmk2 plugins
      can safely use Harbour headers. (in hbmk2 context the headers
      should be present anyway, so this is square)
2010-11-03 23:00:35 +00:00