Commit Graph

12112 Commits

Author SHA1 Message Date
Viktor Szakats
d3ba9019b8 2009-09-17 13:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/Makefile
  * source/rtl/gttrm/Makefile
  * source/rtl/gtsln/Makefile
  * config/global.mk
    % Deleted dedicated (redundant) make level settings:
      - HB_GPM_NOICE_DISABLE=yes
        It should be replaced with HB_USER_CFLAGS=-DHB_GPM_NOICE_DISABLE
        Notice this setting was only effective in gtsln (yet it was passed to two other GTs).
      - HB_GT_CRS_BCEHACK=yes
        It should be replaced with HB_USER_CFLAGS=-DHB_GT_CRS_BCEHACK
      - HB_NCURSES_194=yes
        It should be replaced with HB_USER_CFLAGS=-DHB_NCURSES_194
    ; TODO: Change logic in bin/hb-func.sh to lookup user flags for -DHB_NCURSES_194,
            instead of processing dedicated HB_NCURSES_194 variable. I'm unsure
            which variable to check here for user flags.
2009-09-17 11:15:46 +00:00
Viktor Szakats
20f9b93b0f 2009-09-17 13:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * config/beos/libs.mk
  * config/global.mk
  * config/bsd/libs.mk
  * config/darwin/libs.mk
  * config/hpux/libs.mk
  * config/dos/djgpp.mk
  * config/linux/libs.mk
  * config/sunos/libs.mk
    * Renamed two variables to be in sync with latest changes:
      HB_CRS_LIB -> HB_LIBNAME_CURSES
      HB_SLN_LIB -> HB_LIBNAME_SLANG
        (this one is not honored by GNU Make system)
    ; TOFIX: Honor HB_LIBNAME_SLANG in GNU Make system? Is that
             needed in some cases?

  * config/dos/djgpp.mk
    + Synced system lib/libpath logic with libs.mk found on
      other platforms.
2009-09-17 11:00:58 +00:00
Viktor Szakats
d1008fe5a0 2009-09-17 12:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- bin/pack_src.sh
  + mpkg_src.sh
    * Moved and renamed to align with rest of pkg creation scripts.
      (this should also go to package dir once in the future)

  * source/common/hbver.c
    * Converted decimal version numbers to hex in BCC guards.
    + Added BCC version detections for old (pre-5.x) versions.
      (Borrowed from xhb/Miguel Angel Marchuet)
2009-09-17 10:36:52 +00:00
Viktor Szakats
685335c366 2009-09-17 11:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added darwin/clang to compatibility matrix.
2009-09-17 09:58:40 +00:00
Viktor Szakats
e76ee1d6a1 2009-09-17 11:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- ERRATA
  * doc/howtosvn.txt
  * INSTALL
  * bin/postinst.cmd
  * bin/postinst.bat
  * package/mpkg_win.nsi
  * package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
    + Replaced ERRATA file (which was never updated), with a link
      to bug/feature/etc tracker link in INSTALL.

  * INSTALL
    * Minor improvements.
2009-09-17 09:11:40 +00:00
Viktor Szakats
e8750758bc 2009-09-17 10:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
    ! Added __BEOS__ check when detecting HB_OS_BEOS.
