Commit Graph

10502 Commits

Author SHA1 Message Date
Viktor Szakats
5ef7291b95 2009-04-22 11:38 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed regression in handling .c stub after recent changes.
    ! Fixed potential problem with inctrypath in some situations.
2009-04-22 09:38:50 +00:00
Viktor Szakats
465792092d 2009-04-22 10:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added .hbl file to possible input file list.
      (this is supported alternatively to -hbl= option)

  * source/hbpcre/pcrevutf.c
  * source/hbpcre/pcre.h
  * source/hbpcre/pcreconf.c
  * source/hbpcre/pcreinfo.c
  * source/hbpcre/config.h
  * source/hbpcre/pcrenewl.c
  * source/hbpcre/pcrefinf.c
  * source/hbpcre/pcreexec.c
  * source/hbpcre/pcreinal.h
  * source/hbpcre/pcretabs.c
  * source/hbpcre/pcredfa.c
  * source/hbpcre/pcrecomp.c
  * source/hbpcre/pcrexcls.c
  * source/hbpcre/pcreprni.h
  * source/hbpcre/ucp.h
    + Upgraded to PCRE 7.9 (from 7.8)
2009-04-22 08:08:04 +00:00
Viktor Szakats
cca7fb705d 2009-04-22 08:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ Implemented .po to .hbl conversion inside hbmk2, with
    incremental feature (.hbl will only be regenerated if any
    .po file dependencies are newer). This is currently the
    default, no -inc switch is needed for that.
    You can specify .po files in the command line, in po=
    lines in .hbp files, output file is passed via -hbl= option.
    To handle multiple languages without hassle, you can use
    ${lng} macro in .po and .hbl filenames, plus pass the list
    of languages in -lng=<lang comma list> option:
    app_${lng}.po -hbl=lang/${lng}.hbl -lng=en,hu,sk,pl
    [ Actual .po -> .hbl conversion code was taken from hbi18n
    tool made by Przemek, with little modifications. ]
  ! Fixed to check included .res file timestamp, but not parse it.
  + Added macro support in libs= .hbp lines.
2009-04-22 06:54:54 +00:00
Viktor Szakats
c5a3aaf70b 2009-04-21 18:14 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added new CPU architecture filters: x86, x86_64, ia64, arm
    + Added new CPU macro: ${hb_cpu} (returning values above)
    ! Fixed filter keyword detection on darwin due to typo.
2009-04-21 16:23:24 +00:00
Przemyslaw Czerpak
5bd1d47a3f 2009-04-21 18:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddcdx.h
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    + added support for CLIP indexes with IgnoreCase flag
2009-04-21 16:16:55 +00:00
Pritpal Bedi
393b9a05df 2009-04-21 08:08 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* utils/hbmk2/hbmk2.prg
    ! Line # 1056 - Parenthesis not closed.
2009-04-21 15:09:48 +00:00
Viktor Szakats
83fbbeebec 2009-04-21 16:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added filter support to -o option.
    + Added macro support to -o option.
    ! Fixed missing win system libs from bcc linker command.
      IMPORTANT: bcc users will have to make sure they add bcc PSDK
                 lib to their bcc32.cfg and ilink32.cfg files,
                 otherwise hbmk2 won't work for them:
                 --- bcc32.cfg
                 -I"C:\devl\BCC55\Include"
                 -L"C:\devl\BCC55\Lib";"C:\devl\BCC55\Lib\PSDK"
                 --- ilink32.cfg
                 /L"C:\devl\BCC55\Lib";"C:\devl\BCC55\Lib\PSDK"
                 ---
                 (or manually pass that with -L option to hbmk2)
    * -i option moved to main help screen.

  * utils/hbmk2/examples/fwh.hbp
    + Added odbc32 lib.
2009-04-21 14:34:33 +00:00
Przemyslaw Czerpak
965ab6e7b9 2009-04-21 13:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddcdx.h
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    + added support for numeric indexes which store keys as modified
      32bit big endian integer values - undocumented VFP hack.
2009-04-21 11:34:09 +00:00
Viktor Szakats
a9c0f66d54 2009-04-21 12:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for ${hb_self} in .hbm files.
    + -incpath/-i will now also add paths to resource compiler.
2009-04-21 10:38:18 +00:00
Przemyslaw Czerpak
bdcde92117 2009-04-21 12:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/valtoexp.prg
    ! fixed typo in copy and past in previous modification
