Commit Graph

1137 Commits

Author SHA1 Message Date
Viktor Szakats
6f26003775 2009-12-16 04:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed watcom targets to switch to single input file mode
      when C mode (now default) is used.
      Maybe OpenWatcom developers should finally sync such
      basic behavior between their C and C++ compilers. Until
      then we keep adding hacks.
2009-12-16 03:54:07 +00:00
Viktor Szakats
b36077420e 2009-12-13 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    + Added support for unlimited number of recipients and
      attached files. Please test and review.

  * utils/hbmk2/hbmk2.prg
    + Added support for linux/open64. (Please test)

  * INSTALL
    + Added open64.
2009-12-13 13:49:14 +00:00
Przemyslaw Czerpak
b308f56ac2 2009-12-10 21:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    * removed 'static inline' from OpenWatcom ASM functions defined
      by '#pragma aux ...' to make OpenWatcom < 1.8 happy.
      Version 1.8 ignores 'static inline' attributes in such declarations.

  * harbour/config/dos/watcom.mk
  * harbour/utils/hbmk2/hbmk2.prg
    * switched from DOS/4GW to DOS/32A extender. It's faster what is
      noticeable also in final Harbour binaries, does not have DOS4G
      command line limitations and has nice tools which allow to easy
      set different runtime parameters (ss.exe) or compress final
      executable (sc.exe)
      BTW people having problem with maximum command line size in
      OpenWatcom tools can replace DOS/4GW with DOS/32A in this tools
      It can be made also globally by coping dos32a.exe to dos4gw.exe.
      NOTE: I've found why DOS Harbour OpenWatcom application created
            in my Linux box were not working. Just simply the directory
            with DOS extender setup files was not in PATH.
            Creating DOS OpenWatcom applications in other systems (i.e.
            Linux or OS2) do not forget to add directory with DOS binaries
            '%WATCOM%\binw' to PATH after directory with platform native
            OpenWatcom binaries '%WATCOM%\bin*' or copy DOS extender
            (dos32a.exe) to one of PATH directories.

  * harbour/config/dos/watcom.mk
    * added workaround for not included automatically by linker CLIB
      library when Harbour is compiler in pure C mode. I hope it's only
      temporary hack which we can remove in the future. I haven't added
      it to hbmk2 so linking DOS applications using hbmk2 user will have
      to add -lclib3r to hbmk2 parameters.

  * harbour/config/common/watcom.mk
    * disable DOS/32A banner messages
2009-12-10 20:49:23 +00:00
Viktor Szakats
0c30daf54e 2009-12-09 16:09 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * utils/hbmk2/hbmk2.prg
  * config/dos/watcom.mk
  * config/win/watcom.mk
  * config/linux/watcom.mk
  * config/os2/watcom.mk
    + Switched back plain C mode for watcom compiler.