2009-09-17 08:50:40 +00:00
Viktor Szakats
7989154d5a 2009-09-17 10:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rdd/usrrdd/rdds/arrayrdd.prg
  * contrib/hbct/tests/datetime.prg
  * contrib/xhb/decode.prg
  * contrib/hbsqlit3/tests/hooks.prg
  * contrib/hbsqlit3/tests/backup.prg
  * contrib/hbsqlit3/tests/authoriz.prg
  * contrib/hbblat/blatcls.prg
  * contrib/hbnf/nooccur.prg
  * contrib/hbnf/floptst.prg
  * contrib/hbfimage/tests/fitest.prg
  * contrib/hbgd/tests/gdtestcl.prg
  * contrib/hbgd/tests/counter.prg
  * contrib/hbgd/gdchart.prg
  * contrib/hbgd/gdimage.prg
    * TRUE/FALSE in .prg code changed to .T./.F.

  - contrib/gtwvg/tests/v_calcltr.ico
  + contrib/gtwvg/tests/v_clclt.ico
    * Renamed to short name. (this file isn't used BTW)

  * contrib/hbblat/tests/blattest.prg
  - contrib/hbblat/tests/f_sample1.txt
  + contrib/hbblat/tests/f_sampl1.txt
  - contrib/hbblat/tests/f_subjectline.txt
  + contrib/hbblat/tests/f_subjct.txt
  - contrib/hbblat/tests/f_listtext.txt
  + contrib/hbblat/tests/f_listtx.txt
    * Renamed to short names.
2009-09-17 08:43:03 +00:00
Viktor Szakats
c0ca3e5761 2009-09-17 01:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    ! Fixed clang autodetection on darwin.
    ! Fixed systematic (copy/paste) typos in most 'find_in_path_par' calls.
      (in gentoo mingw and msdosdjgpp autodetection)
2009-09-16 23:58:15 +00:00
Viktor Szakats
55fa645e86 2009-09-17 00:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/Makefile
  * config/lib.mk
    + Added Przemek's patch to add local hbzlib and hbpcre
      libs to Harbour dynlib.
    ; TODO: Add some ways to disable this because it has some
            drawbacks (it f.e. makes it impossible to link 3rd
            party libs also exporting zlib / pcre interfaces).
            This information needs to be passed to hbmk2, too.
            I don't have any elegant way to solve this problem ATM.

  * utils/hbmk2/hbmk2.prg
    * Changed to only add local hbzlib and hbpcre libs to liblist
      in static mode. (this is needed to support change above).
    + Enabled lib grouping for beos/gcc.
    + Added supc++/supcxx lib to liblist of gcc family compilers.
      This aims to solve link problems when Harbour is built
      in C++, but hbmk2 is used in C mode.

  * contrib/hbqt/hbqts.hbc
  * contrib/hbqt/hbqt.hbc
  * contrib/gtqtc/gtqtcs.hbc
  * contrib/gtqtc/gtqtc.hbc
    - Deleted explicit supc++ libspec. Now it's added by
      hbmk2 automatically.

  * config/dyn.mk
    ! Modified to add local hbpcre and hbzlib to syslib
      list to make it link with beos/haiku.
      Please test/confirm this change.
    - Disabled above logic, since it's not needed.

  * config/global.mk
    + Added autodetection for linux/sunpro, linux/icc,
      darwin/clang, darwin/gcc, darwin/icc.
      On darwin clang became the default, if available.

  * external/sqlite3/Makefile
    + Tweak for linux/watcom. Based on Przemek patch sent to the devlist.

  * config/detfun.mk
  * config/bin.mk
  * config/dyn.mk
  * source/Makefile
  * config/lib.mk
    % Minor modification to HB_HAS_*_LOCAL logic to make
      it safe to use this var without first checking HB_HAS_*.

  ; Please test/review these. I didn't restest everything after above changes.
2009-09-16 22:59:47 +00:00
Viktor Szakats
4acf19bc1d 2009-09-16 22:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
    + Added HBMK_OPTIONS environment variable where options
      can be specified in the same format as in the cmdline.
      This is the supported and recommended way to control
      hbmk2 by envvar.
    + Documented HBMK_OPTION on help screen.
    % Cleaned internal handling of 'legacy' environment
      variables. This means they will be processed in one
      central place and converted to regular cmdline options
      just as if they were specified in HBMK_OPTIONS.
    + Showing screen message if there were any settings read
      from the environment (also showing the actual settings).
      This will make it easy to debug problems caused by
      leftover envvars.
    - Deleted HB_COMPILER and HB_PLATFORM envvar references
      from screen messages. Now these are considered legacy
      and not advertised.
    * Regenerated *.po files.
2009-09-16 20:52:12 +00:00
Viktor Szakats
da855dcb0f 2009-09-16 19:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqts.hbc
    ! Fixed to include supc++ for gcc targets.

  * contrib/hbqt/hbqt.hbc
  * contrib/gtqtc/gtqtc.hbc
    % Simplified inclusion logic of supc++.

  * contrib/gtqtc/gtqtc.hbc
  + contrib/gtqtc/gtqtcs.hbc
  + contrib/gtqtc/gtqtcs
  + contrib/gtqtc/gtqtcs/Makefile
  * contrib/gtqtc/Makefile
    + HB_QT_STATIC now works the same way as for hbqt.
2009-09-16 17:59:33 +00:00
Viktor Szakats
1e945a4495 2009-09-16 17:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/legacy.prg
    + Added operator overloading to TOLEAUTO compatibility class.
      Original code has been optimized and few small bugs fixed.
      Please test, I've only tested clean build.
2009-09-16 15:09:36 +00:00
Viktor Szakats
17b478b107 2009-09-16 15:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtos2/gtos2.c
    ! Fixed warning on os2/gcc.
2009-09-16 13:19:24 +00:00
Viktor Szakats
7da98f3fe1 2009-09-16 15:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to not include lib 'm' for beos.
2009-09-16 13:15:54 +00:00
Viktor Szakats
afb1e9b140 2009-09-16 14:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
    ! Fixed hang experienced in some situations when sending
      e-mail. This was reported on Linux, but was also present
      on Windows (and all OSes). It was cause by not checking
      :GetOk() return value, but looking for :cReply being NIL.
      This seems to be incorrectly coded since the very beginning,
      but surfaced only after cleaning up socket API in core.
      Please review/test, I left also old condition in.

  * utils/hbmk2/hbmk2.prg
    * Minor formatting.
2009-09-16 12:50:41 +00:00
Viktor Szakats
e3c278e034 2009-09-16 13:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* examples/hbvpdf/hbvpdf.hbc
  + examples/hbvpdf/hbvpdf.hbp
  - examples/hbvpdf/Makefile
    + Added hbmk2 make files.
      Build with 'hbmk2 hbvpdf.hbp'.
2009-09-16 11:31:43 +00:00
Viktor Szakats
b9782bd1d0 2009-09-16 13:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
    ! Deleted references to hbzlib and hbpcre inside source tree.
2009-09-16 11:19:58 +00:00
Viktor Szakats
6ff6aa0f45 2009-09-16 12:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/examples/contribf.hbc
  * contrib/Makefile
  - contrib/hbvpdf
  + examples/hbvpdf
    * Moved hbvpdf lib to examples section.
      This code is barely updated and offers duplicate functionality
      of superior hbhpdf lib.

  * source/rtl/filesys.c
    * Minor formatting.
2009-09-16 11:00:23 +00:00
Viktor Szakats
1a81c74917 2009-09-16 11:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    - Deleted experimental status from beos target.

  * config/global.mk
    * Applied patch by Tamas Tevesz:
      Tweak to default install dir for beos.
2009-09-16 09:07:37 +00:00
Viktor Szakats
0573a6d0c3 2009-09-16 09:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support for beos targets to hbmk2. (untested)
2009-09-16 07:48:57 +00:00
Przemyslaw Czerpak
48812ce52c 2009-09-16 09:45 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
    - removed TOFIX note - already fixed
2009-09-16 07:45:42 +00:00
Przemyslaw Czerpak
fb3caa2d83 2009-09-16 09:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * updated hb* scripts to work with HAIKU/BEOS

  * harbour/source/vm/dynlibhb.c
    * enabled dlopen()/dlclose() in HAIKU/BEOS builds
    * added TODO warning in non DOS builds which does not support
      dynamic library loading

  * harbour/source/rtl/fserr.c
    ! fixed errno translation

  * harbour/source/rtl/gttrm/gttrm.c
    + added support for CTRL+{UP,DOWN,RIGHT,LEFT} keys in HAIKU XTerm.
    + added hack for UP,DOWN,RIGHT,LEFT keys in HAIKU XTerm - it works
      only locally.
    * added two notes about problems with HAIKU XTerm which cannot be
      cleanly resolved by us:
         - reverted MIDDLE and RIGHT button
         - UP,DOWN,RIGHT,LEFT use the same sequences as
           CTRL+{UP,DOWN,RIGHT,LEFT} in XTerm 3.x.x
      any hardcoded solution is wrong in such case because XTerm can
      be used for remote access.
2009-09-16 07:22:52 +00:00
Przemyslaw Czerpak
864a0d7108 2009-09-16 02:44 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbgete.c
    ! fixed typo
2009-09-16 00:44:44 +00:00
Przemyslaw Czerpak
89930d14da 2009-09-16 02:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvmpub.h
  * harbour/include/hbdefs.h
    * added #if/#endif comments and minor formatting

  * harbour/include/hbsetup.h
    ! disable malloc attribute for GCC < 3.xx

  * harbour/include/hbinit.h
    ! removed unnecessary __HAIKU__ condition

  * harbour/include/hbdate.h
    ! enable MT safe localtime_r() function in HAIKU/BEOS builds

  * harbour/source/common/hbgete.c
    ! enable setenv()/unsetenv() in HAIKU/BEOS builds

  * harbour/source/common/hbprintf.c
    ! removed wrongly added condition which disabled [u]intmax_t for GCC < 3

  * harbour/source/rtl/gtcrs/gtcrs.h
    ! do not redefine existing MAX_SIGNO

  * harbour/source/rtl/hbsocket.c
    ! enabled MT safe socket functions in HAIKU/BEOS builds

  * harbour/config/beos/libs.mk
    ! do not set explicitly GCC internal library paths.
      They are configured in GCC config and should not be overloaded
      in normal builds.

   TOFIX: error code are not properly decoded in HAIKU/BEOS builds.
          It can be seen in hbtest results. It's possible that it's
          HAIKU/BEOS problem not Harbour one.
2009-09-16 00:41:09 +00:00
Przemyslaw Czerpak
6aa14fe50c 2009-09-15 20:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rdd/dbf1.c
    * pacified BCC warning
  * harbour/contrib/hbwin/win_com.c
    ! added missing header #include "hbinit.h"
      Thanks to Enrico for info.
2009-09-15 18:07:14 +00:00
Viktor Szakats
9c7c77bc85 2009-09-15 17:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* tests/menutest.prg
    ! Deleted COLOR keywords from examples. This seems to be an xhb 
      extension no present in Harbour or Clipper.

  * source/rtl/menuto.prg
    + Added NOTE documenting the __ATPROMPT() cColor parameter is 
      a Harbour extension. (it's valid because this is an 
      undocumented/internal function)

  * contrib/xhb/hbcompat.ch
    + Added @ PROMPT + COLOR keyword.
      Please test, I don't know if it collides with std.ch definition.
2009-09-15 15:44:56 +00:00
Przemyslaw Czerpak
8a2e311c63 2009-09-15 17:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_com.c
    * initialize s_PortData structure at application startup
2009-09-15 15:30:20 +00:00
Przemyslaw Czerpak
f863d5ff5c 2009-09-15 17:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbnetio/netiocli.c
    ! added missing in previous commit casting for C++ mode
2009-09-15 15:11:23 +00:00
Przemyslaw Czerpak
1638204a1c 2009-09-15 16:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapifs.h
  * harbour/source/rtl/filebuf.c
    + added hb_fileRename()

  * harbour/contrib/hbnetio/netio.h
  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbnetio/netiosrv.c
    + implemented Rename method in NETIO

  * harbour/include/hbapirdd.h
  * harbour/source/rdd/workarea.c
    + added new non workarea method: RENAME()

  * harbour/source/rdd/Makefile
  * harbour/include/hbextern.ch
  * harbour/source/rdd/dbcmd.c
  + harbour/source/rdd/dbrename.c
    + added new .prg function:
         dbRename( <cTable> [,<cIndex>], <cNewName>, ;
                   [<cRDD>], [<nConnect>] ) -> <lOK>
    + added hb_dbRename() - synonym of dbRename()

  * harbour/source/rdd/dbf1.c
    + added support for dbRename() in DBF* RDDs

  * harbour/include/hbrdddbf.h
  * harbour/include/hbrddcdx.h
  * harbour/include/hbrddfpt.h
  * harbour/include/hbrddntx.h
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
  * harbour/source/rdd/dbfnsx/dbfnsx1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/delim1.c
  * harbour/include/hbusrrdd.ch
  * harbour/source/rdd/usrrdd/usrrdd.c
  * harbour/contrib/rddads/adsx.c
  * harbour/contrib/rddads/ads1.c
  * harbour/contrib/rddsql/sqlbase.c
  * harbour/contrib/rddsql/sqlmix.c
  * harbour/contrib/hbbmcdx/bmdbfcdx.c
  * harbour/contrib/hbbmcdx/hbbmcdx.h
    + updated to compile with new RDD method: RENAME
      TODO: add support for this method to ADS* RDDs
2009-09-15 14:53:23 +00:00
Viktor Szakats
9e0748e0d7 2009-09-15 15:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * doc/bintools.txt
  * os2-make.exe
    ! Updated OS/2 make.exe (and links in INSTALL) to make-3.81-r3
      (from make-3.81-r2).
      This fixes the dreaded cmdline length inducated GNU Make crashes
      which made us add .mk workarounds and which created a showstopper
      towards OS/2 .dll support.
      Many thanks to Maurilio Longo and Andreas Buening for hunting
      down and fixing the problem in OS/2 GNU Make port.
2009-09-15 13:48:33 +00:00
Viktor Szakats
7a0131d611 2009-09-15 15:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
    ! Applied patch from Alex Strickland.
      Fixes wrong encoding (7-bit).
      Fixed mails sent as multi-part even if there was only simple body.

  * utils/hbmk2/hbmk2.prg
    ! Fixed stupid error in last cmomit.
2009-09-15 13:19:19 +00:00
Przemyslaw Czerpak
e48bc77723 2009-09-15 12:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_com.c
    ! fixed small typo in UNICODE builds
2009-09-15 10:09:16 +00:00
Viktor Szakats
c9e8928d2e 2009-09-15 04:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * include/hbthread.h
  * include/hbdefs.h
  * include/hbsetup.h
  - config/haiku
  + config/beos
  * config/global.mk
    * Changed Haiku's internal name in Harbour to BeOS.
      HB_OS_HAIKU -> HB_OS_BEOS
      'haiku' -> 'beos'
    * Changed __HAIKU__ guards to HB_OS_BEOS (two occurrences).
      Hope this is right.

  * external/libpng/Makefile
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpunix.c
  * contrib/hbsqlit3/Makefile
  * config/detect.mk
    + Applied 2nd Haiku patch by Tamas Tevesz.
    ; Please review hbtpathy patch.
    ; I've changed one HB_OS_HAIKU reference to __HAIKU__ since
      it looks to be a Haiku specific thing (thus HB_OS_BEOS doesn't
      seem appropriate).
2009-09-15 02:21:41 +00:00
Viktor Szakats
87fce19d25 2009-09-15 03:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Extended autodetection of mingw cross-compiler on *nix system.
    * Disabled native compiler tool autodetection for non-*nix targets
      on *nix hosts. This will need further refinement.

  * config/haiku/libs.mk
    - Deleted commented lines.

  * config/global.mk
    + Some more Haiku/BeOS autodetection.
2009-09-15 01:57:20 +00:00
Viktor Szakats
47af69b7d9 2009-09-15 00:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbthread.h
  * include/hbdefs.h
  * include/hbsetup.h
  * include/hbinit.h
  * source/common/hbprintf.c
  * source/rtl/hbsocket.c
  + config/haiku
  + config/haiku/libs.mk
  + config/haiku/gcc.mk
  + config/haiku/global.mk
  * config/global.mk
  * config/detect.mk
    + Applied patch adding Haiku OS port to Harbour.
      By Tamas Tevesz.

  * INSTALL
    + Added haiku to supported OS list (in 'experimental' status)
2009-09-14 22:06:18 +00:00
Viktor Szakats
c9e8f0a9d8 2009-09-14 12:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    % Deleted UTF-8 hack. Now using the built-in UTF-8 conversion
      support.

  * contrib/hbwin/win_com.c
    % Minor optimization and fixed warnings after recent patch.

  * INSTALL
    + Added see also HB_CC* to HB_COMPILER settings.
2009-09-14 10:46:22 +00:00
Viktor Szakats
4e8738588f 2009-09-12 18:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/pcre/pcreglob.c
    ! Fixed fatal mistake in prev commit.

  * config/global.mk
    + Extended generic mingw autodetection on *nix to work on Fedora 11.
      Please test. On Fedora 11 HB_CCPREFIX is i686-pc-mingw32-
2009-09-12 16:33:58 +00:00
Viktor Szakats
1e8519b5b7 2009-09-12 16:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/pcre/pcreglob.c
    ! Fixed watcom compilation. There are still warnings.
      Please review it.

  * external/pcre/config.h
  * external/pcre/Makefile
    * -DPCRE_STATIC moved to Makefile from config.h. There is 
      no dynlib build mode here, so this could be done.
2009-09-12 14:47:55 +00:00
Viktor Szakats
218e2dd11a 2009-09-12 15:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/bsd/gcc.mk
  * config/hpux/gcc.mk
  * config/sunos/gcc.mk
    - Deleted -fPIC from DFLAGS. Pls tell if this was put there for a reason.

  * config/hpux/gcc.mk
  * config/sunos/gcc.mk
  * config/sunos/sunpro.mk
    + Added separate compilation pass for Harbour dynlibs using PIC option.
2009-09-12 13:28:43 +00:00
Viktor Szakats
b2f02738b9 2009-09-12 11:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    + Added ppc detection on PPC macs.
    ! Fixed 64bit CPUs detection.
2009-09-12 09:49:14 +00:00
Viktor Szakats
d026a1a1e8 2009-09-12 11:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    + Added several CPUs to CPU autodetection.
    ; Please test it on actual systems.
2009-09-12 09:30:00 +00:00
Viktor Szakats
4819870aab 2009-09-12 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    + Added logic for host CPU detection on *nix systems.
      Please extend 'check_host_cpu' with more real-world values.
    + HB_CPU made equal to HB_HOST_CPU for *nix systems.
      This should be fine-tuned on the compiler level depending
      on default compiler behaviour and ABI modifier options.
      (if we do this further tweaks in global.mk will be needed)

  * INSTALL
    ! Deleted wrong (and duplicate) HB_INC_* value.
2009-09-12 09:18:34 +00:00
Viktor Szakats
830dbfd69c 2009-09-12 11:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Minor tuning here and there.

  * external/libhpdf/Makefile
    + Enabled libpng detection on darwin.

  * config/linux/icc.mk
  * config/linux/sunpro.mk
    + Implemented PIC compilation phase.

  * config/linux/global.mk
    * Deleted hacks dealing with PIC. Notice that now
      we use -fpic on gcc/icc, while it was previously
      set to -fPIC. The old hacks enabled PIC only for
      Intel x86/x86_64 ABIs, which is now removed. Pls
      speak up if we need to readd them on compiler
      level. This way it'd be possible to optimize out second
      compilation pass for ABIs which don't need special
      PIC code generation. To make this useful in a generic
      way, IMO we should fix ABI (CPU) HB_HOST_CPU/HB_CPU
      detection in global.mk for *nix systems, and do
      compiler level decisions based on HB_CPU value.

  * config/linux/gcc.mk
    * Minor option reordering.
2009-09-12 09:01:27 +00:00
Viktor Szakats
a3ae875d9a 2009-09-12 01:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/linux/gcc.mk
    + Enabled separate -fpic (with lowercase as a start) compilation
      phase for Harbour dynlib.
    % Deleted -fPIC from dynlib link command-line. Please advise if
      this is necessary and what are the rules here. On linux/ubuntu
      it made no difference whatsoever.
    ; Please test.
    ; TODO: hbmk2 will have to updated once we've settled with fpic
            setup in GNU Make.

  * config/darwin/icc.mk
    - Deleted commented fpic option. On darwin this is not needed,
      but some further research will be needed what *is* needed
      on this platform. (check -fno-common).
2009-09-11 23:17:06 +00:00
Przemyslaw Czerpak
7c254a3168 2009-09-11 20:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
    + added hb_xgrabz() and hb_xmemdup() macros

  * harbour/include/hbapicdp.h
  * harbour/source/rtl/cdpapi.c
    + added new functions which can be used in translations changing the
      size of trnaslated strings:
         hb_cdpDup(), hb_cdpnDup(), hb_cdpnDup2(), hb_cdpnDup3(),
         hb_cdpnDupLen(), hb_cdpnDup2Len()
      Now hb_cdp[n]Translate() functions are depreciated.
    + added pseduto codepage "UTF8" which can be used in trnaslations only
    + added new function hb_cdpFindExt() which allows to chose pseudo CPs

  * harbour/include/hbapi.h
  * harbour/include/hbset.h
  * harbour/source/vm/set.c
  * harbour/source/nortl/nortl.c
    - removed old functions: hb_osEncode() and hb_osDecode() with low level
      code which was using static char to char translation table
    + add new functions hb_osEncodeCP() and hb_osDecodeCP() which can make
      translations changing the size of translated strings.
      Warning all parameters have to be initialized.
      Passing NULL in second parameter means that the 1-st is dynamically
      allocated and can be used as buffer and reallocated if necessary.
      if 2-nd parameter is not NULL then the 1-st one is used as const value.
      The size of allocated buffer can be passed by reference in 3-rd
      parameter and this value is updated on reallocation.
      If buffer is two small then new bigger one is allocated and old one
      freed.

  * harbour/source/vm/set.c
    + added support for UTF8 translations in _SET_OSCODEPAGE

  * harbour/source/vm/cmdarg.c
  * harbour/source/common/hbffind.c
  * harbour/source/rtl/filesys.c
  * harbour/source/rtl/philes.c
  * harbour/source/rtl/gete.c
  * harbour/source/rtl/net.c
  * harbour/source/rtl/hbproces.c
  * harbour/source/rtl/hbrunfun.c
  * harbour/source/rtl/run.c
  * harbour/contrib/hbwin/win_misc.c
  * harbour/contrib/hbwin/wapi_shellapi.c
  * harbour/contrib/hbwin/wapi_winbase.c
    * use new hb_osEncodeCP()/hb_osDecodeCP() functions

  * harbour/source/rtl/hbi18n1.c
  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtpca/gtpca.c
    * replaced depreciated hb_cdp[n]Translate() functions with new
      hb_cdp[n]Dup*()

  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/source/rtl/hbgtcore.c
    * replaced depreciated hb_cdp[n]Translate() functions with new
      hb_cdp[n]Dup*()
    + added support for UTF8 translations set by hb_setDispCP() and
      hb_setTermCP() functions

  * harbour/source/rdd/delim1.c
  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/dbfnsx/dbfnsx1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
    * replaced depreciated hb_cdp[n]Translate() functions with new
      hb_cdp[n]Dup*()
    + added support for CP translations which can change the size of
      translated strings
    ! disabled memo field translations for fields marked as binary
    + added support for UTF8 translations.
      Using UTF8 as CP disables any national sorting in indexes.
      Warning: please remember that normal character fields in tables have
               fixed size and translation to UTF8 may increase the string
               and cut results.

  * harbour/source/rdd/dbf1.c
    ! fixed GPF in dbCreate() with empty struct table
2009-09-11 18:38:10 +00:00
Viktor Szakats
0573ff8ab9 2009-09-11 19:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
  * contrib/hbfimage/fi_wrp.c
  * contrib/hbfimage/Makefile
    ! Reverted prev. It does all sort of strange things.
    ; TODO: So the only way is the proper fix: Cleaning Harbour 
            source from BOOL, BYTE, LONG, ULONG and all other 
            'legacy' types.
2009-09-11 17:35:07 +00:00
Viktor Szakats
1ce6b3c4fe 2009-09-11 17:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    * Using #define instead of typedef for legacy core types.
      This is needed to allow for ugly hack to disable these.

  * contrib/hbfimage/fi_wrp.c
    ! Added terrible hack to make them build on non-win platforms.
    ; dos/djgpp and probably os2/gcc would work, but there I wasn't
      interested enough to add extra logic to handle each special
      case.
    ; non-linux/darwin *nixes should be tested.

  * contrib/hbfimage/Makefile
    + Enabled for linux and darwin.
2009-09-11 15:57:41 +00:00
Viktor Szakats
7acdf4ca68 2009-09-11 16:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbfbird/Makefile
  * contrib/rddsql/sddfb/Makefile
    + Added autodetection of Firebird on darwin.
2009-09-11 14:00:49 +00:00
Viktor Szakats
6ab09f3d8e 2009-09-11 14:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.h
  + contrib/hbwin/tests/testcom1.prg
  + contrib/hbwin/tests/testcom2.prg
  * contrib/hbwin/tests/testprt1.prg
  - contrib/hbwin/tests/testprt2.prg
  * contrib/hbwin/win_tcom.prg
  * contrib/hbwin/win_com.c
    ! Tests synced with lib.
    * Formatting.
2009-09-11 12:59:21 +00:00
Viktor Szakats
213d86a40e 2009-09-11 14:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  - contrib/hbwin/win_tprt.prg
  - contrib/hbwin/win_prt.c
  + contrib/hbwin/win_tcom.prg
  + contrib/hbwin/win_com.c
    + Applied patch from Alex Strickland.
      This patch renames all former WIN_PORT*() functions and classes
      to WIN_COM*(). INCOMPATIBLE.
    ! Added missing DWORD casts to -1 values.
    * Slightly renamed Win_ComSetTimeouts() and made it static.
    ; TOFIX: I had to comment out WIN_COMINIT() function since HB_INITFUNC()
             doesn't exist in Harbour.
2009-09-11 12:39:57 +00:00