2009-04-21 10:23:26 +00:00
Przemyslaw Czerpak
1e5b62defa 2009-04-21 11:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbdate.c
    ! fixed decoding fractional part of seconds in timestamp expressions
      when less the 3 digits were used.

  * harbour/source/rtl/dateshb.c
    + added optional logical parameter to hb_TSToStr() function to enabled
      packed/stripped form

  * harbour/source/rtl/valtoexp.prg
    % use hb_TSToStr() with new pack parameter in hb_ValToExp() and hb_CStr()
2009-04-21 09:49:02 +00:00
Viktor Szakats
8d3b5783d5 2009-04-21 04:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed minor but fatal oversight in prev commit.
2009-04-21 02:19:58 +00:00
Viktor Szakats
ace39f0fc1 2009-04-20 21:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to find headers in originating file directory.
      This may need further tweaking. This works a little
      differently in Harbour and C compilers and hbmk2 tries
      to mimic both. Possible that it's still not fully
      compatible, if you know something pls speak up.
    + Added -incpath= option and incpaths= .hbp option. This
      is now the preferred method to add headers paths. All
      path will be added to both Harbour and C compiler.
      Important: a synonym for this switch is simply -i, just
      like before, but now the path will be also added to
      C compiler command line.
    * From now on Harbour include dir will always be the first
      one on the include path list passed to compilers. Before
      in Harbour it was always first, in C compilers it was
      always last. (disregarding include dirs passed directly
      to compiler, which will always come first, but isn't
      recommended). The ordering is thus this:
      compiler ... flags harbourincludedir incpaths ...
    - Deleted include path option detection, from now on
      only those paths will be scanned wich were passed to
      hbmk2 via -incpath/-i options.
    % Added -kmo optimization for hbmk2 source.
    + -info and -quiet will now work in .hbm files.
      (they will not control some close-to-startup messages
      if specified this way though)

  * external/libhpdf/Makefile
  * external/libpng/Makefile
    + Enabled for darwin.

  * contrib/hbqt/generator/hbqtgen.prg
    ! Recent fix to hbqt.h applied to generator.

  * utils/hbmk2/hbmk2.hbm
    - Removed no longer needed -km switch.

  * utils/hbmk2/examples/hmg.hbp
  * utils/hbmk2/examples/hwgui.hbp
  * utils/hbmk2/examples/fwh.hbp
    % Updated to use -incpaths=

  * utils/hbmk2/examples/fwh.hbp
    * Updated to work like similar hwgui and hmg files.
    ; QUESTION: Is hbwin lib required for FWH?
2009-04-20 19:18:39 +00:00
Przemyslaw Czerpak
c9ab61737a 2009-04-20 20:53 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/filesys.c
    ! restored hack used for non POSIX compatible _POSIX_SYNCHRONIZED_IO
      definition.
2009-04-20 18:45:43 +00:00
Przemyslaw Czerpak
d25001d133 2009-04-20 20:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbver.c
    * added missing const to function return type
2009-04-20 18:17:54 +00:00
Przemyslaw Czerpak
b551c7b08e 2009-04-20 20:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbsqlit3/hbsqlit3.c
    * updated to compile with older then SQLITE3.6.1 libraries
2009-04-20 18:10:20 +00:00
Przemyslaw Czerpak
23b984aeb3 2009-04-20 17:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbqt/hbqt.h
    ! fixed QT directory names in #include directives for case sensitive
      file systems

  * harbour/source/vm/cmdarg.c
    ! fixed HB_CMDLINE() to work with linear not square cost.
2009-04-20 15:17:14 +00:00
Viktor Szakats
f2a1e1fd1c 2009-04-20 16:30 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.hbm
    + Added -km option.

  * utils/hbmk2/hbmk2.prg
    ! Fixed typo preventing filter keywords to work.
2009-04-20 14:42:48 +00:00
Viktor Szakats
bc447eb8f5 2009-04-20 16:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + -quiet will now suppress command output in case of error.
      This is useful when the commands are large and it makes
      valuable tool output visible.
    ! Fixed recent typos in help code causing RTE.
2009-04-20 14:37:32 +00:00
Viktor Szakats
379f03d5ed 2009-04-20 16:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Typo in 'allwin' filter handling.
2009-04-20 14:19:22 +00:00
Viktor Szakats
3df1455a29 2009-04-20 16:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Using hb_process*() functions instead of hb_run() to elminiate
      some bad side effects of the former (like command line limits
      on Windows). hb_run() is now only used in DOS builds.
