Commit Graph

14406 Commits

Author SHA1 Message Date
Viktor Szakats
f798129d72 2010-06-19 13:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * include/hbapiitm.h
  * src/vm/itemapi.c
  * src/vm/arrays.c
  * src/vm/extend.c
    + Added hb_storvns().
    + Added hb_parvns().
    ; TOFIX: hb_itemPutNS() gives these (not quite unexpected) mingw warnings:
             ---
             itemapi.c:993:8: warning: comparison between signed and unsigned integer expressions
             itemapi.c:998:38: warning: comparison between signed and unsigned integer expressions
             itemapi.c:1004:35: warning: comparison between signed and unsigned integer expressions
             itemapi.c:1004:7: warning: comparison is always false due to limited range of data type
             ---

  * src/rtl/philes.c
  * src/rtl/mlcfunc.c
  * src/rtl/rat.c
    + Using size APIs.
    % Also deleting '( HB_SIZE )' casts along the way.

  * src/rtl/oemansi.c
    ! Cast to make Win64 happy. Quite interesting that almost no
      Windows API don't support proper 64-bit strings, so here
      Windows will be the limitation, not Harbour.
2010-06-19 11:49:23 +00:00
Viktor Szakats
685ab6229d 2010-06-19 13:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extend.c
    ! Fixed another miss for prev rename.

  * src/rtl/filesys.c
    * Minor indentation.
2010-06-19 11:26:45 +00:00
Viktor Szakats
8866af5c97 2010-06-19 13:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/arrayshb.c
  * src/rtl/replic.c
  * src/rtl/padr.c
  * src/rtl/padc.c
  * src/rtl/len.c
  * src/rtl/padl.c
  * src/rtl/right.c
  * src/rtl/left.c
  * src/rtl/space.c
  * contrib/xhb/xhbat.c
  * contrib/xhb/xhbarr.c
    + Started to use size APIs. Quite random, just to test the
      feeling. Converted functions can properly handle > 4GB
      strings and no. of array elements in .prg code.
      (on Win64)

  * include/hbapiitm.h
    ! Missed to do the renaming in declaration.
2010-06-19 11:18:10 +00:00
Przemyslaw Czerpak
a46effd019 2010-06-19 12:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    * minor cleanup in recent modification
2010-06-19 10:58:34 +00:00
Viktor Szakats
73eae980a9 2010-06-19 12:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/itemapi.c
  * src/vm/arrays.c
  * include/hbapi.h
    * Renamed hb_arrayGetNSize(), hb_arraySetNSize(),
      hb_itemGetNSize(), hb_itemPutNSize() functions to
      hb_arrayGetNS(), hb_arraySetNS(),
      hb_itemGetNS(), hb_itemPutNS().

  * src/rtl/at.c
  * src/rtl/ati.c
  * contrib/xhb/xhbat.c
    * Started to use hb_*ns() instead of hb_*nl() for size values.
2010-06-19 10:53:28 +00:00
Viktor Szakats
aed2388134 2010-06-19 12:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extend.c
  * include/hbapi.h
    * hb_*nsize() functions renamed to hb_*ns():
        hb_parns(), hb_retns(), hb_storns()
    + Added hb_parnsdef().
2010-06-19 10:46:53 +00:00
Viktor Szakats
6adb33b4c1 2010-06-19 12:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * bin/postinst.sh
    + Applied patch from Tamas Tevesz, to POSIXify these shell scripts.
      Thanks!
2010-06-19 10:28:02 +00:00
Viktor Szakats
ec13203192 2010-06-19 12:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/itemapi.c
    - hb_itemGetNL() no longer works for date types.
      INCOMPATIBLE. If you used it to retrieve date/time,
      use hb_itemGetDL() instead.
    ! Fixed typo in prev addition.

  * include/hbapi.h
  * src/vm/arrays.c
    + Added hb_arrayGetNSize(), hb_arraySetNSize().
    ! Fixed old typo in TRACE() call of hb_arrayGetNInt().

  * src/vm/extend.c
    ! Fixed typo in prev addition.

  * src/rtl/filesys.c
    ! Applied fixed from Przemek to hb_fsReadAt()/hb_fsWriteAt()
      code to be MT safe plus fix other problems.
    ; QUESTION: Shouls the same applied to hb_fsWriteLarge()/hb_fsReadLarge() 
                loops? (BTW inactive in 32-bit Harbour builds)

  * contrib/hbct/screen2.c
    ! Type cleanup.

  * contrib/hbct/pack.c
  * contrib/xhb/hbxml.c
  * contrib/xhb/hbxml.h
  * contrib/hbgt/charmixg.c
  * contrib/hbgt/charodd.c
  * contrib/hbgt/strexpan.c
  * contrib/hbgt/asciisgt.c
  * contrib/hbgt/strright.c
  * contrib/hbgt/strasint.c
  * contrib/hbgt/strdiffg.c
  * contrib/hbgt/chrtotal.c
  * contrib/hbgt/strcount.c
  * contrib/hbgt/strleft.c
  * contrib/hbgt/chrfirst.c
  * contrib/hbgt/chrcount.c
  * contrib/hbgt/strpbrk.c
  * contrib/hbgt/chareven.c
  * contrib/hbgt/bitflags.c
  * contrib/hbgt/strcspn.c
  * contrib/hbgt/atdiff.c
  * contrib/hbnf/proper.c
  * contrib/hbnf/getenvrn.c
    ! Fixed to use Harbour size types.

  * contrib/hbnf/dispc.c
    ! Started using Harbour type, but this is code is
      deadly and needs further work. I still wonder how
      to create code which mixes properly HB_FOFFSET and
      HB_SIZE.

  * contrib/xhb/cstructc.c
    * Formatting.
