Commit Graph

1800 Commits

Author SHA1 Message Date
Viktor Szakats
a891db8053 2010-02-18 16:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
    * Cleaned the way WinCE is detected.
      Now looking for UNDER_CE or _WIN32_WCE constants. (was: _WINCE)

  * utils/hbmk2/hbmk2.prg
    * Cleaned the way constants are initialized for WinCE platform. It's also
      means they are now synced with GNU Make build system. This means:
         UNICODE, _WIN32_WCE (to 0x501), UNDER_CE are always defined.
         Secondary CPU macros are defined as needed.
         Removed all the other WinCE related constants.
    + Defining UNDER_CE and _WIN32_WCE for resource compiler for WinCE targets.

  * config/wce/global.mk
  * config/wce/mingwarm.mk
  * config/wce/poccarm.mk
  * config/wce/msvcarm.mk
    * Cleaned the way constants are initialized for WinCE platform.
      - '-D_WIN32_WCE=0x501 -DUNDER_CE' moved to global, so now these will
        be equally defined for all WinCE compilers.
      - Deleted these from msvcarm targets ('-D_WINCE' was apparently used
        by our own hbsetup.h detection code only):
        '-D_WINCE -DCE_ARCH -DWINCE -D_WINDOWS -D_UNICODE -D_UWIN'
      - Deleted this from from poccarm targets:
        '-D_WINCE'
      - Deleted several secondary CPU constants for msvc* targets:
        '-D_ARM_ -DARMV4 -D_ARMV4I_ -Darmv4i -D__arm__'
        '-D_SHX_'
        '-D_MIPS_ -DMIPS_HAS_FPU'
        These are not necessarily true, and not even necessary. I you know
        otherwise, speak up.
      - Kept primary CPU constants:
        '-D_M_*'
      - Kept secondary CPU constants (needed by some inconsistent Windows header files):
        '-DARM', '-DSHx', '-DMIPS', '-D_X86_'

  * config/win/global.mk
    * Cleaned to use 'HB_BUILD_UNICODE' setting to enable UNICODE for non-x86 targets.

  * config/win/msvc.mk
    ! Fixed to respect 'HB_BUILD_UNICODE' user-setting when enabling UNICODE for
      newer MSVC targets. IOW it's now possible to turn off UNICODE for newer
      MSVC targets.

  ; Above should ensure more consistency for different WinCE compilers.
    Closer behavior and more consistent build logs, with less unnecessary options.
2010-02-18 15:47:27 +00:00
Viktor Szakats
2738a75104 2010-02-18 10:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
    + Added ARM CPU dump code.
    + Added placeholder for CE/MIPS/SH CPU dump code.
    + Added iTODO warnings for non-implemented code sections.
    + Tweaked and enabled module listing code for WinCE.
    ; TOFIX: UNICODE conversion is missing from there.
    ; TODO: Enable exception handler for WinCE. How?

  * contrib/hbwin/wapi_wingdi.c
    ! Typo in recent addition.

  * utils/hbmk2/hbmk2.prg
  * config/wce/msvcarm.mk
    * Raised warning level for old msvcarm targets to -W3 (from -W2)
2010-02-18 09:29:53 +00:00
Viktor Szakats
b0396dac4e 2010-02-16 15:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fix to add 'lib' prefix for gcc compiler when using -implib option.
    + Added comment detailing prev change.

  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    - Deleted -YX option. 
      We don't want to force precompiled headers by default on older 
      MSVC versions.
2010-02-16 14:07:07 +00:00
Viktor Szakats
cd83e94235 2010-02-16 11:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbthread.h
  * src/vm/fm.c
    ! Tweaks to allow msvcarm 2003 build.

  * src/vm/maindllp/dllpcode.c
  * src/vm/maindllh.c
    ! Deleted (AFAIK unnecessary) HB_EXPORT to make msvcarm 2003 happy.

  * src/common/hbgete.c
  * src/rtl/net.c
    ! Fixed missing #include hbwince.h.

  * external/sqlite3/Makefile
    - Disabled for msvcarm 2003.

  * contrib/gtalleg/Makefile
    - Disabled for msvcarm.

  * contrib/hbodbc/Makefile
  * contrib/rddsql/sddodbc/Makefile
    ! Do not force sql.h header for msvcarm 2003.

  * contrib/rddbmcdx/hbbmcdx.h
    ! Fixed HB_EXTERN placement to make msvcarm 2003 happy.

  * contrib/hbct/ctnet.c
  * contrib/xhb/hbsyslog.c
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_dlg.c
    ! Fixed to make them compile on msvcarm 2003.

  * config/wce/msvcarm.mk
  * utils/hbmk2/hbmk2.prg
    ! Fixed warning option for msvcarm 2003.

  * utils/hbmk2/hbmk2.prg
    ! Fixed type causing RTE with msvcarm targets.

  ; NOTE: hbcurl doesn't build with msvcarm 2003, so either
          don't enable it, or experiment with HB_USER_CFLAGS=-U_WIN32_WCE
          hack. The problem lies somewhere in libcurl headers,
          not Harbour code.