2009-04-20 14:16:33 +00:00
Przemyslaw Czerpak
9ad880c611 2009-04-20 14:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
  * harbour/source/common/hbdate.c
  * harbour/source/rtl/strmatch.c
  * harbour/source/rtl/fssize.c
  * harbour/source/rtl/hbffind.c
  * harbour/source/rtl/filesys.c
    * enabled some POSIX function added to 1.8 Linux OpenWatcom builds
      and cleaned some workarounds not longer necessary

  * harbour/source/rtl/hbproces.c
    + added hack with small sysconf() implementation which is still missing
      in OpenWatcom 1.8. Now it's possible to build Harbour in Linux using
      officially distributed OpenWatcom 1.8

  * harbour/source/rtl/disksphb.c
    * added TODO warning message

  * harbour/source/compiler/cmdcheck.c
    ! fixed typo in memory freeing in repeated -p<path> options
2009-04-20 12:24:42 +00:00
Viktor Szakats
60beb19545 2009-04-20 14:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to inherit .hbm dir before doing wildcard expansion.
      This makes wildcarded input files work in .hbm files
      located in different than current dirs.
2009-04-20 12:00:57 +00:00
Viktor Szakats
5209383fc1 2009-04-20 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed wildcarded input files to handle directory component.
2009-04-20 11:02:58 +00:00
Viktor Szakats
cdef827f29 2009-04-20 12:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Made possible to use -hbdyn/-hblib options in .hbm files.
2009-04-20 10:46:39 +00:00
Viktor Szakats
f7ac9f0d15 2009-04-20 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + .c header detection now takes place before doing anything.
      Also compiler setup got moved to the beginning of the
      process.
      This allows to make a stop if something is missing. Some
      more steps are needed to exploit that in practice.
      Please test, this may cause regressions, I didn't test
      all combinations.
    * Generalized internal support for header location detection.
      (now can support any C compiler and it's also possible to
      add this feature for .prg files if needed)
    + Added new filter keywords: allgcc, allwin, allmingw, allmsvc,
      allpocc, allicc.
    + Added support for include dirs with spaces for msvc and mingw.
2009-04-20 09:43:45 +00:00
Viktor Szakats
5bfddcec4d 2009-04-20 08:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental support for header directory autodetection.
      This means that you can pass a list of possible dirs to use
      when a .c header cannot be found in explicitly passed locations.
    ! Fixed to always disable -shared with -hbdyn.
    ! Added hbmaindllp in -hbdyn mode on win|wce.
    ! Fix in -nohbp parameter handling.
    + Added support for macros in -L, -*flag=, -workdir=
    + Added -stop command line parameter which stops execution.
      Can be used in conjunction with arch/comp filters to stop
      execution on certain platforms/compilers.
    ! Fixed to not create workdir in some unlikely combination of options.
    ! Fixed typo causing newer headers not being detected in resource files.
    + Now 'unix' can also be used in filters to check for any *nix platform.
    % Excluding some well-known headers from parsing (windows.h, ole2, os2.h
      currently)
    ; Above changes makes it possible to use hbmk2 to build our contribs.
      The only missing feature is 'install', what is a simple copy.
      ---
      -ohbpgsql

      # just for the sake of an example, not needed for real hbpgsql.
      -stop{dos}

      -inctrypath=${HB_INC_PGSQL}
      -inctrypath={unix}/usr/include
      -inctrypath={unix}/usr/local/pgsql/include
      -inctrypath={unix}/usr/local/pgsql/include/libpq
      -inctrypath={unix}/usr/include/pgsql
      -inctrypath={unix}/usr/include/postgresql
      -inctrypath={unix}/postgres/include
      -inctrypath={unix}/opt/local/include/postgresql83

      postgres.c

      pgrdd.prg
      tpostgre.prg
      ---

  * contrib/hbole/oleinit.c
  * contrib/hbole/hbwinole.h
    * Cleanups in header usage and content. This should fix
      missing hb_oleInit() symbol on some compilers.

  * contrib/examples/pp/hbpptbl.c
    - Removed HB_EXTENSION protected two lines.
