Commit Graph

1210 Commits

Author SHA1 Message Date
Viktor Szakats
d93eb500c9 2010-02-22 14:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
  * src/vm/dynlibhb.c
  * src/common/hbgete.c
  * src/common/hbffind.c
  * src/common/hbver.c
  * src/rtl/filesys.c
  * src/rtl/diskspac.c
  * src/rtl/gtos2/gtos2.c
  * src/rtl/cputime.c
  * src/rtl/disksphb.c
  * include/hbthread.h
  * contrib/hbmzip/hbmzip.c
    ! Fixed to setup all OS/2 INCL_* constants and
      to #include os2.h by themselves, and not to rely
      on Harbour headers to do this job for them.
    ; TODO: Do the same for dos.h.

  * doc/hdr_tpl.txt
    - Deleted local changelog.
    ! Fixes to .prg function docs
    + Update copyright year to 2010.
    + Added fact that $SEEALSO$ should be comma separated.
    + Added .c function example (far from perfect)

  * examples/hbdoc2/tmplates.prg
  * doc/hdr_tpl.txt
    + Added $VERSION$ tag. (pls update HBIDE. We haven't finalized
      the format yet, to it's little bit premature to create
      new and new parsers/generators for it yet)

  * include/hbdefs.h
    ! Fixed to not unconditionally include OS/2 headers with
      an arbitrary selection of INCL_ macros.
      Now OS/2 headers will only be included if legacy types
      are requested (off by default), and no INCL_ macros
      are defined. This latter change may affect 3rd party
      code written for OS/2, so I'm marking it INCOMPATIBLE.

  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/hbqt.h
    * Changed to #include hbapi.h from hbqt.h. It needs it,
      so this is the clean way. Changed generator to leave
      out hbapi.h from each source file and refer to hbqt.h
      only. (untested)
    + Added logic to #include OS/2 headers with some INCL_
      macros defined, to make QT on OS/2 happy. (copied them
      from the dev. list)
    ; TODO: Regenerate HBQT sources.

  * utils/hbtest/hbtest.prg
    ! Cleaned old problem reported by Chen. It seems like
      a feature which was never finished, and it's not even
      hugely needed, so I deleted it.

  * config/global.mk
    + Will now provide HB_COMP_PATH_PUB value for os2-gcc, os2-gccomf
      compilers. This value can be used to manually form ld.exe
      command line.
      (NOTE: This may be deleted in the future, when sorting
      out line-length limit problems for these compilers.
2010-02-22 13:45:07 +00:00
Viktor Szakats
bb40624dbe 2010-02-20 21:19 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ doc/en
  - doc/en-EN
  - contrib/hbgt/doc/en-EN
  + contrib/hbgt/doc/en
  - contrib/hbziparc/doc/en-EN
  + contrib/hbziparc/doc/en
  - contrib/rddads/doc/en-EN
  + contrib/rddads/doc/en
  - contrib/hbgd/doc/en-EN
  + contrib/hbgd/doc/en
  - contrib/hbmisc/doc/en-EN
  + contrib/hbmisc/doc/en
  - contrib/hbbtree/doc/en-EN
  + contrib/hbbtree/doc/en
  - examples/hbdoc/examples/core_en
  + examples/hbdoc/examples/en
  - examples/hbdoc/examples/core_es
  + examples/hbdoc/examples/es
    * Renamed to use IETF complient language ID.

  - examples/hbdoc/examples/hbmisc
    - Deleted.

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    ! Fixed to not use "en-EN" language code, but plain "en".

  * examples/hbdoc2/hbdoc2.prg
    * "en-en" -> "en"
2010-02-20 20:20:24 +00:00
Viktor Szakats
6d9e5bbb8c 2010-02-20 16:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/memvars.c
  * src/common/hbverdsp.c
  * doc/whatsnew.txt
  * include/hbsetup.ch
  * utils/hbtest/rt_str.prg
    * "5.3x" -> "5.3b"
2010-02-20 15:39:33 +00:00
Viktor Szakats
a352ff57ce 2010-02-20 15:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/philes.c
  * include/hbextern.ch
    + Added HB_CURDRIVE(). Similar to Xbase++ CURDRIVE(), but
      always provided by Harbour core.

  * utils/hbmk2/hbmk2.prg
    - Deleted mapping from hb_CurDrive() to CurDrive().

  * examples/httpsrv/uhttpd.prg
  * examples/httpsrv/modules/tableservletdb.prg
  * examples/gtwvw/tests/wvwtest9.prg
    * Changed to use hb_CurDrive() which is always available in
      Harbour core, instead of Xbase++ specific CurDrive().
2010-02-20 14:56:27 +00:00
Viktor Szakats
fb8f347420 2010-02-20 13:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/Makefile
  - contrib/xpp
  + contrib/hbxpp
  * contrib/hbxpp/Makefile
  - contrib/hbxpp/xpp.hbc
  + contrib/hbxpp/hbxpp.hbc
  - contrib/hbxpp/xppextrn.ch
  + contrib/hbxpp/hbxppext.ch
  - contrib/hbxpp/xpp.ch
  + contrib/hbxpp/hbxpp.ch
  * contrib/hbxpp/tests/hbmk.hbm
  * utils/hbmk2/examples/contribf.hbc
    * Renamed 'xpp' lib to 'hbxpp'. Final name.
2010-02-20 12:03:26 +00:00
Viktor Szakats
fe38540ca2 2010-02-20 12:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.ch
  * src/common/hbverdsp.c
    - Deleted HB_COMPAT_FLAGSHIP, HB_COMPAT_FOXPRO.

  * include/hbextern.ch
  * src/rtl/seconds.c
    + Added HB_SECONDSCPU()
      (native Harbour version of FlagShip specific SECONDSCPU())

  * tests/memtst.prg
  * tests/speedold.prg
  * tests/speedtst.prg
  * tests/vidtest.prg
    * Changed to use HB_SECONDSCPU().
    + Added translation from SECONDSCPU() to HB_SECONDSCPU() when
      built for FlagShip (where applicable).

  * include/hbextern.ch
  * src/rtl/Makefile
  - src/rtl/strpeek.c
  - src/rtl/secondfs.c
  * contrib/Makefile
  + contrib/hbfship
  + contrib/hbfship/Makefile
  + contrib/hbfship/hbfship.hbc
  + contrib/hbfship/secondfs.c
  + contrib/hbfship/strpeek.c
    - Moved FlagShip specific function from core to new hbfship lib.
    * Changed SECONDSCPU() to be just a wrapper over core HB_SECONDSCPU().
    ; INCOMPATIBLE: If you used SECONDSCPU() function, change it to
                    HB_SECONDSCPU(), or add hbfship to your lib list.
                    If you used STRPEEK() or STRPOKE() functions,
                    add hbfship to your lib list.

  * utils/hbmk2/examples/contribf.hbc
    + Added hbfship.
2010-02-20 11:57:17 +00:00
Viktor Szakats
2da1437ec6 2010-02-20 04:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.ch
  * src/common/hbverdsp.c
    - Deleted HB_COMPAT_XPP option. It's no longer used in Harbour.
      From this point all Xbase++ compatibility functions and core
      classes are implemented in 'xpp' contrib library (name
      tentative). Add it to your lib list, if you need Xbase++
      compatible functions. IOW HB_COMPAT_XPP build time option
      got converted to a app link time option.

  * src/rtl/isprint.c
    - Deleted dirty Xbase++ extension of ISPRINTER(). Now it's
      purely Clipper compatible in default build.
      INCOMPATIBLE. For Xbase++ version, use XPP_ISPRINTER()
      (or HB_ISPRINTER() which is the exact same).

  * src/rtl/tobject.prg
  * src/rtl/transfrm.c
  * src/rtl/memoedit.prg
  * include/memoedit.ch
    * Replaced "#ifdef HB_COMPAT_XPP" with "#ifndef HB_CLP_STRICT".
      Which means we've endorsed these extensions in Harbour,
      and they are always enabled except in strict compatibility
      builds.

  * src/rdd/nulsys/nulsys.c
    - Deleted HB_COMPAT_XPP guarded function.

  * contrib/xhb/xhbver.prg
    * Always return .T. for _HB_COMPAT_XPP in version info.

  * include/box.ch
  * contrib/xpp/xpp.ch
    + Added Xbase++ compatibility box.ch constants from core box.ch.
      INCOMPATIBLE if you use B_THIN or B_FAT box style.

  * utils/hbtest/hbtest.prg
  * examples/hbdoc2/tmplates.prg
  * examples/hbdoc2/hbdoc2.prg
    - Deleted parts dealing with HB_COMPAT_XPP option.
2010-02-20 03:51:10 +00:00
Viktor Szakats
f0bdd18332 2010-02-20 03:44 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 -harbourhelp option which will result
      in the same output as 'harbour --help' command.
    + Added reference to -harbourhelp option which display
      Harbour compiler help.
    + Added support for -build option support in hbmk2.
      It will be passed to Harbour compiler.

  * contrib/hbwin/hbwin.ch
    * Formatting.
2010-02-20 02:50:22 +00:00
Viktor Szakats
1dae4e170f 2010-02-20 01:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
    * Changed not to rely on _WIN32_WCE to detect WinCE.

  * config/wce/global.mk
  * utils/hbmk2/hbmk2.prg
    % Changed to not pre-define _WIN32_WCE to any value. This should
      be user choice.

  * contrib/hbfimage/fi_winfu.c
    ! Fixed for WinCE builds. Now only non-WinCE compatible parts
      are disabled and functions keep being defined on .prg level
      regardless.

  * contrib/hbfimage/fi_winfu.c
  * contrib/hbfimage/fi_wrp.c
    % Cleaned logic that guards '_WINDOWS_' definition.

  * contrib/hbwin/win_bmp.c
    ! Fixed to use hexadecimal notation instead of octal, because
      some compilers where getting confused and tried to match these
      with some codepages.

  * contrib/hbwin/win_prn1.c
    ! Fixed for poccarm, because Pelles C (even 6.0) forgets to
      map FONTENUMPROC to FONTENUMPROCW.

  * contrib/hbwin/win_prn3.c
    ! Added some extra WinCE guards to avoid warning for this platform.

  * src/debug/dbgentry.c
    * Formatting.
2010-02-20 00:11:43 +00:00
Viktor Szakats
f83c8f069e 2010-02-18 16:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/wce/mingwarm.mk
  * config/wce/poccarm.mk
    ! Fixes to previous change after testing:
      - '-D_WINCE' is required by pocc headers, so I've readded it there.
      - '-DARM' is already defined by mingwarm, so it's not needed.
2010-02-18 16:00:52 +00:00
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