2010-02-16 10:14:24 +00:00
Viktor Szakats
eae088abe3 2010-02-14 13:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    + Added more description to WIN_DLLCALL() function usage.

  * contrib/hbwin/hbdyn.c
    + Type conversion fixes after actual testing.
      Now everything should work except float parameter passing
      on x64 and passing/receiving unsigned longlongs to/from .dlls
      on both x64/x86. I couldn't found how to interact properly
      with HVM in this case.
      Please review remaining TOFIXes.

  + contrib/hbwin/tests/testdll1.prg
  + contrib/hbwin/tests/testdll.c
    + Added code to test parameter passing.

  * contrib/hbwin/legacycd.c
  * contrib/hbwin/win_dll.c
    + Forcing stdcall calling convention. (it's the default yet,
      but this may change to cdecl).

  * contrib/hbwin/win_dll.c
    * bUNICODE -> bWIDE.

  * contrib/hbwin/hbdyn.ch
    + Added comment.

  * include/hbdefs.h
    * Typo in comment.

  * contrib/hbwin/Makefile
    ! Added missing hbdyn.h.

  * utils/hbmk2/hbmk2.prg
    ! Fixed to never add double backslash to output dir.
2010-02-14 12:36:10 +00:00
Viktor Szakats
b41aa9e908 2010-02-12 21:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    * HB_BYTE made a synonym for HB_UCHAR.
      HB_BYTE is only there for convenience, HB_UCHAR is recommended
      for unsigned byte streams.
    * HB_U8 now based on HB_UCHAR.
    ! Fixed UINT64/INT64 left defined in some cases.

  * contrib/hbwin/hbwin.h
  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/tests/testdll.prg
  * contrib/hbwin/win_dll.c
  * contrib/hbwin/legacycd.c
    + Added LONGLONG C types.
    + Added support for user-specifiable parameter types.
      This works now in low-level C dll call function and also
      on high level in HB_DLLCALL().
    + Added support for LONGLONG/int64 integers.
    + Added support for raw strings. (no UNICODE or codepage
      conversion).
    ! Fixed typo in iRetTypeRaw assigment.
    + Added one new test for param type spec test. (pretty bare)
    ! Fixed WAPI_GETPROCADDRESS() to GETPROCADDRESS(). Latter
      has some extra features so we still need it.
    * GETPROCADDRESS() moved back to non-compatibility.
    ; Please review the code. There are some integer conversion
      which might not be proper (& 0xFFFF).

  * utils/hbmk2/hbmk2.prg
    ! Typo in recently added help text.

  * contrib/Makefile
  - contrib/hbbmcdx
  + contrib/rddbmcdx
  * contrib/rddbmcdx/bmdbfcdx.c
  * contrib/rddbmcdx/Makefile
    * Renamed hbbmcdx to rddbmcdx.
    * More cleanup to RDD code. (sync with rddcdx, deleted
      unnecessary lines)
    - Deleted "turbo" functionality. BM_TURBO() is now a dummy.
      AFAIR this isn't safe, and even if it is it should be
      implemented differently, not as a static variable.
2010-02-12 20:02:34 +00:00
Viktor Szakats
ace8a29b7b 2010-02-11 12:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/direct.c
    * int -> HB_SIZE

  * contrib/hbwin/wapi_wingdi.c
    ! Fixed return value of WAPI_SELECTOBJECT()

  * contrib/hbwin/tests/testdll.prg
    + Minor.

  * contrib/hbwin/win_dll.c
    ! Fixed typo in byref parameter handling. Thanks to
      Xavi for noticing it.
    * Deleted unused union members from win32 retval support, 
      renamed the rest.

  * utils/hbmk2/hbmk2.prg
    + Added -3rd= option. This is always ignored by hbmk2 and it
      allows to store extra, non-hbmk2 information in hbmk2 make files.
      F.e.: -3rd=-hbide_friendlyname=MyProject
2010-02-11 11:33:10 +00:00
Viktor Szakats
432a76083e 2010-02-10 15:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Enabled -implib option in -hbexe (default) mode.
      (except for dos/djgpp, pls add it manually)
    + Enabled -map option in -hbdyn mode for some targets where it was missing.
      (except for dos/djgpp, pls review this case)