2009-04-20 06:27:58 +00:00
Pritpal Bedi
427b0d5e7e 2009-04-19 18:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.h
  * harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/moc_gtqtc.cpp
  * harbour/contrib/gtqtc/tests/hbqt.hbp
    + IMPLEMENTED : Resizing - Though some more refinement is necessary
                      but as a proof of concept it is working.
                    Window is now centered upon startup.
2009-04-20 01:23:48 +00:00
Pritpal Bedi
741463fcd2 2009-04-19 06:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/Makefile
    ! Adopted along hbqt/Makefile pattern - fix to prev.
      Thanks Bisz Istvan.
2009-04-19 13:15:21 +00:00
Pritpal Bedi
73c4dc6617 2009-04-18 17:48 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/generator/hbqtgen.prg
  * harbour/contrib/hbqt/generator/qt45.qtp
  * harbour/contrib/hbqt/hbqt.h

  + harbour/contrib/hbqt/hbqt_qtextblock.cpp
  + harbour/contrib/hbqt/hbqt_qtextblockformat.cpp
  + harbour/contrib/hbqt/hbqt_qtextblockgroup.cpp
  + harbour/contrib/hbqt/hbqt_qtextboundaryfinder.cpp
  + harbour/contrib/hbqt/hbqt_qtextbrowser.cpp
  + harbour/contrib/hbqt/hbqt_qtextcharformat.cpp
  + harbour/contrib/hbqt/hbqt_qtextcursor.cpp
  + harbour/contrib/hbqt/hbqt_qtextdecoder.cpp
  + harbour/contrib/hbqt/hbqt_qtextdocument.cpp
  + harbour/contrib/hbqt/hbqt_qtextdocumentfragment.cpp
  + harbour/contrib/hbqt/hbqt_qtextdocumentwriter.cpp
  + harbour/contrib/hbqt/hbqt_qtextformat.cpp
  + harbour/contrib/hbqt/hbqt_qtextstream.cpp

  * harbour/contrib/hbqt/Makefile_gen

  + harbour/contrib/hbqt/qth/QClipboard.qth
  + harbour/contrib/hbqt/qth/QTextBlock.qth
  + harbour/contrib/hbqt/qth/QTextBlockFormat.qth
  + harbour/contrib/hbqt/qth/QTextBlockGroup.qth
  + harbour/contrib/hbqt/qth/QTextBoundaryFinder.qth
  + harbour/contrib/hbqt/qth/QTextBrowser.qth
  + harbour/contrib/hbqt/qth/QTextCharFormat.qth
  + harbour/contrib/hbqt/qth/QTextCursor.qth
  + harbour/contrib/hbqt/qth/QTextDecoder.qth
  + harbour/contrib/hbqt/qth/QTextDocument.qth
  + harbour/contrib/hbqt/qth/QTextDocumentFragment.qth
  + harbour/contrib/hbqt/qth/QTextDocumentWriter.qth
  + harbour/contrib/hbqt/qth/QTextFormat.qth
  + harbour/contrib/hbqt/qth/QTextStream.qth

  + harbour/contrib/hbqt/tests/demoqt.prg
  + harbour/contrib/hbqt/tests/wvtext.prg
  + harbour/contrib/hbqt/TQTextBlock.prg
  + harbour/contrib/hbqt/TQTextBlockFormat.prg
  + harbour/contrib/hbqt/TQTextBlockGroup.prg
  + harbour/contrib/hbqt/TQTextBoundaryFinder.prg
  + harbour/contrib/hbqt/TQTextBrowser.prg
  + harbour/contrib/hbqt/TQTextCharFormat.prg
  + harbour/contrib/hbqt/TQTextCursor.prg
  + harbour/contrib/hbqt/TQTextDecoder.prg
  + harbour/contrib/hbqt/TQTextDocument.prg
  + harbour/contrib/hbqt/TQTextDocumentFragment.prg
  + harbour/contrib/hbqt/TQTextDocumentWriter.prg
  + harbour/contrib/hbqt/TQTextFormat.prg
  + harbour/contrib/hbqt/TQTextStream.prg
    
    + Added several new classes, hbqtgen.prg adjusted for
      new definitions, implemented more info in the sources
      but deferred for next commit.