2010-06-19 10:26:02 +00:00
Viktor Szakats
23dd5b134d 2010-06-19 09:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    ! Minor to prev.

  * include/hbapi.h
  * src/vm/extend.c
    + Added hb_parnsize(), hb_retnsize(), hb_stornsize() functions.
    ; NOTE: These should be used in place of hb_parnl(), hb_retnl(),
            hb_stornl() when passing HB_SIZE types.
    ; TODO: Use them all accross Harbour if they are correct and
            after being finalized.

  * src/vm/itemapi.c
    + Added hb_itemGetNSize(), hb_itemPutNSize() functions.
    * DATETIME stuff in hb_itemGetNL() marked as HB_LEGACY_LEVEL3.
    ; QUESTION: It's marked as to be deleted in the TODO, so maybe we should
                rather delete it.

  * include/hbapiitm.h
  * src/rtl/filesys.c
    + hb_fsReadAt(), hb_fsWriteAt(): Added support for Win64 HB_SIZE.
    ; QUESTION: I assume these functions have the purpose of being
                atomic seek + read without moving the file pointer,
                which means current modification isn't safe. How
                can this be solved given Windows doesn't seem to have
                64-bit read/write API calls?
    ! Fixed old copy-paste typos in Windows OVERLAPPED initialization,
      where the lines were ended with command instead of semicolon,
      they didn't cause any harm though in their former location.
    % Reverted a minor change from prev commit to make it
      possibly a little bit faster, like it was before.

  * src/rtl/hbzlib.c
    + Added casts (at external interface calls) and other fixes to
      make it build for Win64 without warnings.

  * src/rdd/dbfntx/dbfntx1.c
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
  * contrib/rddbmcdx/bmdbfcdx.c
    * HB_ULONG -> HB_SIZE where appropriate to avoid Win64 errors
      and some warnings. I'm still not comfortable to touch this
      code, but it could certainly need a type cleanup.

  * include/hbdefs.h
    + Added HB_PFS macro which holds the printf() format string
      for HB_SIZE value.
    ; TODO: Use it all accross Harbour.

  * contrib/hbmysql/mysql.c
  * contrib/sddmy/sddmy.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbcurl/hbcurl.c
  * contrib/hbhpdf/harupdf.c
  * contrib/hbpgsql/postgres.c
  * contrib/rddads/adsfunc.c
  * contrib/rddads/ads1.c
  * contrib/hbfimage/fi_wrp.c
  * contrib/sddodbc/sddodbc.c
  * contrib/hbgd/gdwrp.c
  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/win_bmp.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_regc.c
  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/evpenc.c
  * contrib/hbssl/pem.c
  * contrib/hbssl/rand.c
  * contrib/hbssl/evp.c
    + Added necessary casts at external component boundaries to
      make Win64 builds warning-free.

  * contrib/hbct/ctstrfil.c
    + HB_ISIZ -> HB_FOFFSET, hb_fsSeek() usage, other type cleanup
      to handle file offsets correctly.

  * contrib/xhb/hbnxs.h
  * contrib/xhb/hbcrypt.c
    ! Fixed warnings for Win64.

  * contrib/hbwin/win_prn3.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/fparse.c
    * int -> HB_ISIZ for Win64.

  * contrib/xhb/freadlin.c
    * hb_fsSeek() -> hb_fsSeekLarge().

  * contrib/sddfb/sddfb.c
    * Minor type cleanup to make Win64 warning-free.

  * contrib/hbsqlit3/hbsqlit3.c
    + Added necessary casts at external interface calls.
    % Deleted one dummy operation from SQLITE3_FILE_TO_BUFF().

  * contrib/rddsql/sqlmix.c
  * contrib/rddads/adsx.c
    * HB_ULONG -> HB_SIZE.

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgcuig.c
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgcore.c
    ! int -> HB_ISIZ/HB_SIZE
    + Added necessary casts at external component boundaries to
      make Win64 warning-free.

  * contrib/rddads/ads1.c
    * HB_ULONG -> HB_SIZE

  * contrib/hbtip/utils.c
    * int -> HB_ISIZ
    ! Fixed to use HB_FOFFSET type to save/restore file position.

  * ChangeLog
    + Added missing item to previous log entry:
      ! Fixed hb_fsCurDirBuff() for Win64.

  ; It's quite large commit, nevertheless I'd highly appreciate
    peer review, and certainly there will be places which need
    better or different solution for Win64.