2009-12-09 15:10:58 +00:00
Przemyslaw Czerpak
094aea1ff3 2009-12-09 15:30 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapilng.h
  + harbour/include/hbmsgreg.h
    + added common for all Harbour lang modules (msg*.c) header file
      with initialization code

  * harbour/src/lang/msgbe866.c
  * harbour/src/lang/msgbewin.c
  * harbour/src/lang/msgbg866.c
  * harbour/src/lang/msgbgiso.c
  * harbour/src/lang/msgbgmik.c
  * harbour/src/lang/msgbgwin.c
  * harbour/src/lang/msgca.c
  * harbour/src/lang/msgcs852.c
  * harbour/src/lang/msgcsiso.c
  * harbour/src/lang/msgcskam.c
  * harbour/src/lang/msgcswin.c
  * harbour/src/lang/msgde.c
  * harbour/src/lang/msgdewin.c
  * harbour/src/lang/msgel.c
  * harbour/src/lang/msgelwin.c
  * harbour/src/lang/msgeo.c
  * harbour/src/lang/msges.c
  * harbour/src/lang/msgeswin.c
  * harbour/src/lang/msgeu.c
  * harbour/src/lang/msgfr.c
  * harbour/src/lang/msggl.c
  * harbour/src/lang/msghe862.c
  * harbour/src/lang/msghewin.c
  * harbour/src/lang/msghr437.c
  * harbour/src/lang/msghr852.c
  * harbour/src/lang/msghriso.c
  * harbour/src/lang/msghrwin.c
  * harbour/src/lang/msghu852.c
  * harbour/src/lang/msghucwi.c
  * harbour/src/lang/msghuiso.c
  * harbour/src/lang/msghuwin.c
  * harbour/src/lang/msgid.c
  * harbour/src/lang/msgis850.c
  * harbour/src/lang/msgit.c
  * harbour/src/lang/msgko.c
  * harbour/src/lang/msgltwin.c
  * harbour/src/lang/msgnl.c
  * harbour/src/lang/msgpl852.c
  * harbour/src/lang/msgpliso.c
  * harbour/src/lang/msgplmaz.c
  * harbour/src/lang/msgplwin.c
  * harbour/src/lang/msgpt.c
  * harbour/src/lang/msgptiso.c
  * harbour/src/lang/msgro.c
  * harbour/src/lang/msgru866.c
  * harbour/src/lang/msgrukoi.c
  * harbour/src/lang/msgruwin.c
  * harbour/src/lang/msgsk852.c
  * harbour/src/lang/msgskiso.c
  * harbour/src/lang/msgskkam.c
  * harbour/src/lang/msgskwin.c
  * harbour/src/lang/msgsl437.c
  * harbour/src/lang/msgsl852.c
  * harbour/src/lang/msgsliso.c
  * harbour/src/lang/msgslwin.c
  * harbour/src/lang/msgsr852.c
  * harbour/src/lang/msgsriso.c
  * harbour/src/lang/msgsrwin.c
  * harbour/src/lang/msg_tpl.c
  * harbour/src/lang/msgtr857.c
  * harbour/src/lang/msgtrwin.c
  * harbour/src/lang/msgua866.c
  * harbour/src/lang/msguados.c
  * harbour/src/lang/msguakoi.c
  * harbour/src/lang/msguawin.c
  * harbour/src/lang/msgzhb5.c
  * harbour/src/lang/msgzhgb.c
    * modified to use initialization code defined in common for all
      lang modules header file.

  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/hbqt/qtgui/QApplication.cpp
  * harbour/contrib/hbqt/qth/QApplication.qth
    * use default GT startup cvode (#include "hbgtreg.h")

  * harbour/include/hbinit.h
  + harbour/include/hbiniseg.h
    * replaced HB_MSC_STARTUP code with more universal HB_DATASEG_STARTUP
    * moved HB_DATASEG_STARTUP code to separate header file to reduce
      modifications in other files when this code has to be changed or
      extended
    + added support for startup code in OpenWatcom C builds. Now we can
      create OpenWatcom Harbour binaries without forcing C++ mode.
      I've tested Linux and Win32 builds and they works correctly.
      Probably similar solution can be used also for other C compilers
      which do not have native interface to define starup code.

  * harbour/src/compiler/genc.c
  * harbour/utils/hbmk2/hbmk2.prg
  * harbour/include/hbcdpreg.h
  * harbour/include/hbgtreg.h
  * harbour/src/rtl/hbregex.c
  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/dbfcdx/dbfcdx1.c
  * harbour/src/rdd/dbffpt/dbffpt1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/sdf1.c
  * harbour/src/pp/pplib3.c
  * harbour/contrib/rddads/ads1.c
  * harbour/contrib/rddads/adsx.c
  * harbour/contrib/rddsql/sddfb/fbirddd.c
  * harbour/contrib/rddsql/sddmy/mysqldd.c
  * harbour/contrib/rddsql/sddodbc/odbcdd.c
  * harbour/contrib/rddsql/sddpg/pgsqldd.c
  * harbour/contrib/rddsql/sqlbase.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/hbbmcdx/bmdbfcdx.c
  * harbour/contrib/hbmemio/memio.c
  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbbtree/hb_btree.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/win_com.c
    * modified to use HB_DATASEG_STARTUP instead of HB_MSC_STARTUP
      Now HB_MSC_STARTUP is local macro used only in hbinit.h.
      Please make MSVC build tests.

  * harbour/contrib/hbmemio/memio.c
    ! declare s_fileFuncs structure as static
    * removed unnecessary code to directly register HB_MEMIO symbol.
      Mindaugas if you need it for some reasons then I can reactivate it
      but I would like to know why it's necessary for you.

  * harbour/src/vm/task.c
    ! added missing {}

  * harbour/src/vm/fm.c
    * locally disabled "unreachable code" warnings for dlmalloc.c
      compilation by OpenWatcom in pure C mode

  * harbour/src/rtl/hbzlibgz.c
    * minor code cleanup

  * harbour/src/rtl/filesys.c
    * pacified OS/2 warnings

  * harbour/contrib/hbcairo/core.c
    ! fixed casting for C++ builds

  * harbour/contrib/hbwin/wapi_winbase.c
    ! fixed casting

  * harbour/src/Makefile
    * changed the order of compiled libraries to improve little bit
      the speed in concurrent (-j<N>) builds
2009-12-09 14:33:48 +00:00
Viktor Szakats
b3ba627781 2009-12-05 13:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* win-make.exe
  * INSTALL
    + Updated to latest mingw release. Updated links.

  * utils/hbmk2/hbmk2.prg
    + Minor step towards -cpu support.
2009-12-05 12:11:36 +00:00
Viktor Szakats
c9b897c20e 2009-12-05 04:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to pass self-inherited -mlp64, -mlp32, -m64, -m32
      C compiler flags also to executable and dynlib linker.
2009-12-05 03:35:01 +00:00
Viktor Szakats
22e65f082a 2009-12-05 04:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/hbpp.c
  * src/compiler/hbusage.c
  * utils/hbformat/hbformat.prg
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
  * utils/hbtest/hbtest.prg
  * utils/hbi18n/hbi18n.prg
  * utils/hbrun/hbrun.prg
    * Copyright year bumped to 2010.
2009-12-05 03:29:12 +00:00
Viktor Szakats
bf1e4afd3a 2009-12-05 03:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.bat
    + Syncing C/C++ Harbour build mode with hbmk2 invocation
      options in postinst phase. (please test)
      Only required for mingw, but it's done for every compiler
      for consistency, but only if it's overridden by user.
      (so f.e. for msvc, C++ isn't enabled in this case. This
      could be done on hbmk2 level however, but it would cause
      a lot of 3rd party code to break so I didn't do it yet.)

      I didn't add logic to hbmk2 to inherit build-time C/C++
      setting, because it wouldn't work in cross-build situations,
      and multi-target installations.

  * utils/hbmk2/hbmk2.prg
    + Added comment on msvc C++ mode.
2009-12-05 03:00:44 +00:00
Viktor Szakats
6fdd5f7c26 2009-12-05 01:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added Harbour lib dir autodetection when Harbour installed
      on 64-bit systems (where libs are in */lib64/harbour).
      Please test it.

    ; NOTE: I've also found some logic which makes hbmk2 build
            process inherit -m64/-m32/-mlp64/-mlp32 switches from
            hbmk2 itself. But it only passes it to C flags.
            I'm not sure it sure pass it at all, but in case it
            needs to pass it, should it also pass it to linker
            flags? I don't have 64-bit linux development system
            to try these things.
2009-12-05 00:59:30 +00:00
Viktor Szakats
5e1440f748 2009-12-04 00:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
     ! Added -debug linker option when building .dll for msvc and compatible targets.
     ! Fixed minor regression in embedded CRLFs of hbmk2 texts.

   * config/win/msvc.mk
   * utils/hbmk2/hbmk2.prg
     + Added -MT/-MTd for win/msvc compatible targets when verison is 7.1 (.NET 2003)
       or older. On these versions this will assure that multithreading C RTL is 
       being used (at the same time forcing static C RTL).

   * config/wce/msvcarm.mk
   * config/win/msvc.mk
     + Added -debug linker option for executables.
     ; TODO: Add it for .dlls too.

   * config/globsh.mk
     + Deleting (MSVC) .pdb and .ilk files for executables and dynlibs on 'make clean'.
2009-12-03 23:20:47 +00:00
Viktor Szakats
9d9ba42925 2009-12-03 16:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
   * utils/hbmk2/hbmk2.prg
     + Added autodetection of DWARF-2 build of mingw.
       This is mingw build is required for QT 4.6.0.

   * utils/hbmk2/hbmk2.prg
     ! Fixed to consider HB_CCPOSTFIX setting when trying to autodetect gcc/win, gcc/wce.
2009-12-03 15:04:28 +00:00
Viktor Szakats
f4c1fe62e5 2009-12-01 08:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/philes.c
  * src/rtl/philes53.c
  * include/hbextern.ch
    + Added HB_FSETDEVMODE(). Documented, always available
      equivalent of C5.3 undocumented function FSETDEVMOD().

  * utils/hbmk2/hbmk2.prg
    * Changed to use HB_FSETDEVMODE().
2009-12-01 07:58:05 +00:00
Viktor Szakats
2ea432aed1 2009-12-01 02:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Ops forgot to switch macro to Chr( 10 ) from hb_osNewLine().
2009-12-01 02:00:44 +00:00
Viktor Szakats
8894b31dd0 2009-12-01 02:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Setting std and err output handles to text mode as an attempt
      to fix OS/2 (and MS-DOS) jagged output.
    * At the same time changed to use Chr( 10 ) instead of hb_osNewLine() 
      to send EOL to std and err outputs.
    ; Thanks Przemek for the help.
2009-12-01 01:58:44 +00:00
Viktor Szakats
3f19f432ce 2009-12-01 01:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_shellapi.c
    ! WAPI_USERISANADMIN() -> WAPI_ISUSERANADMIN()

  * utils/hbmk2/hbmk2.prg
    ! Added RTRIM() to MEMOLINE() calls to strip right space paddings.
2009-12-01 00:24:05 +00:00
Viktor Szakats
e45c8c7e1a 2009-11-30 12:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/xhgtk.hbc
    ! Minor correction to prev.
      (still without testing though)
2009-11-30 11:04:06 +00:00
Viktor Szakats
61415bf57f 2009-11-30 11:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * bin/hb-mkimp.bat
  * contrib/hbqt/hbqt.hbc
  * contrib/hbqt/hbqts.hbc
  * contrib/gtqtc/gtqtcs.hbc
  * contrib/gtqtc/gtqtc.hbc
  * utils/hbmk2/examples/xhgtk.hbc
  * config/global.mk
    + Eliminated HB_DIR_* envvar requirement to find required 3rd
      party component libs.
      This means that it's now enough to only set HB_WITH_* envvars
      to enable HB_BUILD_IMPLIB.
      This should make configuration a lot simpler, and this clears
      the last pending TODO in this area.
      HB_INC_* won't work this way, so please start to migrate to
      HB_WITH_* envvars, the values should stay the same.

  * external/pcre/cnv_o2hb.bat
  * external/pcre/cnv_hb2o.bat
    * Updated comment.
2009-11-30 10:53:51 +00:00
Viktor Szakats
dfd0b5a7ad 2009-11-30 08:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    ! Typos in latest modification.

  * contrib/hbmisc/spd.c
    + Patch by Xavi.

  * utils/hbmk2/hbmk2.prg
    + Added one TODO.
2009-11-30 07:47:53 +00:00
Viktor Szakats
a88c0e2e81 2009-11-29 22:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -xhp=<xMate .xhp file> option which will attempt to
      read xMate project file and save it as .hbp file.
      This is experimental and I'd like to ask xMate users to
      update/extend this converter code as I'm not xMate user.
      Moreover the only .xhp file sample I have is pretty slim,
      limited, so it may easily be possible that some features
      are not imported or imported wrongly.
2009-11-29 21:53:06 +00:00
Viktor Szakats
bb15cd8ac7 2009-11-29 22:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -xbp=<xbuild .xbp file> option which will attempt to
      read xbuild project file and save it as .hbp file.
      This is experimental and I'd like to ask xbuild users to
      update/extend this converter code as I'm not xbuild user.
2009-11-29 21:08:39 +00:00
Viktor Szakats
344be06577 2009-11-29 20:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -hbmake=<hbmake file> option which will attempt to 
      read hbmake project file and save it as .hbp file.
      This is experimental and I'd like to ask hbmake users to 
      update/extend this converter code as I'm not hbmake user.
      This feature is to aid users to migrate from hbmake to hbmk2.
      Notice that along the same line converter could be written 
      for .xbp and xMate project files too.

  * src/compiler/Makefile
  - src/compiler/gencobj.c
  * src/compiler/hbmain.c
  * src/compiler/cmdcheck.c
  * src/compiler/hbusage.c
  * include/hbcompdf.h
  * debian/rules
  * mpkg_src.sh
  * mpkg_tgz.sh
  * harbour.spec
    - Deleted support for harbour.cfg / compiler -go mode.
      This was scheduled to be done after release, but since
      hbmk2 seems to be a very solid tool now with visible
      acceptance from users, it seems safe to make the move
      now. This will mean that one less Harbour file will
      "pollute" system locations, which is always a good
      thing. Plus this part had a few bugs, which are now
      also a thing of the past.

  - examples/hbmake
    - Deleted hbmake tool. This wasn't really working anyway,
      and require -go mode, which was deleted.
      Use hbmk2 instead.

  * mpkg_src.sh
  * mpkg_tgz.sh
    ! Fixed indentation to be consistent 4 chars.
2009-11-29 19:04:12 +00:00
Viktor Szakats
8b8bf4d810 2009-11-28 20:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/spd.c
    * __XHARBOUR__ protected DATETIME part converted to commented code.
    ; TODO: Xavi, pls update this code to build with Harbour, now
            we have DATETIME support as well.

  * utils/hbformat/hbformat.prg
  * src/rdd/usrrdd/rdds/logrdd.prg
  * tests/usrrdd/exlog.prg
  * contrib/gtwvg/wvgutils.c
  * examples/httpsrv/cgifunc.prg
  * examples/httpsrv/session.prg
    - Deleted __XHARBOUR__ protected parts.

  * examples/rddado/adordd.prg
  * examples/httpsrv/uhttpd.prg
    * TRY/CATCH converted to BEGIN SEQUENCE, dropping all __XHARBOUR__
      portected parts.

  * include/hbapi.h
    * TRUE/FALSE -> HB_TRUE/HB_FALSE.
2009-11-28 19:03:00 +00:00
Przemyslaw Czerpak
5ba8b665f3 2009-11-26 22:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/garbage.c
    % small improvement in HB_GC_AUTO code

  * harbour/include/hbdefs.h
    ! reverted the hack which casted file handles to unsigned values
      I added two weeks ago - it was also converting FS_ERROR value
      from -1 to 4294967295. Please remember that on some platforms
      negative handles can exist and are valid. Only -1 indicates an
      error.

  * harbour/utils/hbtest/rt_file.prg
    + added regression test for FOPEN() FS_ERROR value

  * harbour/contrib/hbwin/legacycd.c
  * harbour/contrib/hbwin/legacyco.c
    * added missing EOL at EOF
2009-11-26 21:26:13 +00:00
Viktor Szakats
0f02c19ad3 2009-11-25 09:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * -bm watcom option disabled for linux to get in sync with
      GNU Make system.
2009-11-25 08:38:43 +00:00
Viktor Szakats
2053cdaf47 2009-11-23 22:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to use '-ofilename' to spec C compiler object
      output, instead '-o filename'. Following linux/clang.mk.
      (There is utter chaos with this -o option)

  * config/darwin/clang.mk
    + Documented fact that '-ofilename' also works (just
      like in linux/clang).

  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
  * config/linux/sunpro.mk
  * config/linux/global.mk
    % Moved strip configuration to global.mk.
2009-11-23 21:50:47 +00:00
Viktor Szakats
1e3e6b7f8e 2009-11-23 22:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Turn on detailed maps for bcc targets when -map option is used.
2009-11-23 21:03:31 +00:00
Viktor Szakats
30fd53af2e 2009-11-22 12:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support for linux/clang. (untested)
      (what package has to be installed? I installed llvm yesterday, 
      but couldn't find clang on Ubuntu)

  * config/linux/clang.mk
    ! Added SVN props.
2009-11-22 11:58:46 +00:00
Viktor Szakats
c8af764db8 2009-11-21 18:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added clang support to link to dylib with full dirspec 
      (when Harbour is not used/installed in a system location)
2009-11-21 17:15:56 +00:00
Viktor Szakats
51779d8234 2009-11-21 12:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to make clang behave like gcc when decorating lib references.
    ! Fixed to include clang in 'allgcc' filter.
    + Added native header detection when using clang.
    ! Internal change to use detected c compiler name instead of 
      hard-wired 'gcc' when doing native header detection for .c files
      (using -MM option).
2009-11-21 11:38:44 +00:00
Viktor Szakats
39a66166e0 2009-11-21 11:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
  * utils/hbmk2/hbmk2.prg
  * config/darwin/clang.mk
    + Using __clang__ for Clang detection instead of locally rolled 
      solution.

  * src/common/hbver.c
    + Added Clang compiler detection.
2009-11-21 10:11:32 +00:00
Viktor Szakats
a2c2b76080 2009-11-20 17:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added missing Fossil VCS from help text.
2009-11-20 16:26:16 +00:00
Viktor Szakats
2d8ce1aac8 2009-11-19 00:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Don't display translator if detected language is en-US.
2009-11-18 23:38:13 +00:00
Viktor Szakats
52da6a02a5 2009-11-18 22:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added dependency tree to flat dependency list converter.
      (no cyclic reference check here)

  * contrib/gtwvg/wvgwing.c
    ! Fixed for Windows x64 platform.

  * contrib/gtwvg/Makefile
    + Enabled for Cygwin, IA64 and mingw64 compilers.
      Latest mingw64 experimental builds build it fine.
      This means all win compilers are supported except xcc.
    ; NOTE: Now it's disabled only for xcc.
            Can someone with xcc installed try gtwvg? Maybe it can 
            be made work so we can drop this exception.

  * config/global.mk
  * utils/hbmk2/hbmk2.prg
    + Added autodetection of x86_64 build of mingw64.
      (in hbmk2 it's recognized even if host platform isn't x64)

  * INSTALL
    + Added darwin -> win/mingw64 cross-platform scenario.
      Such binaries are now provided by the mingw64 project.
2009-11-18 21:47:14 +00:00
Viktor Szakats
eb786fe2b4 2009-11-18 16:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
    * Changed HB_ERRCODE to be 'insigned int' (was USHORT).
    ; You'll need to rebuild all sources.

  * utils/hbmk2/hbmk2.prg
    % Turned off line numbers (for hbmk2 itself).

  * INSTALL
    * Minor formatting.
2009-11-18 15:09:18 +00:00
Przemyslaw Czerpak
2f75be79b1 2009-11-17 17:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbtest/rt_str.prg
    * modified code which tries to replicate Clipper behavior with ULONG
      values also in 64bit systems where ULONG is not 32bit integer
2009-11-17 16:30:09 +00:00
Viktor Szakats
14de32d872 2009-11-16 00:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed typo in generated .c stub. It could cause that 
      some automatic initializations didn't work for some 
      compilers.
2009-11-15 23:15:08 +00:00
Viktor Szakats
3355607f87 2009-11-15 08:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed typo causing build-time flags to not be recognized 
      when using embedded Harbour compiler and -bldf option.
2009-11-15 07:38:25 +00:00
Viktor Szakats
46519d7827 2009-11-09 23:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddads/adsfunc.c
    * Minor cleanup.

  * doc/dirstruc.txt
  * utils/hbmk2/examples/contribf.hbc
  * contrib/Makefile
  - contrib/rddado
  + examples/rddado
  + examples/rddado/rddado.hbp
  - examples/rddado/Makefile
    * Moved rddado from contrib to examples area.
      It's an almost working example.
2009-11-09 22:38:57 +00:00
Viktor Szakats
f1f4b7e1e1 2009-11-05 19:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Deleted 'lib' prefix for os2/gcc targets to sync it 
      with Harbour GNU make build setup.
      See my mail on dev list for other options.
2009-11-05 19:03:08 +00:00
Viktor Szakats
bb37817b27 2009-11-05 15:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/os2/gcc.mk
    ! Fixed to use .lib extension in gccomf mode. As far I could 
      debunk it from lenghty e-mail, this is the default extension for 
      libs, used by OS/2 GCC in OMF mode.
      If not, don't blame me.
    ! Fixed to not use lib prefix in gccomf mode.
      It does seem alright but due to no testing again give me 
      *very short correction information*, if this turns out to be 
      false.

  * contrib/hbct/disk.c
    ! Typo in comment.
2009-11-05 14:10:27 +00:00
Przemyslaw Czerpak
8eb52166ad 2009-11-04 20:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    ! do not overwrite file extensions set in .clp file when checking
      dependencies in incremental mode
2009-11-04 19:05:01 +00:00
Przemyslaw Czerpak
0357d329c2 2009-11-04 19:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    ! fixed incremental mode for @.clp files.
      I tried to make all modifications locally to not break
      some other code which may need "@" in file names because
      I do not know hbmk2 code.
2009-11-04 18:51:40 +00:00
Viktor Szakats
ac24e22ba6 2009-11-04 17:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/os2/gcc.mk
    * Changed to use GCC default extensions for objects and libs 
      even in OMF mode.
    ! This fixed hbmk2 problems reported by David Arturo Macias Corona.
    ; Please verify if now also changed lib extension didn't create 
      any new problem in hbmk2, f.e. when using -strip option.
2009-11-04 16:06:27 +00:00
Viktor Szakats
530f25966e 2009-11-01 09:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added plans (TODO) for next gen compiler autodetection.
      This will surpass currently implemented autodetection in 
      build system. The basic feature added is detection of all 
      compilers supported by Harbour installation, so it's not 
      possible to select one which is not installed, plus more 
      feedback can be given to user. It also cleans embedded vs 
      in-PATH compilers and gives an easier way to prioritize 
      found compilers. This is definitely scheduled after 
      2.0.0 release, and when I have (more) time.
2009-11-01 08:46:47 +00:00
Viktor Szakats
4dd4bb3047 2009-10-30 21:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Fixed name usage in a few places ('hbmk' -> 'hbmk2').
2009-10-30 20:08:15 +00:00
Viktor Szakats
55adfc642f (deleted accidental debug line) 2009-10-29 07:47:39 +00:00
Viktor Szakats
f91fac0cd3 2009-10-29 08:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixes to lib dependency detection code.
      It should now work on darwin/bsd/hpux/beos gcc/clang/sunpro 
      platforms/compilers but obviously I didn't test them all
      (only darwin/clang).
      There was one typo hitting generic branch of lib detection 
      plus lib prefix was not taken into account at all there.
      Probably on some platforms it would be better to implement 
      target specific lib searching algorithm to mimic actual 
      linker behaviour. Currently, differences are to be expected.
    - Deleted gccomf from a win/wce only branch in LibExists().
2009-10-29 07:37:56 +00:00
Viktor Szakats
a0e07d3940 2009-10-27 17:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/axcore.c
    * Replaced duplicated constant with HB_SIZEOFARRAY() macro.

  * utils/hbmk2/hbmk2.prg
    + C compiler autodetection will now make sure to skip compilers 
      where required Harbour core libraries aren't installed.
      This autodetection is disabled when HB_LIB_INSTALL is set 
      manually and also when lib/<plat> dir is missing altogether, 
      assuming there is a single-compiler installation used in this 
      case (where such autodetection cannot work reliably).
      When using -info option, a screen message is shown if 
      autodetected C compiler is skipped for above reason.
2009-10-27 16:39:24 +00:00
Przemyslaw Czerpak
a70ce60954 2009-10-23 09:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfnsx/dbfnsx1.c
    ! fixed bug reported by Jaroslav Janik (many thanks) - if index FOR
      expression excluded all records from non empty table then root page
      was not initialized and DBFNSX generated corruption RTE.

  * harbour/utils/hbi18n/hbi18n.prg
    * set default GT to CGI

  * harbour/src/common/hbgete.c
    ! fixed memory leak in non UNICODE Windows hb_getenv_buffer()
    ! add C stack buffers to eliminate memory allocation in UNICODE
      Windows hb_getenv_buffer() - they are used if envvar name and
      passed buffer are not too large. It fixes HB_FM_STATISTICS
      Windows builds.

  * harbour/contrib/hbwin/wapi_winuser.c
    + added WAPI_DESTROYWINDOW function

  * harbour/contrib/xhb/traceprg.prg
  * harbour/contrib/xhb/hbcompat.ch
    ! fixed typo in TraceLog() condition - was always disabled
    + added emulation for xHarbour Set( _SET_TRACE* [, <params,...> ] )
      settings

  * harbour/src/vm/hvmall.c
    ! define _GNU_SOURCE to fix compilation with HB_FM_DL_ALLOC in Linux
      builds

  * harbour/include/hbdefs.h
    * declare HB_FOFFSET as LONG instead of LONGLONG on platforms where
      LONG is 64bit integer to be compatible with C RTL file API

  * harbour/src/vm/maindllh.c
  * harbour/src/vm/maindllp.c
  * harbour/contrib/hbct/ctstr.c
    ! casting in HB_TRACE() massages

  * harbour/include/hbapi.h
  * harbour/include/hbapiitm.h
  * harbour/src/vm/arrays.c
  * harbour/src/vm/hashes.c
  * harbour/src/vm/itemapi.c
    + added hb_arrayCloneTo(), hb_hashCloneTo(), hb_itemCloneTo()

  * harbour/src/vm/arrayshb.c
  * harbour/src/vm/classes.c
  * harbour/src/vm/hashes.c
  * harbour/src/vm/hashfunc.c
  * harbour/src/vm/hvm.c
    % use hb_*CloneTo() instead of hb_*Clone()

  * harbour/include/hbapi.h
  * harbour/src/vm/garbage.c
    - removed hb_gcRegisterSweep() function and support for user defined
      sweep mark functions in GC blocks
    - removed hb_gcAlloc() function
    + added new function hb_gcAllocate() which work in similar way to removed
      hb_gcAlloc() function but it accepts as second parameter HB_GC_FUNCS
      structure instead of HB_GARBAGE_FUNC_PTR and returned GC blocks are
      locked so programmer does not have to worry that they can be removed
      by GC.
    + added new internal function hb_gcAllocRaw() which works like
      hb_gcAllocate() but returned GC blocks are not locked. They can
      be used only in HVM in places well known that cannot activate
      automatic GC scan. It should not be used by 3-rd party code.

  * harbour/include/hbapi.h
  * harbour/include/hbapiitm.h
  * harbour/src/vm/extend.c
  * harbour/src/vm/itemapi.c
    * modified hb_parptrGC(), hb_parvptrGC(), hb_arrayGetPtrGC(),
      hb_itemGetPtrGC() functions to use HB_GC_FUNCS structure instead
      of HB_GARBAGE_FUNC_PTR
    * modified hb_itemPutPtrGC() and indirectly related functions like
      hb_arraySetPtrGC() or hb_stor[v]ptrGC() to automatically unlock
      passed GC block just after attaching to known HVM item.

  * harbour/include/hbregex.h
  * harbour/src/rtl/hbregexc.c
    * declare GC block detractor as static function
    + added hb_regexIs() function
    * updated to work with new GC API
    * removed unnecessary in new GC API hb_gcLock() call - GC blocks
      allocated by hb_gcAllocate() are already locked and they mustn't
      be locked explicitly by programmer (until he does not exactly knows
      what he does ;))

  * harbour/src/rtl/hbregex.c
    * use hb_regexIs() instead of using regex GC destructor
    * removed unnecessary in new GC API hb_gcUnlock() call - GC blocks
      stored in HB_IT_POINTER item are automatically unlocked

  * harbour/src/rtl/hbinet.c
  * harbour/contrib/hbcurl/hbcurl.c
    * updated to work with new GC API
    % unlock items storing callback codeblocks and use GC mark functions
      to mark them as used in GC passes

  * harbour/src/pp/pplib.c
  * harbour/src/vm/runner.c
  * harbour/src/vm/codebloc.c
  * harbour/src/vm/hashes.c
  * harbour/src/vm/hvm.c
  * harbour/src/vm/arrays.c
  * harbour/src/vm/thread.c
  * harbour/src/vm/dynlibhb.c
  * harbour/src/rtl/hbzlibgz.c
  * harbour/src/rtl/hbregex.c
  * harbour/src/rtl/hbregexc.c
  * harbour/src/rtl/hbgtcore.c
  * harbour/src/rtl/hbi18n1.c
  * harbour/src/rdd/wacore.c
  * harbour/contrib/hbsqlit3/hbsqlit3.c
  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbmzip/hbmzip.c
  * harbour/contrib/hbhpdf/harupdf.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/hbwin/win_prn1.c
  * harbour/contrib/hbwin/win_dll.c
    * updated code which was using hb_gcAlloc() to work with new GC API.

  * harbour/contrib/hbwin/axcore.c
    * updated syntax description

   TODO: update contrib code: hbqt, hbssl, ... to work with new GC API.
         I would like to ask authors of above libraries to do it.
   TODO: defined when and how we should free AX control and user callback
         handler and update AX code to respect new definition
2009-10-23 07:25:36 +00:00