2009-04-19 00:59:06 +00:00
Pritpal Bedi
b9fc996942 2009-04-18 17:41 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/Makefile
    ! Adopted along hbqt/Makefile pattern.

  + harbour/contrib/gtqtc/tests/wvtext.prg
    + Added harbour/tests/wvtext.prg here also.
      Change in only HB_GT_QTC_DEFAULT.
      This facilitates the comparison between GTWVT and GTQTC
    + Added harbour/tests/tests.ico
      Used as hb_gtInfo( HB_GTI_ICONFILE, 'tests.ico' )
2009-04-19 00:48:17 +00:00
Pritpal Bedi
3a8b91ddd8 2009-04-18 12:41 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.h
  * harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/moc_gtqtc.cpp
    + IMPLEMENTED : 
        Fired Events : HB_GTE_SETFOCUS | HB_GTE_KILLFOCUS | HB_GTE_RESIZE 
        Cursor       : SC_NONE | SC_NORMAL | SC_SPECIAL1 | SC_SPECIAL2
    ! IMPROVED    : Many artifacts.
                
  * harbour/contrib/gtqtc/tests/demoqtc.prg
    ! Modified to demonstarte above changes.

    NOTE: GTQTC is complete on base level. Only few gliches remain for
          cursor management under certain circumstances. The lib is 
          tested on Winsow XP and QT 4.5 (2009.01). I am sure there 
          may be few issues coming up more you test on different 
          platforms.

          So I am looking for feedback especially from *nix users.

    (::)  At this point I will request Przemek to review gtqtc.c.h
          and point me to optimization it may require.
2009-04-18 19:42:15 +00:00
Pritpal Bedi
29b1f0b848 2009-04-17 11:47 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/generator/hbqtgen.prg
    ! oMenuBar:show() => oWnd:setMenuBar( QT_PTROF( oMenuBar ) ) 
      Thanks Bisz Istvin for provising the clue.
2009-04-17 18:50:26 +00:00
Pritpal Bedi
a6ebbdb4c4 2009-04-17 08:36 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.h
  * harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/moc_gtqtc.cpp
    ! Fixed more Windows specific contents. It should compile 
      on *nixes now [ Qt::WindowCloseButtonHint could be the exception ]
    + Implemented timer event.
    + Implemented PALETTE functionality of GTWVT.
    + Implemented drawing console output to an image first and then 
      rendered onto the screen. This requirement is initiated because
      nowhere I found a way to mimic blinking CARET. 
      The proof of concept is implemened through part of image 
      rendering in a timer event. It may introduce some overhead 
      but please be noted that we have to live with it until we 
      reach a proper solution.
    
      Rendered to image and then flushed to screen is a powerful
      feature of QT and we may take use of it in many ways in future.
      Probably QTWVG will exploit it to maximum if we do not 
      plan some extenstions in GTQTC.

  * harbour/contrib/gtqtc/tests/demoqtc.prg
    ! Demonstrated implemented facts as above.
      Note the BLINKING block on the console, may be, 
      implemented as a replacement to windows caret.
2009-04-17 15:36:24 +00:00
Pritpal Bedi
29a8684c43 2009-04-17 08:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/generator/hbqtgen.prg
  * harbour/contrib/hbqt/generator/qt45.qtp
  * harbour/contrib/hbqt/Makefile_gen
  * harbour/contrib/hbqt/hbqt.h
  + harbour/contrib/hbqt/hbqt_qclipboard.cpp
  + harbour/contrib/hbqt/TQClipboard.prg
    + Added QClipboard class.
    ! Fixed hbqt.h generation not to include #define version...
2009-04-17 15:13:38 +00:00
Przemyslaw Czerpak
4ac538784c 2009-04-17 16:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/fm.c
    ! fixed typo in recent modification which broke compilation
2009-04-17 14:19:15 +00:00
Przemyslaw Czerpak
5c632ccff8 2009-04-17 15:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbqt/hbqt.h
    * commented out #define QT_VERSION 0x040500