2010-06-19 08:05:24 +00:00
Pritpal Bedi
4618f04be4 2010-06-18 18:14 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.ch
  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/ideenviron.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/idefunctions.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idesaveload.prg
  * contrib/hbide/ideshortcuts.prg
  * contrib/hbide/idesources.prg
  * contrib/hbide/idetools.prg
    + Remodelled: ::aINI - hbide.ini variables container.
      It is now encapsulated in a object - ::aINI => ::oINI.
      This implementation has made this construct extendible to 
      any extent. Earlier it was a real mess to add one more 
      option on top of the existing one.
2010-06-19 01:17:42 +00:00
Viktor Szakats
98d0b811d1 2010-06-18 16:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
  * include/hbapifs.h
    + Added support for 64-bit HB_SIZE to hb_fsWriteLarge(), 
      hb_fsReadLarge().
    * Some HB_SIZE variables renamed to have 'n' prefix.
    * Minor cleanups in code layout in hb_fsWriteLarge(), 
      hb_fsReadLarge().
    ; Please review, I didn't make any real tests. Most code 
      was copied and adapted from similar code existing for 
      16-bit systems to support 32-bit HB_SIZE.

  * src/vm/runner.c
    % Adjusted scope of recently added variable.

  * ChangeLog
    ! Fixed HB_COMPILER_VER values for MSVC for pre < 1000 versions
      (requires zero prefix to work right) in:
      2010-06-06 00:50 UTC+0200 Viktor Szakats
2010-06-18 14:12:32 +00:00
Viktor Szakats
edbc9a4ef7 2010-06-18 15:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
  * include/hbcompdf.h
    ! Fixed two more HB_SIZE != HB_ULONG build issues.
2010-06-18 13:05:20 +00:00
Viktor Szakats
38c91a1eee 2010-06-18 13:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
  * include/hbapifs.h
    ! hb_fsLock()/hb_fsSeek() to use HB_ULONG/HB_LONG, instead of
      HB_SIZE/HB_ISIZ.
    * Cleaned some casting in hb_fsLock(). Please check me.
2010-06-18 11:43:07 +00:00
Przemyslaw Czerpak
3a75635439 2010-06-18 12:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/hbmain.c
    ! added missing compile time error for maximum string size overflow
      when #pragma TEXTHIDDEN(1) is used

  * harbour/src/compiler/hbpcode.c
    ! fixed missing HB_ULONG -> HB_SIZE conversion in hb_compGenPCodeN()
      function body
2010-06-18 10:33:12 +00:00
Viktor Szakats
f145ef4c80 2010-06-18 11:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    ! Fixed one intentional typo I put in to test legacy types.

  * src/compiler/hbmain.c
  * src/compiler/genhrb.c
  * src/compiler/gencc.c
  * src/compiler/hbcmplib.c
  * include/hbcomp.h
  * include/hbcompdf.h
    * HB_ULONG -> HB_SIZE, where I could find out from warnings.
    + Added parameter names to some function declarations where they
      were missing.
    ; Przemek, please check me. I feel I will mess this up if continuing
      beyond this point, so I'd appreciate if you could take a look at
      HB_ULONG to HB_SIZE conversion from an intrinsic perspective,
      there seem to be places where it needs further tweaks to get us
      full Win64 support. [ I've also intentionally left this area
      more or less intact when doing the previous pass of conversion. ]
    ; There are places where simple 'int' is used, while it should be
      HB_SIZE (or maybe size_t? in some places).
    ; Also, Win64 conversion will need some more work f.e. in filesys.c
      where WinAPI file I/O functions can't accept a 64-bit value.
      First I will report these and if they seem complicated I'll
      revert to HB_SIZE = HB_ULONG for Win64 in the being.

  * src/compiler/hbgenerr.c
    * Formatting.

  * src/pp/ppcore.c
  * src/vm/strapi.c
  * src/vm/debug.c
  * src/vm/itemapi.c
  * src/vm/cmdarg.c
  * src/vm/set.c
  * src/debug/dbgentry.c
  * src/common/hbgete.c
  * src/common/hbstr.c
  * src/common/strwild.c
  * src/nortl/nortl.c
  * src/rtl/lennum.c
  * src/rtl/strmatch.c
  * src/rtl/gtstd/gtstd.c
  * src/rtl/hbstrfmt.c
  * src/rtl/transfrm.c
  * src/rtl/gtcgi/gtcgi.c
  * src/rtl/direct.c
  * src/rtl/filesys.c
  * src/rtl/console.c
  * src/rtl/hbgtcore.c
  * src/rtl/cdpapi.c
  * src/rtl/mlcfunc.c
  * src/rtl/itemseri.c
  * src/rtl/gtpca/gtpca.c
  * src/rtl/trace.c
  * src/rtl/samples.c
  * src/rtl/gete.c
  * src/rdd/workarea.c
  * src/rdd/hsx/hsx.c
  * src/rdd/hbsix/sxsem.c
  * src/rdd/hbsix/sxfname.c
  * contrib/hbct/tab.c
  * contrib/xhb/dbf2txt.c
  * contrib/xhb/datesxhb.c
  * contrib/xhb/dbgfxc.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbnf/fttext.c
  * contrib/hbnetio/netiocli.c
  * contrib/hbpgsql/postgres.c
  * contrib/hbclipsm/num.c
  * contrib/rddads/ads1.c
  * contrib/sddsqlt3/sddsqlt3.c
  * contrib/hbfimage/fi_wrp.c
  * contrib/sddodbc/sddodbc.c
  * contrib/sddoci/sddoci.c
  * contrib/hbwin/win_svc.c
  * contrib/hbwin/win_prn2.c
    * '( HB_SIZE ) strlen(' -> 'strlen('