2010-02-10 14:40:44 +00:00
Viktor Szakats
5381546a40 2010-02-10 14:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/binnum.c
  * src/rtl/ampm.c
  * src/rtl/descend.c
  * src/rtl/at.c
  * src/rtl/console.c
  * src/rtl/cdpapi.c
  * src/rtl/accept.c
  * src/rtl/filebuf.c
  * src/rtl/cdpapihb.c
  * src/rtl/ati.c
  * src/rtl/binnumx.c
    * Renamed variables.

  * contrib/hbodbc/odbc.c
  * contrib/rddsql/sddodbc/odbcdd.c
    * Formatting.

  * contrib/hbbmcdx/bmdbfcdx.c
    ! Prefixed static variable with 's_'

  * contrib/hbbmcdx/hbbmcdx.h
    * Synced with include/hbrddcdx.h

  * utils/hbmk2/hbmk2.prg
    ! Fixed problem with generated implib name when using -implib option.
      It only worked as expected with bcc.
2010-02-10 13:14:37 +00:00
Viktor Szakats
d35a1a4ecd 2010-02-09 21:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Added more info on HB_SIZE/HB_ISIZ future plans.

  * contrib/hbmemio/memio.c
  * contrib/hbnetio/netiocli.c
    - Deleted ( HB_SIZE ) casts in more obscure places.

  * utils/hbmk2/hbmk2.prg
    + -hbnolib option is now automatically enabled in -hbdyn mode.
      To disable it anyway, -hbnolib- option can be used.
2010-02-09 20:58:31 +00:00
Viktor Szakats
9528be4a18 2010-02-07 22:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-mkimp.bat
    + Added support for Apollo 7.

  * utils/hbmk2/hbmk2.prg
    + Accepting '&&' and '||' as 'and' and 'or' operators.

  * examples/hbsqlit2/hbsqlit2.hbp
  * examples/hbapollo/hbapollo.hbp
    + HB_INC_* -> HB_WITH_*

  * examples/hbapollo/apollo.c
  * examples/hbapollo/hbapollo.hbc
    + Added support for Apollo 7.
    + Version 6.1 can now be selected by defining HB_WITH_APOLLO_VER61 envvar.

  * examples/gtwvw/gtwvw.c
    * HB_LONG -> HB_MAXINT
2010-02-07 21:36:26 +00:00
Viktor Szakats
112766347d 2010-02-06 12:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/dbf1.c
  * src/compiler/hbopt.c
    * SCHAR -> HB_SCHAR

  * external/libhpdf/hpdffdft.c
  * utils/hbmk2/hbmk2.prg
    * Cleaned to not add double ending pathsep to Harbour -o option.

  * contrib/gtalleg/gtalleg.c
  * contrib/gtalleg/ssf.h
  * contrib/gtalleg/ssf.c
    * BYTE -> unsigned short, int, HB_BYTE
    * USHORT -> unsigned short
    * Some types synced between declaration and definition.
    * Formatting, code cleanups.
2010-02-06 11:48:38 +00:00
Viktor Szakats
f435054ba7 2010-02-05 13:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gttone.c
    + Using ANSI C types.
    ! ULONG -> DWORD for Windows API calls.

  * src/rtl/direct.c
    ! ULONG -> HB_FATTR

  * src/rtl/itemseri.c
  * include/hbapiitm.h
    * ULONG -> HB_SIZE

  * src/rtl/samples.c
    + Using ANSI C types. This fixes possible
      incompatibilities with original .prg implementation
      in Clipper.

  * contrib/hbhpdf/harupdf.c
    * Conversion to libharu BOOL value cleaned.

  * include/hbapicdp.h
  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-02-05 12:55:25 +00:00