2009-04-17 13:41:07 +00:00
Viktor Szakats
ce8e5643c4 2009-04-17 15:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/Makefile
    + Enabled "amalgamated" VM lib for all compilers/platforms,
      except for those where this doesn't give any advantage, or
      it breaks the build, these are: pocc*, xcc, bcc, dmc.
      Please note that Open Watcom 1.7 might also fail (I didn't
      test), so make sure to upgrade to 1.8.

  * harbour-win-spec
  * harbour-wce-spec
  * mpkg_win.bat
  * mpkg_tgz.sh
  * harbour.spec
  * bin/hb-func.sh
  * include/hbsetup.h
  * source/vm/Makefile
  * source/vm/fm.c
  - source/vm/fm
  - source/vm/fmmt
  * utils/hbmk2/hbmk2.prg
    - Removed hbfm and hbfmmt lib references. These libs are
      no longer generated or used.
    * Narrowed HB_FM_STATISTICS presence in various source
      files. From now on the system default for all builds is
      HB_FM_STATISTICS_OFF. We may change this to
      HB_FM_STATISTICS_DYN_OFF if we find a solution to the
      potential and actual problems with this method.
      If someone needs to change mem stat default, it can be
      done by ususal means.
2009-04-17 13:13:48 +00:00
Viktor Szakats
2b0728caea 2009-04-17 10:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for envvar HB_VISUALC_VER_PRE80 to signal 
      older MSVC versions (just like in Harbour builds).
    + Synced mscvarm optimization switches.
      The sync between hbmk2 and Harbour build switches is 
      now done. The only - intentional - difference is that 
      hbmk2 won't set any explicit C compiler warning level,
      but this also can be implemented later with optional 
      switches.
    ! Fixed regression in win/icc linker name.
2009-04-17 08:51:56 +00:00
Viktor Szakats
5917b81453 2009-04-17 08:20 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed -strip for gcc family. It got broken after switching
      to separate link phase.
    ! Fixed -bind_as_load and -multiply_defined suppress to be
      passed at link phase on darwin. Got broken like above.
      Change not tested.
    ! Fixed RTE in FINDNEWERHEADERS(3064).
2009-04-17 06:24:23 +00:00
Viktor Szakats
f128a09655 2009-04-16 23:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -opt/-noopt switch (plus .hbp param) to control
      C compiler optimizations.
    + Added C compiler optimizations to all compilers identical
      to the ones used to build Harbour. Specifically MinGW,
      MSVC got new switches, bcc got -6, owatcom got fully
      synced.
    + Added internal support for C++ mode selection for all
      compilers.
    + Added -debug support for all compilers where it was missing
      (most).
    ! Synced poccarm switch with Harbour build.

  - utils/hbmk2/examples/minigui.hbp
  + utils/hbmk2/examples/hmg.hbp
    + Harbour MiniGUI hbmk2 param file updated 
      and instructions added. Now it's possible 
      to build hmg apps using hbmk2 very easily, 
      see instructions in file.

  * utils/hbmk2/examples/hwgui.hbp
    + hwgui hbmk2 param file updated and 
      instructions added. Now it's possible
      to build hwgui apps using hbmk2 very easily, 
      see instructions in file.

  * source/vm/itemapi.c
  * source/rtl/hbffind.c
  * contrib/hbct/atnum.c
    ! Fixed macro related warnings.
2009-04-16 21:30:09 +00:00
Przemyslaw Czerpak
d027cd3275 2009-04-16 21:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrdddbf.h
  * harbour/include/hbrddnsx.h
  * harbour/include/hbdbsort.h
  * harbour/include/hbrddcdx.h
  * harbour/include/hbrddfpt.h
  * harbour/include/hbrddntx.h
  * harbour/source/rdd/dbf1.c
    * simplified some internal DBFRDD macros/declaration
2009-04-16 19:29:16 +00:00
Przemyslaw Czerpak
f184dc34f7 2009-04-16 17:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/garbage.c
    + added optional support for automatic GC activation.
      It's not enabled by default yet but by compilation with macro
      HB_GC_AUTO, f.e. after setting envvar:
         set HB_USER_CFLAGS=-DHB_GC_AUTO
      Automatic GC activation may be necessary for code which creates
      complex variables with cyclic references and does not execute
      any other code which may activate idle state GC call. It also
      makes unnecessary to explicitly call hb_gcAll() from user code,
      f.e. as some type of background task. If some of you were using
      code which needed such explicit GC activation then please remove
      it and make some tests with Harbour compiled with HB_GC_AUTO macro.

      This simple .prg code illustrates the problem. When linked with HVM
      without automatic GC it quite fast allocates all available memory
      and finished with out of memory error or is interrupted by OS.
      When automatic GC is enabled it can work unlimited time period
      with some fixed maximum memory usage.

            proc main()
               local a
               while .t.
                  a:={nil}
                  a[1]:=a
               enddo
            return