2010-06-18 10:03:44 +00:00
Przemyslaw Czerpak
09ebb080e7 2010-06-18 11:18 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
  * harbour/src/vm/harbinit.prg
    * renamed Harbour VM initialization function
      from CLIPINIT() to __HBVMINIT()
      This functions is called when new HVM stack is created at application
      startup or in MT mode when new HVM thread is registered to initialize
      basic VM settings like public variable GetList and ErrorBlock() by
      calling ErrorSys() function.
2010-06-18 09:19:03 +00:00
Viktor Szakats
06e2c4617e 2010-06-18 10:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + HB_SIZE/HB_ISIZ set to 64-bit value on Win64 targets.
      This change should finally fix the many casting errors appearing 
      in Win64 builds of Harbour, plus it enables to use proper 64-bit 
      sizes for strings and arrays.
    ; TODO: Test and fix and places where this may cause a problem.
            Delete all now unnecessary casting from size_t to HB_SIZE.
            (f.e. '( HB_SIZE ) strlen(')
2010-06-18 08:59:21 +00:00
Viktor Szakats
d1af4bdc11 2010-06-18 10:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Rearranged types to first define base Harbour types, then
      abstract Harbour types and then legacy types. This removes
      some redundancy and contains all legacy handling in one
      common block. It also fixes 16-bit legacy types not being
      defined in some cases.
    + Changed so that legacy type are referring to Harbour types
      instead of replicating them using native C types.