Viktor Szakats
1de283c14a 2010-02-04 12:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added hbmk2_PathMakeRelative(). The opposite of PathProc().
      Current form is not optimized and only moderately tested:
        hbmk2_PathMakeRelative( "", "" )
        hbmk2_PathMakeRelative( "", "hello.prg" )
        hbmk2_PathMakeRelative( "", "proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\this\that\proj\" )
        hbmk2_PathMakeRelative( "C:\this", "C:\this\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this", "C:\that\that\proj\hello.prg", .T. )
        hbmk2_PathMakeRelative( "D:\this", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\this\test\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\that\that\proj\hello.prg" )
        hbmk2_PathMakeRelative( "C:\this\test", "C:\that\that\proj\hello.prg", .T. )
        hbmk2_PathMakeRelative( "D:\this\test", "C:\that\test\that\proj\hello.prg" )

  * contrib/hbfbird/tests/simple.prg
  * contrib/hbfbird/tests/test.prg
  * contrib/hbfbird/tests/stress.prg
    ! Fixed references to absolute paths non-existent on users computer.
    ! Fixed IP address to be 127.0.0.1 instead of previous env specific value.
    * Indented.
    * Some formatting.
2010-02-04 11:56:22 +00:00
Viktor Szakats
14ca90da29 2010-02-03 21:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added {HB_TEMPDIR} macro which is replaced with HB_DIRTEMP() value.
2010-02-03 20:59:52 +00:00
Viktor Szakats
bf93ca3197 2010-02-03 20:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Enabled -workdir option for non -inc modes.
    * Change default workdir to be the OS temp dir.
      Please test it, especially on non-win OSes.
2010-02-03 20:01:58 +00:00
Viktor Szakats
7c66e97ed6 2010-02-03 14:55 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 some details on <script> usage. Most probably it's still 
      confusing, I you know a better way, tell.

  * contrib/hbfimage/fi_winfu.c
    * Formatting.
2010-02-03 13:56:25 +00:00
Viktor Szakats
0476405be7 2010-02-02 21:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/postgres.c
    + Added GC support for all remaining pointer types (result/cancel/FILE).
    + Added RTE when wrong pointer or wrong number of parameter is passed
      to functions.
      This means that behavior is now INCOMPATIBLE when wrong parameters
      are encountered in these functions.
    ; Destructor functions PQFREECANCEL(), PQCLOSE(), PQCLEAR() marked 
      as 'deprecated'.
      These are not needed, it's enough to assign NIL to their holder
      variables on .prg level.
    % Cleanups along the way.
    ; TODO: Fix sloppy parameter checking which only check number of
            parameters instead of enforcing expected type.
    ; Please test.

  * contrib/hbpgsql/tests/async.prg
  * contrib/hbpgsql/tests/test.prg
  * contrib/hbpgsql/tests/cache.prg
  * contrib/hbpgsql/tests/stress.prg
    % Replaced deprecated destructor functions with '<var> := NIL'.

  * utils/hbmk2/hbmk2.prg
    * Formatting.
2010-02-02 20:45:51 +00:00
Viktor Szakats
86ccc9a093 2010-01-31 12:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/files.c
    * 0 -> HB_FA_ALL.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added verbose information when hbmk2 is run from outside Harbour tree
      and HB_INSTALL_PREFIX is not set either. Just a wild guess what might
      cause difficulty for some users when trying to use hbmk2.

  * src/rtl/fssize.c
  * contrib/hbqt/hbqt_hbevents.cpp
    * Formatting.
2010-01-31 11:13:13 +00:00
Viktor Szakats
acbbde9abe 2010-01-29 00:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    % Re-merged Harbour and xhb section in .c stub.

  * TODO
    * xHarbour -> Harbour.
2010-01-28 23:35:32 +00:00
Viktor Szakats
13c9220ae4 2010-01-28 20:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -env:<envname>- support to delete envvars completely.
    % Minor optimization in filter handling.

  * contrib/hbwin/win_os.prg
  * contrib/hbwin/win_tprn.prg
    % Using HB_OSISWIN*() functions instead of WIN_OSISWIN*() ones.
2010-01-28 19:21:03 +00:00
Viktor Szakats
678a54d477 2010-01-26 20:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Deleted one debug line left in previous commit.
2010-01-26 19:44:16 +00:00
Viktor Szakats
c55fc2a796 2010-01-26 20:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + -xhp= converter switch now recognizes some more types of file.
      (lib, object and libpaths)

  * contrib/hbnetio/utils/netiosrv.prg
  * contrib/hbnetio/utils/netiocmd.prg
    - Deleted call protection.
2010-01-26 19:41:36 +00:00
Viktor Szakats
f0dd1f2c42 2010-01-26 18:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed -xhp option which didn't save the result due to 
      copy/paste typo.
      [TOMERGE 2.0]
2010-01-26 17:30:09 +00:00
Viktor Szakats
4527d4ab37 2010-01-26 15:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -hbexe option. This is the default, but it may help hbide 
      and other tools to clear doubts about target type. (or to override 
      some previous -hbdyn/-hblib options for whatever reasons)

  * contrib/hbide/ideprojmanager.prg
    * "hbMK2.exe" -> "hbmk2 Executable"
      .exe extension is Win/OS2/DOS specific.
2010-01-26 14:48:53 +00:00
Przemyslaw Czerpak
82984f16a2 2010-01-26 15:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    * use HB_EXTERN_BEGIN / HB_EXTERN_END macros instead of HB_EXTERN_C
      in -xhb mode. It fixes the problem with -gui switch.
2010-01-26 14:21:50 +00:00
Viktor Szakats
486537c920 2010-01-26 14:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.prg
    ! Fixed rare problem where options containing .hbp/.hbm/.clp
      extesions have been mistaken as file recursions instead
      of being processes as options. F.e. -runflag=test.hbp
    ! Updated help text about possible filter keywords.
    ! Fixed to use xharbour[mt] for dynlib name for mingw targets.
      Added NOTE that in newer xhb version this is not true
      anymore. Support for other targets also doesn't work,
      because of non-existent or not consistent dynlib naming
      scheme in xhb.
    ! Fixed to use 'mainstd' instead of 'hbmainstd', and not
      to use 'hbmainwin' at all in -xhb mode for mingw targets.
      For rest of targets the xhb solution is inconsistent, so
      it's not currently possible give them any meaningful
      support in hbmk2.
2010-01-26 13:42:56 +00:00
Viktor Szakats
37271cec25 2010-01-25 15:23 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiocmd.prg
    ! Fixed remote execution protection to work even when
      the source was compiled from another directory.
    ; QUESTION: Is there a better way to make this kind of
                protection? Current system will break if
                the source filename of the caller happens to
                change in the future.

  * contrib/hbnetio/utils/netiosrv.prg
    + Show internal error and quit and if above self-protection 
      got broken for some reason.

  * utils/hbmk2/hbmk2.prg
    ! Fixed entry function detection builting project in 
      different than current dir, possibly also in -inc mode.
      [TOMERGE 2.0]
2010-01-25 14:24:54 +00:00
Przemyslaw Czerpak
d907621bea 2010-01-25 12:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_misc.c
    ! fixed buffer overflow in WIN_WIDETOANSI() caused by wrongly calculated
      buffer size

  * harbour/utils/hbmk2/hbmk2.prg
    * updated names of xHarbour libraries - now it works in static mode
      TOFIX: -xhb shared mode uses 'harbour' instead of 'xharbour' library
              and 'hbmainstd' instead of 'mainstd'
      TOFIX2: -gui switch in -xhb mode cause compile time error:
                  /tmp/hbmk_auhl2d.c:8: error: syntax error before "void"
2010-01-25 11:35:47 +00:00
Viktor Szakats
812ad02df6 2010-01-24 14:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support to recognize .C (uppercase .c) extension as C++ file.
      (this won't be enabled in MS-DOS builds)
2010-01-24 13:32:52 +00:00
Viktor Szakats
f24d2827b2 2010-01-24 14:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to recognize files when uppercase extensions are is in
      .hbc/sources= directive.
      [TOMERGE 2.0]
2010-01-24 13:29:14 +00:00
Viktor Szakats
51493ee0b2 2010-01-24 12:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
    ! \n -> \\n (in previous commit)
2010-01-24 11:06:41 +00:00
Viktor Szakats
7022c7e00a 2010-01-24 11:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/estack.c
    ! Replaced printf() calls with hb_snprintf() and hb_conOutErr()
      calls. This will avoid reported problems where MinGW binary
      build refers to internal printf function. As a rule we should
      never use printf() in Harbour code. There are still a few
      commented ones in hbrtl.
      [TOMERGE 2.0]

  * src/vm/hvm.c
    ! Replaced printf() (commented) call with HB_TRACE().
      [TOMERGE 2.0]

  * utils/hbmk2/hbmk2.prg
    ! Fixed -build option not being recognized.
    ! Fixed -build option not being ignored in second option
      parsing loop.
    ! Fixed -lang= option not being ignored in second option
      parsing loop.
      [TOMERGE 2.0]

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Extended help text for -head option.

  * contrib/hbwin/win_prn1.c
    % WIN_LOADBITMAPFILE() optimized to use hb_retclen_buffer().
    ! WIN_LOADBITMAPFILE() fixed to return empty string instead
      of NIL in case of file read failure.

  * examples/rddado/adordd.ch
    + Added new 'adCmd*' constants. From xhb.
      (2010-01-20 20:53 UTC+0100 Miguel Angel Marchuet)
    * Formatting.
2010-01-24 11:02:50 +00:00
Viktor Szakats
80d8be0631 2010-01-23 12:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -env: option, command line only, it serves to alter local
      environment, which is used by fix itself and which is passed to
      external commands. This means it's now possible to call hbmk2
      in a way that it configures the whole build environment for itself:
         hbmk2 hello.hbp -env:PATH#C:\mingw\bin; -env:HB_WITH_QT=C:\qt\4.5.3
      Read more in --help.
    ; Please experiment with it.

  * contrib/hbide/ideprojmanager.prg
    + Added simple way (HBIDE_DIR_HBMK2 envvar) to configure location
      of hbmk2.

  * contrib/hbqt/generator/hbqtgen.prg
    ! Minor formatting fix to generated code.
2010-01-23 11:20:21 +00:00
Viktor Szakats
78b5746c48 2010-01-19 14:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Allowing -hbdyn and -shared option together.
      Absolutely not tested combination, so it may need further 
      development to make it usable.
    ! Fixed bad typo in .c stub enabler logic, which have
      added .c stub also to libs/dynlibs when -main option 
      was used (plus some other rare cases)
    ! Fixed gcc linker option order in -hbdyn mode.
    ; Please test.
2010-01-19 13:22:21 +00:00
Viktor Szakats
547e66cecb 2010-01-19 10:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/maindllp.c
  * utils/hbmk2/hbmk2.prg
  * config/global.mk
    + Added more (untested) support for WinCE x86 targets.
2010-01-19 09:35:50 +00:00
Viktor Szakats
17a7f91323 2010-01-15 15:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbexprb.c
    ! s&r error bug in recent change.

  * utils/hbmk2/hbmk2.prg
    + Accepting name=, description=, verison= .hbc lines.
      Just a step, no real purpose.

  * contrib/hbodbc/odbc.c
    * long -> HB_SIZE
    * ULONG -> HB_SIZE
2010-01-15 14:12:58 +00:00
Przemyslaw Czerpak
b1d68f0a5e 2010-01-14 01:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyh
  * harbour/src/compiler/harbour.yyc
    ! pacified compile time error when ... is used as parameter in _HB_MEMBRER
      declaration. TODO: Remove or fix this strong typing grammar rules.

  * harbour/src/debug/dbgtwin.prg
  * harbour/src/debug/dbgtmenu.prg
  * harbour/src/debug/tbrwtext.prg
  * harbour/src/debug/debugger.prg
  * harbour/src/debug/dbgtinp.prg
  * harbour/src/rtl/tbcolumn.prg
  * harbour/src/rtl/listbox.prg
  * harbour/src/rtl/pushbtn.prg
  * harbour/src/rtl/treport.prg
  * harbour/src/rtl/radiogrp.prg
  * harbour/src/rtl/tthreadx.prg
  * harbour/src/rtl/checkbox.prg
  * harbour/src/rtl/tsymbol.prg
  * harbour/src/rtl/teditor.prg
  * harbour/src/rtl/tmenuitm.prg
  * harbour/src/rtl/tbrowse.prg
  * harbour/contrib/hbmysql/tmysql.prg
  * harbour/contrib/xhb/stream.prg
  * harbour/contrib/xhb/trpccli.prg
  * harbour/contrib/xhb/hblognet.prg
  * harbour/contrib/xhb/tfile.prg
  * harbour/contrib/xhb/tframe.prg
  * harbour/contrib/xhb/htjlist.prg
  * harbour/contrib/xhb/hblog.prg
  * harbour/contrib/xhb/trpc.prg
  * harbour/contrib/xhb/thtm.prg
  * harbour/contrib/xhb/tcgi.prg
  * harbour/contrib/xhb/ttable.prg
  * harbour/contrib/xhb/txml.prg
  * harbour/contrib/xhb/hjwindow.prg
  * harbour/contrib/xhb/htmutil.prg
  * harbour/contrib/hbodbc/todbc.prg
  * harbour/contrib/hbfbird/tfirebrd.prg
  * harbour/contrib/xpp/tthreadx.prg
  * harbour/contrib/hbpgsql/tpostgre.prg
  * harbour/contrib/hbgd/gdchart.prg
  * harbour/contrib/hbgd/gdimage.prg
  * harbour/contrib/hbgd/gdbar.prg
  * harbour/contrib/hbgd/gdbarcod.prg
  * harbour/contrib/hbmisc/twirler.prg
  * harbour/contrib/hbtip/thtml.prg
  * harbour/contrib/hbtip/cgi.prg
  * harbour/contrib/hbtip/httpcli.prg
  * harbour/contrib/hbtip/smtpcli.prg
  * harbour/contrib/hbtip/client.prg
  * harbour/contrib/hbtip/ftpcli.prg
  * harbour/contrib/hbtip/mail.prg
  * harbour/contrib/hbtip/popcli.prg
  * harbour/contrib/hbwin/win_tprn.prg
  * harbour/contrib/hbbtree/tbtree.prg
  * harbour/utils/hbformat/hbformat.prg
    ! fixed class method declarations to be synced with method implementations
      All of the above missdeclarations were detected by compilation with:
         HB_USER_PRGFLAGS=-DHB_CLS_PARAMS_ERR
      Few years ago in hbclass.ch I defined PP rules to force strict method
      declarations but I had to disable them due to problems with old PP.
      I defined HB_CLS_NO_PARAMS_ERR and left this note in hbclass.ch:
         > I have to enable this definition by default until we will not fix
         > preprocessor. [druzus]
      Current PP code works correctly so we can remove it and activate this
      code. Anyhow as above commit shows a lot of code has been created with
      wrong declarations. I fixed Harbour core code (except HBQT, HBXBP and
      GTWVG - I hope Pritpal or Viktor will fix it) but setting
      HB_CLS_PARAMS_ERR as default will exploit a lot of similar problems in
      user code so I would like the hear other developers' opinions about it.
2010-01-14 00:45:19 +00:00
Viktor Szakats
7d0eb012a9 2010-01-10 11:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added gcc pkg to opensolaris pkg list.

  * harbour.spec
    ! Do not mark Red Hat and SUSE as discontinued. These names seem
      to be used for "enterprise" versions of these distros, but correct
      me if I'm wrong.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Made it clean on the help screen which options can only be used 
      from the command line.
2010-01-10 10:58:27 +00:00
Viktor Szakats
472c3592ed 2010-01-07 18:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
  * contrib/hbwin/win_prn3.c
    + Added TOFIXes for unsafe function usage:
       IsBadWritePtr(), IsBadReadPtr(), lstrlen(), lstrcpy(), lstrcat()
    ; QUESTION: Any idea how to fix that? win_prn3.c can
                probably be fixed with some good general coding
                idea.

  * contrib/hbwin/wce_smsc.c
    ! Fixed to not use unsafe CRTL functions.

  * src/rtl/oemansi.c
    ! Rewritten HB_OEMTOANSI() and HB_ANSITOOEM() to not use
      Windows API functions marked as unsafe. New version is a bit
      slower but won't mark Harbour apps as unsafe in an audit.
    ; Please test and review.

  * utils/hbmk2/hbmk2.prg
  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    % Deleted -Gs MSVC option. Testing with MSVC 2008 I've found
      this have no effect on x86 builds, and it makes x64 builds
      slighly less efficient by forcing stack checks in each function
      call. This seems to contradict MSDN, which doesn't suggest such
      difference between x86 and x64:
         http://msdn.microsoft.com/en-us/library/9598wk25.aspx
    % Deleted -GS- MSVC option used for wce targets for MSVC >= 8.00.
      '-GS-' will disable stack cookies (on by default), thus trading
      app size/speed for security. Maybe this is preferred for wce
      users, but in Harbour I'd rather opt to pass this decision to users
      for all targets.
         Enable with: HB_USER_CFLAGS=-GS- / -cflag={allmsvc}-GS-
      MSDN:
         http://msdn.microsoft.com/en-us/library/8dbf701c.aspx
2010-01-07 17:17:24 +00:00
Viktor Szakats
d89181934b 2010-01-07 16:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv.hbp
  * utils/hbformat/hbformat.hbp
  * utils/hbmk2/hbmk2.hbp
  * utils/hbi18n/hbi18n.hbp
  * utils/hbtest/hbtest.hbp
  * utils/hbrun/hbrun.hbp
  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    + Added -fixed:no to msvc command line. It seems to be needed
      for ASLR compatibility.
2010-01-07 15:12:28 +00:00
Viktor Szakats
cee6162783 2010-01-07 16:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Updated valgrind example.

  * contrib/hbnetio/utils/netiosrv.hbp
  * utils/hbformat/hbformat.hbp
  * utils/hbmk2/hbmk2.hbp
  * utils/hbi18n/hbi18n.hbp
  * utils/hbtest/hbtest.hbp
  * utils/hbrun/hbrun.hbp
  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    + Added MSVC linker switches to enhance security by 
      enabling NX compatibility and ASLR.
      Especially important for server apps like netiosrv and hbrun.
    ; TODO: Enable the same for MinGW.
    ; TOCHECK: Please test this with old MSVC versions and MSVCARM, 
               maybe we will need to disable them in some cases.
    ; QUESTION: I'm unsure of -fixed:no MSVC option. Do we need it 
                to increase security?

  * config/wce/msvcarm.mk
    + Changed to use link.exe for linking instead of cl[arm].exe.
      This now syncs it with rest of Harbour.
2010-01-07 15:03:47 +00:00
Viktor Szakats
2cc8ef44d5 2010-01-06 23:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_err.c
    ! Fixed GetLastError() in MT mode.

  * utils/hbmk2/hbmk2.prg
    % nSize++ -> nSize = 1

  * contrib/hbide/hbide.hbp
    ! Typo in comment.
2010-01-06 22:54:39 +00:00
Viktor Szakats
24bc432079 2010-01-06 22:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    ! Fixed instructions for .deb binary build.

  * contrib/hbide/hbide.hbp
    + Comment extended.

  * utils/hbmk2/hbmk2.prg
    + Comment extended.

  * config/globsh.mk
    ! Fixed typos in nt clean commands.
      [TOMERGE 2.0]

  * ChangeLog
    + Added TOMERGE 2.0 to prev entry.
2010-01-06 21:27:33 +00:00
Viktor Szakats
7fb88b37b0 2010-01-06 21:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* mpkg_tgz.sh
    ! Fixed to detect case when tar is mapped to bsdtar
      (such is the case on Snow Leopard). Use slightly modified
      tar command in this case.
      Please review.
    ; TOFIX?: Unpacking stub script always uses 'tar', maybe this
              needs to be fixed, although current command should
              work on Snow Leopard.
    - Deleted comment no longer valid.

  * utils/hbmk2/hbmk2.prg
    ! Fixed C++ memory manager override to handle zero size memory
      request and added protection when free operations are called
      with NULL. Thanks Istvan Bisz and Przemek for input.
2010-01-06 20:13:24 +00:00
Viktor Szakats
bf7a794d98 2010-01-05 19:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added disctinctive static text which is always linked in
      when C++ mm override is active. This makes it easy to
      verify if C++ mm override is activated in an executable.

  * ChangeLog
    ! Fixed messed text in latest hbmk2 changes.

2010-01-05 18:48 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 support for C++ input files. Now C++ files will be compiled
      in a separate pass where native C++ compiler is used, which
      means that C++ compilation mode is now enforced by using .cpp
      extension. This also means that it's now possible to build
      mixed mode projects with both C and C++ input files.
      In general, this feature makes -cpp option unnecessary, its
      only purpose now is to override default mode.
    + Added option to override standard C++ memory management functions
      with Harbour ones.
         Enable with option: -hbcppmm (cmdline) or hbcppmm=yes (in .hbc files)
      NOTE1: Suggestions for better names are welcome.
      NOTE2: hbide will now crash with mingw if this option is enabled.
             Any idea why?
    ; Please test.
2010-01-05 18:16:14 +00:00
Viktor Szakats
1cf66dcc83 2010-01-05 18:48 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 support for C++ input files. Now C++ files will be compiled
      in a separate pass where native C++ compiler is used, which
      means that C++ compilation mode is now enforced by using .cpp
      extension. This also means that it's now possible to build
      mixed mode projects with both C and C++ input files.
      Enable with option: -hbcppmm (cmdline) or hbcppmm=yes (in .hbc files)
         NOTE: Suggestions for better names are welcome.
      In general, this feature makes -cpp option unnecessary, its
      only purpose now is to override default mode.
    ; Please test.

  * utils/hbmk2/hbmk2.prg
    - Deleted support for link-related macros in C compilation phase,
      these weren't used anymore inside current hbmk2, so it seems safe,
      but it's possible nevertheless that it will cause regressions in
      some exotic use cases.

  * utils/hbmk2/hbmk2.prg
    ! Fixed parsing -warn option on the commandline and .hbm/.hbp files.
      [TOMERGE 2.0]

  * contrib/hbqt/generator/hbmk.hbm
    ! Deleted xhb lib. It's not required and was probably added for
      "outdebug" stuff.

  * contrib/hbqt/hbqt.hbc
  * contrib/hbqt/hbqts.hbc
  * contrib/gtqtc/gtqtcs.hbc
  * contrib/gtqtc/gtqtc.hbc
    + Added hbcppmm=yes option. This will force C++ memory allocation
      functions to be overridden by Harbour mm functions.

  * src/vm/fm.c
    - Deleted C++ memory allocation functions. This feature now
      lives inside hbmk2, and it now doesn't require whole Harbour
      to be built in C++ mode.

  * contrib/hbqt/*
    * Regenerated.
2010-01-05 18:04:12 +00:00
Viktor Szakats
330c17d8e0 2010-01-04 23:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Will now ignore hbdebug and hbcplr static Harbour libs when 
      creating dynamic binaries, if these libs are not present.
2010-01-04 22:29:07 +00:00
Viktor Szakats
fd83ae6f35 2009-12-23 02:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
    ! Restored stripped accents while saving the file with Windows-1250 CP 
      (instead of Windows-1252).
      Please retest again.
      [TOMERGE 2.0]
2009-12-23 02:01:20 +00:00
Viktor Szakats
c66fe598df 2009-12-23 02:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
    + Converted to PTISO CP (which is for our purpose equivalent to Windows-1252).
      Thanks Vailton for the conversion.
      Please retest this version to be sure.
      [TOMERGE 2.0]
2009-12-23 01:34:38 +00:00