2009-04-16 15:48:13 +00:00
Pritpal Bedi
b0be5d7ac2 2009-04-16 00:37 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/gtqtc.h
    ! Fix to many unsuppoted defines on *nixes.
      Przemek, please compile again. Probably by now it will
      only 'WindowCloseButtonHint' error may appear. But reading
      the documents QT nowhere specifies that it is platform
      dependant member. Can you please comment out 
      #define QT_VERSION 0x040500 in hbqt.h and compile again.
      It is left-over residual.
2009-04-16 14:53:18 +00:00
Viktor Szakats
acefc0332e 2009-04-16 16:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for wildcarded input files for Harbour,
      C, resource compiler and object input files.
      This also works in .hbm files. Note: You must specify
      the extension, so *.* won't work, but *.prg and *.c will.
      Use with care, as hbmk2 will pickup everything and this
      may not be what you want to do f.e. in our tests dirs,
      but it can be useful if you store source files belonging
      to the same project in one dir, or with some unique
      filename prefix.
      (some of these may be unnecessary on *nix platforms, where
      the shell does such expansion already, it's still useful
      though, as *nix users can also benefit from wildcard usage 
      inside .hbm files)
2009-04-16 14:08:11 +00:00
Viktor Szakats
31c1c2370d 2009-04-16 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    % Skipping duplicate headers while walking the inclusion tree.
      This is a more efficient way to avoid inclusion loops,
      allowing deeper recursion.
    + Recursion level increased to 10 (from 4).
2009-04-16 13:48:31 +00:00
Viktor Szakats
d610c88430 2009-04-16 12:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for source file parsing for headers in -inc mode.
      .prg, .c and .rc files are currently parsed recursively,
      include paths will be scanned for included files. There are
      currently three levels of scanning: disabled, partial (default)
      and full. Partial will scan the first 16K of each source file
      for performance reasons, full will scan the complete files.
      The source parser is currently very simple; '#include "<filename>"'
      pattern is recognized anywhere in the processed source, no
      other variations are supported ATM. Using this format is IMO
      best practice for user programs, if someone needs more
      than this, it needs to be developed, current method is quite
      fast, which is important when dealing with lots of source
      files.
    + Added option to control header scanning: -[no]head=<mode>
      This is also supported in .hbp files.
    + Added support to look in current dir for libs for compilers
      where this is supported.
    + Added cmdline option -resflag=, .hbp option resflags= and
      overall support for user supplied resource compiler flags.
    + Added support for cyg*.dll style libs.
    ! Fixed to handle libs with explicit dirs for compilers
      where this is supported.

  * config/dos/owatcom.cf
  * config/win/owatcom.cf
  * config/linux/owatcom.cf
  * config/os2/owatcom.cf
    + Added link to wlink options.
2009-04-16 10:33:36 +00:00
Pritpal Bedi
0fa5d03ecc 2009-04-16 00:37 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/moc_gtqtc.cpp
  * harbour/contrib/gtqtc/gtqtc.h
    + Implemented : hb_gtInfo( HB_GTI_ICONFILE, cFileIco )
                  : K_MWFORWARD | K_MWBACKWARD
2009-04-16 07:42:49 +00:00
Pritpal Bedi
df6586c757 2009-04-15 22:27 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtqtc/gtqtc.cpp
  * harbour/contrib/gtqtc/gtqtc.h
  * harbour/contrib/gtqtc/tests/demoqtc.prg
    ! Implemented : hb_gtInfo( HB_GTI_CLOSABLE, TRUE | FALSE )
                  : hb_gtInfo( HB_GTI_RESIZABLE, TRUE | FALSE )
                  : hb_gtInfo( HB_GTI_CLIPBOARDDATA[, cText ] )

      Struggling  : How to manage caret ? Anybody to rescue ?
2009-04-16 05:34:12 +00:00
Viktor Szakats
d9a1a96649 2009-04-16 04:18 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -inc support for lib dependencies. This means that
      changed libs will also force a target rebuild.
      I've implemented three separate logic for mingw/cygwin,
      gcc/linux+sunos and the rest of compilers. This may not
      be precisely the way each of the hbmk2 supported compilers
      wotk, but it probably covers most cases. Anyhow please
      tweak and correct if you find some problems. I did
      tests with mingw, msvc, bcc static and shared mode.
    ! Removed automatic path tweak in .hbp/libpaths=.
2009-04-16 02:19:47 +00:00