2010-06-18 08:50:55 +00:00
Viktor Szakats
c128b8a171 2010-06-18 09:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    ! Fixed for pocc after: 2010-03-05 19:26 UTC+0100 Viktor Szakats
      (looks like pocc isn't very actively used in Harbour)

  * config/globsh.mk
    + Added two TODOs to FALSE definitions.
2010-06-18 07:57:20 +00:00
Pritpal Bedi
73f05660a7 2010-06-17 19:07 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/setup.ui
  * contrib/hbide/resources/setup.uic
  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideedit.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/idesaveload.prg
  * contrib/hbide/idestylesheets.prg
    + Started: cleaning and extendibility of .ini variables.
2010-06-18 02:08:28 +00:00
Viktor Szakats
c670fe34fd 2010-06-17 23:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/globsh.mk
    + 'FALSE' variable set for 'nt' shells.
    * 'FALSE' variable set to a dummy value ($(TRUE)) for 'dos' and 'os2' shells.

  * config/wce/mingwarm.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
    ! Fixed to fail after deleting the library on 'ar' failure.
2010-06-17 21:15:51 +00:00
Viktor Szakats
09df7c33da 2010-06-17 22:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbfsapi.c
    ! hb_fsFName*(): Fixed to not GPF when called with NULL parameters.
      (this also fixes 'hbpp -c' GPF)

  * config/global.mk
    + Will now force HB_BUILD_UNICODE=no on Win9x hosts
      (and if HB_BIN_COMPILE is not set to point to a non-UNICODE
      Harbour tools to be used. Building UNICODE Harbour on Win9x
      is a cross-build situation)

  * config/win/bcc.mk
    + Added small trick to make the build work on Win9x host.

  ; Win9x is able to build properly using win/bcc.
2010-06-17 20:08:23 +00:00
Przemyslaw Czerpak
0448cbf646 2010-06-17 21:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/harbinit.prg
  * harbour/src/vm/runner.c
  * harbour/src/vm/hvm.c
    ! fixed the order in which HVM calls __SetHelpK() PRG function.
      It should be called after all INIT proc and before main application
      entry.
    * removed __SetHelpK() from thread initialization code.
    ! fixed the order in which INIT procedures are executed in single
      module - CA-Cl*pper calls INIT PROCEDUREs in the reverted order
      (from last to first)
    + added support for undocumented Clipper extension: two execution
      levels of INIT PROCEDUREs. When application starts CA-Cl*pper
      executes INIT PROCEDUREs called CLIPINIT from all linked PRG
      modules. Then it repeats this operation for all modules executing
      all other PROCEDUREs.

      Now Harbour and Clipper gives the same results for this code:
         proc main()
            ? PROCNAME()
         proc errorsys()
            ? PROCNAME()
         init proc INITPROC1()
            ? PROCNAME()
         init proc clipinit()
            ? PROCNAME()
         init proc INITPROC2()
            ? PROCNAME()
         proc __SetHelpK()
            ? PROCNAME()
         proc HELP()
2010-06-17 19:34:10 +00:00
Viktor Szakats
a72a3ca377 2010-06-17 19:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    % Minor optimization for Windows platform
    ! At the same time fix for CreateProcess( 'uname' ) error on Win9x.

  * config/wce/mingwarm.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
    ! Fix to previous: In multi-command cmdlines, f.e.: '(cmd1 && cmd2)'
      $(RM) command _must_ be used as a workaround so that GNU Make
      converts it to a batch file. Unfortunately with this, an 'ar'
      failure will be masked by a successful $(RM), so the make won't
      stop.

  * config/globsh.mk
    + Added new command macro $(FALSE) preparing for general solution
      to force failure.

  * config/beos/gcc.mk
  * config/qnx/gcc.mk
  * config/bsd/gcc.mk
  * config/bsd/clang.mk
  * config/darwin/gcc.mk
  * config/darwin/icc.mk
  * config/darwin/clang.mk
  * config/hpux/gcc.mk
  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
  * config/linux/sunpro.mk
  * config/sunos/gcc.mk
  * config/sunos/sunpro.mk
  * config/instsh.mk
    * 'false' -> '$(FALSE)' for shell independence.
2010-06-17 17:30:41 +00:00
Viktor Szakats
43d25e7367 2010-06-17 19:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/mingwarm.mk
  * config/wce/msvcarm.mk
  * config/win/mingw.mk
  * config/win/icc.mk
  * config/win/cygwin.mk
  * config/win/msvc.mk
    ! Removed delete command which was called when $(AR) command failed.
        (usually: '|| $(RM) $(subst /,$(DIRSEP),$(LIB_DIR)/$@)')
     This fixes three issues:
      - It won't force GNU Make into using cmd shell (in fact temporary batch file)
        to execute these commands, thus it won't hit cmd shell length limitations
        on NT and W2K systems (maybe Win9x also? TOCHECK).
      - Build process will properly stop in case $(AR) (lib assembly) command
        fails, instead of deleting the wrong lib and continuing with the build.
        Best would be to delete it and fail, but I found no clean way to do this.
      - This incorrect variation is no longer used: '|| $(RM) $(LIB_DIR)/$@'
        (pathsep conversion is missing)
     NOTE: If someone can recommend a way to fail the build after deleting 
           the partial lib, all above logic can be reintroduced, but in this 
           case the lib creation cmds need to be rewritten like mingw to 
           avoid long cmdline lengths.
           IOW I'm looking for a win shell equivalent of this sequence:
              AR_RULE = $(AR) ... || ( $(RM) ... && **false** )
           where **false** is something which creates no output and returns
           non-zero errorlevel.

  * ChangeLog
    + More explanation to prev log entry.
2010-06-17 17:04:00 +00:00
Pritpal Bedi
aa06830f8d 2010-06-17 09:18 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/setup.ui
  * contrib/hbide/resources/setup.uic
    + Added: few more fields.
2010-06-17 16:23:44 +00:00
Viktor Szakats
bdd719f974 2010-06-17 17:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/bsd/gcc.mk
  * config/bsd/clang.mk
  * config/wce/mingwarm.mk
  * config/wce/poccarm.mk
  * config/wce/msvcarm.mk
  * config/hpux/gcc.mk
  * config/darwin/icc.mk
  * config/dos/watcom.mk
  * config/dos/djgpp.mk
  * config/win/xcc.mk
  * config/win/mingw.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/watcom.mk
  * config/win/icc.mk
  * config/win/cygwin.mk
  * config/win/msvc.mk
  * config/linux/watcom.mk
  * config/linux/icc.mk
  * config/os2/watcom.mk
  * config/os2/gcc.mk
    * Functions renamed.
2010-06-17 15:28:31 +00:00
Viktor Szakats
526e5e3828 2010-06-17 17:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/mingwarm.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
    + Added support for host systems with shorter cmdline limits
      (in lib creation command). F.e. on WinW2K or WinNT.

  * config/win/cygwin.mk
    ! Fixed delete command on 'ar' failure to work on native 
      Windows shell.
2010-06-17 15:10:16 +00:00
Viktor Szakats
5e35488ccc 2010-06-17 15:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* tests/wvtext.prg
    * Updates. Formatting. Show msgbox when MT is not present.

  * contrib/hbxbp/Makefile
    + Enabled for mingw64.

  * contrib/hbxpp/xppop.prg
  * contrib/hbxpp/xppopc.c
    + Added Xbase++ compatible operator overloading for $ on arrays.
2010-06-17 13:37:58 +00:00
Przemyslaw Czerpak
9cc47dbdc2 2010-06-17 13:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/harbinit.prg
  * harbour/src/vm/runner.c
  * harbour/src/vm/hvm.c
    ! fixed the order in which HVM calls __SetHelpK() PRG function.
      It should be called after all INIT proc and before main application
      entry.
    * removed __SetHelpK() from thread initialization code.
    ! fixed the order in which INIT procedures are executed in single
      module - CA-Cl*pper calls INIT PROCEDUREs in the reverted order
      (from last to first)
    + added support for undocumented Clipper extension: two execution
      levels of INIT PROCEDUREs. When application starts CA-Cl*pper
      executes INIT PROCEDUREs called CLIPINIT from all linked PRG
      modules. Then it repeats this operation for all modules executing
      all other PROCEDUREs.

      Now Harbour and Clipper gives the same results for this code:
         proc main()
            ? PROCNAME()
         proc errorsys()
            ? PROCNAME()
         init proc INITPROC1()
            ? PROCNAME()
         init proc clipinit()
            ? PROCNAME()
         init proc INITPROC2()
            ? PROCNAME()
         proc __SetHelpK()
            ? PROCNAME()
         proc HELP()
2010-06-17 11:11:52 +00:00
Viktor Szakats
fb5241c566 2010-06-17 07:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_common.hbm
  * contrib/hbqt/detect.mk
    + Enabled for mingw64.

  * src/rtl/inkey.c
    - Deleted recently added HB_KEYLAST()/HB_KEYNEXT().
    - Deleted dirty/hidden parameter extension from LASTKEY().
    - Deprecated NEXTKEY() dirty/hidden extension by HB_LEGACY_LEVEL3.
2010-06-17 05:49:05 +00:00
Viktor Szakats
02b3147fd5 2010-06-17 00:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* tests/wvtext.prg
    + Extended with tests for row resize.
    + Added visual feedback for resize event.

  * config/global.mk
    ! Typo after last changes making HB_BUILD_PKG ineffective.
  * INSTALL
    * Minor.
2010-06-16 22:19:48 +00:00
Viktor Szakats
b50ea8e77e 2010-06-16 21:09 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/extend.api
  * include/hbapi.h
    + Disabled IS*() macros when HB_LEGACY_TYPES_OFF is defined
      (default when building Harbour)

  * src/pp/pplib.c
  * src/rtl/hbregex.c
  * src/rtl/dateshb.c
  * contrib/xhb/xhbfunc.c
  * contrib/rddads/rddads.h
    ! Fixed IS*() -> HB_IS*()

  * src/rtl/hbregex.c
  * contrib/hbmysql/mysql.c
  * contrib/xhb/xhbsave.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbfbird/firebird.c
  * contrib/hbnetio/netiosrv.c
  * contrib/rddads/rddads.h
  * contrib/rddads/adsmgmnt.c
  * contrib/rddads/adsfunc.c
  * contrib/hbmisc/hb_f.c
  * contrib/hbmisc/ffind.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/wapi_shellapi.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/hbssl.c
  * contrib/hbssl/sslctx.c
    % Optimized to use hb_parn*def() calls instead of inline-if expression
      (where default value is constant or simple variable).

  * INSTALL
    + valgrind is available for darwin-amd64 (in 1.6 devel tree, yet).
2010-06-16 19:10:22 +00:00
Viktor Szakats
290317ac9f 2010-06-16 19:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbzlibgz.c
  * src/rtl/fstemp.c
  * src/rtl/at.c
  * src/rtl/strtran.c
  * src/rtl/hbinet.c
  * src/rtl/saverest.c
  * src/rtl/diskspac.c
  * src/rtl/philes.c
  * src/rtl/mlcfunc.c
  * src/rtl/disksphb.c
  * src/rtl/shadow.c
  * src/rtl/trace.c
  * src/rtl/ati.c
  * src/rtl/hbstrsh.c
    % Optimized to use hb_parn*def() calls instead of inline-if expression 
      (where default value is constant or simple variable).
    % Optimized out few HB_ISNUM() calls where the default value was zero.
      Also added comment to signal the intention.

  * src/rtl/inkey.c
    + Added two TOFIXes to LASTKEY() and NEXTKEY() after having discovered 
      two hidden (dirty) parameter extensions over original Clipper 
      implementation, both added here in Harbour in year 2001. [ I didn't 
      test if it's undocumented Clipper function, but there is no such 
      indication in past log enties, plus even in this case it would have 
      to be marked with HB_CLP_UNDOC. They are also not Xbase++ extensions. ]
    + Added HB_KEYNEXT(), HB_KEYLAST() functions which implement original 
      NEXTKEY()/LASTKEY() functionality plus the extension.
      Pls correct me if I'm wrong, but after reading all related log entries 
      I could not find out why the default of the optional parameter is 
      _SET_EVENTMASK in NEXTKEY(), but INKEY_ALL in LASTKEY(). It was changed 
      as part of big change, here: 2004-10-11 21:40 UTC+0100 Przemyslaw Czerpak
    ; I intend to deprecate the dirty extensions and finish adding the two 
      new Harbour specific function, which we're free to extend.

  * contrib/xhb/dumpvar.prg
    ! Fixed recent typo.

  * INSTALL
    * Updated tdm website.
2010-06-16 18:08:04 +00:00
Pritpal Bedi
6eb4738022 2010-06-16 09:56 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/hbide.png
  * contrib/hbide/hbide.ico
    % Changed: hbide icon to Harbour's logo.

  * contrib/hbide/ideharbourhelp.prg
  * contrib/hbide/idesaveload.prg
    ! Fixed: a rare occured GPF reported by Itamar.
2010-06-16 17:12:11 +00:00
Viktor Szakats
b902dbd19a 2010-06-16 11:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/win/mingw.mk
    + Added (commented) support for -m32/-m64 options.
      This may be useful in the future f.e. for mingw tdm 4.5.0
      compiler which can build both 64 and 32-bit targets using
      the same compiler binaries.

  * config/global.mk
  * config/wce/mingwarm.mk
  * config/wce/poccarm.mk
  * config/wce/msvcarm.mk
  * config/win/xcc.mk
  * config/win/mingw.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/watcom.mk
  * config/win/cygwin.mk
  * config/win/msvc.mk
  * config/os2/watcom.mk
    + Changed to init RCFLAGS from global.mk.

  * config/global.mk
    + Added support for theoretical QNX cross-builds.

  * ChangeLog
    * Updated QNX TODO list.
2010-06-16 09:50:20 +00:00
Viktor Szakats
b49d0f87d1 2010-06-16 11:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    + Added HB_COMPILER autodetection for QNX. Minor optimization.
2010-06-16 09:14:42 +00:00
Viktor Szakats
cba71772cf 2010-06-16 11:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbcurl/hbcurl.c
    + Added all remaining known guards to HB_CURLOPT_* options, so in
      theory now f.e. even libcurl version 7.5.0 is supported.
    ! Fixed HB_CURLOPT_HTTPGET being disabled when building against
      libcurl < 7.14.1
    ! Fixed HB_CURLOPT_FTP_ACCOUNT being enabled at the wrong libcurl
      version.

  * mpkg_nightly.sh
    * Minor.

  * package/winuni/RELNOTES
    * Versions updated.
2010-06-16 09:03:18 +00:00
Viktor Szakats
eafd1fc161 2010-06-16 10:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ config/detplat.mk
  * config/global.mk
    + Last usage of $(eval) replaced with "quasi-function" call
      solution. It's less efficient, but now it should support
      GNU Make 3.79.
      NOTE: If someone has a better solution, or even a more optimal 
            version of this one, pls speak up!
    + Two usages of $(eval) replaced with GNU Make version agnostic
      solution. (in previous commit)
2010-06-16 08:15:17 +00:00
Viktor Szakats
81eb54e4d1 2010-06-16 09:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/detfun.mk
  * config/global.mk
    % Streamlined internal handling of HB_SRC_ROOTPATH value.
    + HB_SRC_ROOTPATH will now be conditioned before use:
       ending pathsep added, pathseps converted to forward
       slash, double slashes deleted.
    ! Fixed HB_BIN_COMPILE autodetection in PATH, $(realpath
      was not necessary, it only ruined already absolute paths
      which are likely to appear in PATH anyway.
    % Optimized HB_BIN_COMPILE autodetection in PATH to reuse
      function created for this purpose.
    ! Fixed GNU Make 3.81 version detection to work also with
      future GNU Make versions.
    + Added GNU Make 3.80 version detection. (unused, commented)
    % Deleted version guards from around $(eval) and $(info) calls:
      Unknown function calls will simply be ignored by
      GNU Make and empty string returned, so this is safe.
    % Force HB_BUILD_PKG off only if HB_SRC_ROOTPATH is not
      specified (and running < 3.81 GNU Make version).
    + Show warning when using < 3.81 GNU Make version and
      HB_SRC_ROOTPATH was not specified.
    + Falling back to using HB_SRC_ROOTPATH in all places where
      $(realpath) or $(abspath) calls are used in 3.81 version.
    ! Protected one $(realpath) with version guard.
    + Automatized how HB_VER_STATUS_SH is filled for final releases.
    ; NOTE: HB_SRC_ROOTPATH support is completely untested.
    ; TODO: If everything works as intended, now "only" $(eval)
            calls need some workaround to give full blown
            functionality also with 3.79 version of GNU Make.

  * config/instsh.mk
    ! Fixed to not use $(realpath) (and fail to install),
      when running under < 3.81 GNU Make.

  * utils/hbmk2/hbmk2.prg
  * config/global.mk
    * Changed to use 'wcc386' executable for watcom detection
      (was 'wpp386').

  * INSTALL
    + Minor updates regarding QT.
2010-06-16 08:02:11 +00:00
Pritpal Bedi
aa01501dcc 2010-06-15 19:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/setup.ui
  * contrib/hbide/resources/setup.uic
  * contrib/hbide/hbide.ch
  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/idesaveload.prg
  * contrib/hbide/idestylesheets.prg
    + Implemented: OS system themes via "Setup" dialog.
      Animation mode and system theme ( both settable via "Setup" )
      are remembered for next run. Please do not set "macintosh" theme
      on windows machines, it GPF's.

    % Enhanced: "Setup" dialog with fields to hold settings for 
      variety of actions. Please have a look into them and propose more.
      Currently only Theme and Animation mode, two actions are active 
      in real-time.
2010-06-16 02:08:07 +00:00
Viktor Szakats
36b4bd96d4 2010-06-15 20:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * config/detfun.mk
  * config/global.mk
    * HB_ROOT -> HB_SRC_ROOTPATH
      Renamed to not have such obvious and short name and not 
      to collide with build-in hbmk2 macro with the same name.
2010-06-15 18:40:15 +00:00
Viktor Szakats
b88202cabe 2010-06-15 18:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * config/global.mk
  * config/detfun.mk
  * config/detect.mk
  * external/sqlite3/Makefile
  * external/png/Makefile
  * external/jpeg/Makefile
  * external/bzip2/Makefile
  * external/libhpdf/Makefile
  * contrib/hbsqlit3/Makefile
  * contrib/hbmzip/Makefile
  * contrib/hbbz2/Makefile
  * contrib/hbhpdf/Makefile
  * contrib/sddsqlt3/Makefile
  * contrib/hbwin/Makefile
    + Added HB_ROOT variable which can be used to specify Harbour
      source tree root as an absolute directory, when using
      older than 3.81 GNU Make version (f.e. on QNX).
    + Changed the way locally hosted source directories are
      specified for detection function, in order to support
      HB_ROOT functionality.
2010-06-15 16:44:38 +00:00
Viktor Szakats
aedb632e4a 2010-06-15 18:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added Mac OS X QT pkg recommended link.

  * ChangeLog
    * Updated list of pending issue on QNX system.

  * contrib/hbmysql/mysql.c
    ! Fixed version guard around mysql_get_server_version() call
      to check against the documented version number this
      function appeared.

  * utils/hbmk2/hbmk2.prg
    ! Fix for *nix filename escaping code.
    ! Fixed to escape and decorate filename in entry function
      detection external call using nm tool.
    ; Patches by Tamas Tevesz.
2010-06-15 16:08:38 +00:00
Pritpal Bedi
5975c99d17 2010-06-15 08:33 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/resources/setup.ui
    + Added few more settings.

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/idestylesheets.prg
    ! Refined: editor tabs, splitters, etc.
    ! Refined: animation style confirming to uniformity.
2010-06-15 15:39:23 +00:00
Viktor Szakats
f35793fede 2010-06-15 16:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbcurl/hbcurl.c
    ! Fixed to build against very old libcurl versions.
    % Using hb_parnldef().
    ! Fixed few guards being off by one minor version.
2010-06-15 14:34:58 +00:00
Viktor Szakats
bdcde409a9 2010-06-15 13:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/xhbfs.c
    ! Fixed ISDIRECTORY() to work like originally intended.
      This effectively reverts breakage caused by this change:
        2009-07-06 10:06 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
          * source/rtl/file.c
          * Changed IsDirectory to fix IsDirectory( "\\machine\c" ) style call
            under windows platforms.
      BTW, in Harbour to achieve above effect, you can use
      native HB_DIREXISTS( "\\machine\c" ) function call.
2010-06-15 11:38:31 +00:00
Viktor Szakats
0be7b7bcb5 2010-06-15 13:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
    ! Deleted references to hbcc, hbcmp, hblnk. They still work,
      and they still can be readded as links if someone finds them
      necessary. As a general direction for most users though it's
      preferred to use hbmk2 as-is.
    * Updated help text. (pls fix it further, it's not perfect)

  * contrib/hbcomm/hbcomm.prg
    + OUTCHR() smartened to use a loop until failure or the whole
      data is transmitted. As suggested by Mindaugas.
2010-06-15 11:07:26 +00:00
Przemyslaw Czerpak
a7be129b2f 2010-06-15 12:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/xhbcomp.prg
  * harbour/contrib/xhb/xhbmsgs.c
    + added emulation for some xHarbour extensions in ==, = and !=
      operators.
         <block> == <block>
         <hash> = <hash>      // it does not work correctly in xHarbour
         <hash> != <hash>
2010-06-15 10:57:10 +00:00
Przemyslaw Czerpak
73a06f6c8f 2010-06-15 12:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
  * harbour/include/hbvmpub.h
  * harbour/src/common/expropt1.c
  * harbour/src/common/expropt2.c
  * harbour/src/common/hbstr.c
  * harbour/src/compiler/gencc.c
  * harbour/src/vm/hvm.c
  * harbour/src/vm/itemapi.c
  * harbour/src/vm/task.c
  * harbour/src/rtl/abs.c
  * harbour/src/rtl/hbdyn.c
  * harbour/src/rdd/dbsql.c
  * harbour/contrib/hbwin/olecore.c
  * harbour/contrib/sddoci/sddoci.c
  * harbour/contrib/sddsqlt3/sddsqlt3.c
    * renamed HB_LONG_{MIN,MAX} to HB_VMLONG_{MIN,MAX} and
      HB_INT_{MIN,MAX} to HB_VMINT_{MIN,MAX} to not confuse users
      after renaming HB_LONG to HB_MAXINT and LONG to HB_LONG.
      They could expect that HB_LONG_{MIN,MAX} are for HB_LONG type.
2010-06-15 10:00:45 +00:00