Commit Graph

1192 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
215e18e9bd 2008-08-13 05:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/ppcore.c
  * harbour/source/pp/hbpp.c
  * harbour/source/vm/itemapi.c
  * harbour/source/vm/hvm.c
  * harbour/source/common/hbver.c
  * harbour/source/macro/macrolex.c
  * harbour/source/hbpcre/pcrecomp.c
  * harbour/source/compiler/hbpcode.c
  * harbour/contrib/hbmisc/spd.c
  * harbour/contrib/hbsqlit3/sqlite3/sqlite3.c
    * pacified warnings

  * harbour/config/w32/dm.cf
    * updated to work with SHELL env
    - comment -w7 switch
2008-08-13 03:31:00 +00:00
Viktor Szakats
9baaa07952 2008-08-13 01:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
     * Extended releases notes/issues section.

   * config/w32/dm.cf
     ! Fixed to exclude "possible extraneous ';'" warnings 
       for every for()/while()/etc constructs with an empty body.
     ! Further fixes to link/lib rules.
     ; TOFIX1: odbc.c, gtwvg.c still don't compile.
     ; TOFIX2: Harbour executables won't run, by simply doing nothing.

   * source/rtl/gtwvt/gtwvt.c
     ! Fixed to compile with __DMC__.
     ; NOTE: Przemek, could you please check these?

   * include/hbsetup.h
     ! snprintf() for __DMC__.
     
   * contrib/hbw32/dllcall.c
     ! Fixed casting for __DMC__.

   * contrib/hbsqlit3/hbsqlit3.c
     ! Workaround for Pelles C 4.5 and Open Watcom, so that 
       sqlite3.c won't be included for these compilers.
       Pelles C 4.5 crashes, Open Watcom 1.7 goes into an 
       infinite loop on this huge file. For thes compilers 
       the sqlite3 library should be supplied by the users.

   * contrib/hbapollo/apollo.c
     ! Fixed to compile with Open Watcom.

   * source/vm/mainwin.c
   * source/vm/hvm.c
     ! Fix for __DMC__ startup problem:
       'OPTLINK : Warning 134: No Start Address'
2008-08-12 23:12:36 +00:00
Viktor Szakats
0bb563286e 2008-08-11 15:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* config/sunos/gcc.cf
     ! Fixed to include required system libs for hbinet.c.
     - Removed HB_OS_SUNOS command-line macro. Now relying on 
       autodetection.

   * include/hbsetup.h
     * Extended autodetection for HB_OS_SUNOS.

   * source/vm/itemapi.c
     ! Fixed to check for HB_OS_SUNOS macro after 
       including Harbour headers.
2008-08-11 14:01:13 +00:00
Przemyslaw Czerpak
37b2c8bbd7 2008-08-09 18:07 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/extrap.c
    * use static buffer for signal alternative stack so it will not
      have to be deallocated for clean application exit
2008-08-09 16:08:04 +00:00
Przemyslaw Czerpak
95a9271e8d 2008-08-09 17:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/runner.c
    ! fixed HB_HRBGETFUNSYM() to respect only function symbols
2008-08-09 15:55:31 +00:00
Viktor Szakats
cc57d998b6 2008-08-09 17:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
   * include/hbextern.ch
   * source/vm/runner.c
     - Completely removed __HRBDOFU(). Users should use DO() instead.
2008-08-09 15:52:42 +00:00
Przemyslaw Czerpak
c832638c53 2008-08-09 17:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/extrap.c
    * deallocate alternative signal stack on exit
      TOFIX: hb_vmSetExceptionHandler() / hb_vmUnsetExceptionHandler()
             cover only part of hb_vmInit() and not hb_vmQuit(). Their
             calls should be moved to external places where both
             hb_vmInit() and hb_vmQuit() are executed.

  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    ! fixed to not respect bitmap filters when structural order
      is scanned, f.e. in OrdListAdd() with active bitmap filter.
2008-08-09 15:32:06 +00:00
Viktor Szakats
574c4116b8 2008-08-09 16:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
     * Refinement to HB_OS_DARWIN autodetection.
       Thanks Przemek.

   * doc/whatsnew.txt
   * include/hbextern.ch
   * source/vm/runner.c
     * Refinements to previous commit.
       HB_HRBGETSYMBOL() -> HB_HRBGETFUNSYM()
       HB_HRBDOSYMBOL()  -> deleted
     * __HRBDOFU() made equivalent to __HRBDO()
2008-08-09 15:00:36 +00:00
Viktor Szakats
8e01405ad7 2008-08-09 11:43 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
   * bin/hb-mkslib.sh
     ! Changed the way harbour.dylib is created on Darwin systems 
       to support universal builds. Please review and test.
     ! Fixed generating links for .dylibs on Darwin.
     ! Removed one excessive 'cd "${OTMPDIR}"' command.
       (I hope this is right)
     ! Removed previously added $(L_USR) from Darwin dynamic 
       lib creation command line, as the L_USR "-arch" flags 
       (and probably others) cannot work here.
     ; TOFIX: 'ld: library not found for -lharbour' is still 
              present.

   * include/hbsetup.h
     + Added autodetection for HB_OS_DARWIN (based on __APPLE__).

   * config/darwin/gcc.cf
     ! Not forcing HB_OS_DARWIN from the command-line, 
       we're relying on the autodetection.

   * source/rtl/hbzlib.c
   * include/hbextern.ch
   * doc/whatsnew.txt
     * Harbour level functions renamed:
       HB_COMPRESS      -> HB_ZCOMPRESS     
       HB_COMPRESSBOUND -> HB_ZCOMPRESSBOUND
       HB_UNCOMPRESS    -> HB_ZUNCOMPRESS   
       HB_UNCOMPRESSLEN -> HB_ZUNCOMPRESSLEN
       This is to avoid collision with xhb functions 
       with similar name but different parameter list.
       Please modify your programs to use the new interface.
       INCOMPATIBLE.

   * utils/hbextern/hbextern.prg
     * Disabled scanning C HB_FUNC functions in .prg files.
     * Minor formatting.

   * include/hbapigt.h
     ! Minor cosmetic.

   * source/vm/runner.c
   * include/hbextern.ch
   * doc/whatsnew.txt
   * contrib/examples/hscript/hscript.prg
   * utils/hbrun/hbrun.prg
     * Harbour level functions renamed:
       __HRBRUN    -> HB_HRBRUN
       __HRBLOAD   -> HB_HRBLOAD
       __HRBDO     -> HB_HRBDO
       __HRBUNLOAD -> HB_HRBUNLOAD
       __HRBGETFU  -> HB_HRBGETSYMBOL
       __HRBDOFU   -> HB_HRBDOSYMBOL
       .hrb API functions moved to the documented namespace.
       Old function names still function, but are deprecated.
       Please modify your programs to use the new interface.
     ; NOTE: HB_DBG_*() function should I believe correctly 
             named as __DBG*(), as they are indeed internal 
             functions, not meant to guaranteed for final apps.
             We should do this cleanup in the future.

   * tests/Makefile
   - tests/spawn.prg
   - tests/spawn2.prg
     ! Removed two obsolete tests.
2008-08-09 09:59:09 +00:00
Przemyslaw Czerpak
15c63104c7 2008-08-06 13:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
  * harbour/source/vm/hvm.c
  * harbour/source/rtl/hbgtcore.c
    * added const to s_defaultGT and s_pszLinkedMain declarations
    * make s_pszLinkedMain visible and functional for platforms
      which does not use HARBOUR_START_PROCEDURE

  * harbour/source/vm/extrap.c
    + added exception trap for SIGSEGV, SIGILL, SIGFPE and SIGBUS
      for *nixes which support sigaltstack()

  * harbour/include/hbwmain.c
  * harbour/source/vm/mainwin.c
    * use of WinMain() from hbwmain.c

  * harbour/source/pp/pplib.c
    * ignore all #pragma directives setting compiler switches instead
      of generating RT error when user uses PP in .prg code by __PP_*()
      functions

  * harbour/source/Makefile
  + harbour/source/hbextern
  + harbour/source/hbextern/hbextern.prg
  + harbour/source/hbextern/Makefile
  * harbour/common.mak
  * harbour/make_b32.mak
  * harbour/make_gcc.mak
  * harbour/make_vc.mak
  * harbour/make_vcce.mak
  * harbour/bin/hb-func.sh
    + added hbextern library
    + added hbextern to harbour shared library. Now all functions
      are registered and visible for dynamically linked applications
      not only .prg ones and .c functions explicitly bound with some
      .prg code

  * harbour/utils/hbrun/Makefile
  * harbour/utils/hbrun/hbrun.prg
    * use hbextern library instead of #include "hbextern.ch"
      It has no noticeable effect on static builds but greatly
      reduce the size of dynamic builds, f.e. current hbrun
      linked dynamically in my Linux box has 12KB.
2008-08-06 11:10:24 +00:00
Viktor Szakats
ecbbead164 2008-08-05 23:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/errorint.c
   * source/vm/estack.c
   * source/vm/hvm.c
   * source/vm/extrap.c
     + Added filename to stack traces. Someone please review me.
       Also, pls test if it compiles cleanly with OS/2.
2008-08-05 21:47:58 +00:00
Przemyslaw Czerpak
93cc5f1aa0 2008-08-05 15:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/postinst.sh
    * added workaround for wrongly detected harbour root path in some
      environments

  * harbour/source/vm/extrap.c
    * minor modification
2008-08-05 13:23:52 +00:00
Przemyslaw Czerpak
ae38cda440 2008-08-04 13:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/console.c
  * harbour/source/rtl/box.c
  * harbour/source/rtl/errorapi.c
  * harbour/source/rtl/do.c
  * harbour/source/rtl/filesys.c
    * cleaned warnings

  * harbour/source/vm/runner.c
    * respect references in parameters passed to init and startup
      functions
2008-08-04 11:27:57 +00:00
Przemyslaw Czerpak
29b52145d1 2008-08-01 03:06 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbexprb.c
  * harbour/source/pp/ppcore.c
  * harbour/source/vm/evalhb.c
  * harbour/source/vm/runner.c
  * harbour/source/vm/hvm.c
  * harbour/source/vm/fm.c
  * harbour/source/vm/eval.c
  * harbour/source/vm/dynlibhb.c
  * harbour/source/vm/classes.c
  * harbour/source/rdd/hbsix/sxord.c
  * harbour/source/compiler/hbmain.c
  * harbour/source/compiler/harbour.y
    * pacified warnings
2008-08-01 01:06:47 +00:00
Przemyslaw Czerpak
0891ca7ddc 2008-07-31 17:41 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
    + adding 2-nd parameter to __clsGetProperties()
      When it's TRUE then __clsGetProperties() returns also exported
      messages which have corresponding assign messages (with "_" prefix)

  * harbour/source/rtl/objfunc.prg
    + added __objGetProperties( oObject, [ lAllExported = .F. ] ) ->
                  aMsgAndValues
      This function returns list of PROPERTY message with their values,
      when 2-nd parameter is true it also returns exported messages which
      which have corresponding assign messages (with "_" prefix)
      This function is designed to use in object inspectors.
2008-07-31 15:42:00 +00:00
Przemyslaw Czerpak
3d4a97040b 2008-07-17 18:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbw32/dllcall.c
    * minor cleanup in return values

  * harbour/contrib/hbole/ole2.c
    * cleaned casting in UNICODE conversions

  * harbour/source/common/expropt2.c
    * replicate CA-Cl*pper compile time optimization bugs:
         "" $ <literString>         => .T.
         AT( "", <literString> )    => 1
         CHR( 256 )                 => ""
      only when Harbour extensions (-kh) are not enabled, f.e.
      in strict Clipper compatibility mode (-kc)

  * harbour/utils/hbtest/rt_hvma.prg
  * harbour/utils/hbtest/rt_str.prg
    * updated to test Clipper and Harbour compile time modes in
      the above situations

  * harbour/common.mak
  * harbour/source/rtl/Makefile
  - harbour/source/rtl/strings.c
  * harbour/source/common/hbstr.c
    * moved hb_strEmpty() from RTL to COMMON library

  * harbour/include/hbexprb.c
  * harbour/include/hbexprop.h
  * harbour/source/common/expropt2.c
    + added compile time optimization for EMPTY() function
    ; removed 'TODO: empty optimization' note

  * harbour/source/rtl/itemseri.c
    % compress trailing spaces during string item serialization

  * harbour/include/hbapi.h
  * harbour/source/vm/hashes.c
    + added hb_hashAddNew() - works like hb_hashAdd() but it adds item
      only if new key is used

  * harbour/source/vm/hvm.c
    * use hb_hashAddNew() instead of hb_hashAdd() for HB_P_HASHGEN
      I cannot revert the order of hash item during compilation because
      it will also change the order of user expression evaluation.
2008-07-17 16:28:11 +00:00
Przemyslaw Czerpak
38fd033e77 2008-07-11 17:33 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbedit.ch
  * harbour/source/rtl/dbedit.prg
    + added support for undocumented Clipper DE_APPEND mode - code
      covered by HB_C52_UNDOC
    % ignore K_MOUSEMOVE events to avoid flickering just like CA-Cl*pper
      does
    + added support for cell positioning with mouse left key - CL53
      compatible behavior covered by HB_COMPAT_C53 macro
    * changed static function name dbEditCallUser() to CallUser() for
      strict Clipper compatibility - some user function code may check
      PROCNAME()
    * some minor optimizations and fixes

  * harbour/contrib/hbmzip/hbmzip.c
    * indenting

  * harbour/source/vm/hvm.c
    * formatting
2008-07-11 15:33:41 +00:00
Przemyslaw Czerpak
ee2b31438d 2008-07-10 20:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/macro.c
    ! fixed RT error when invalid symbol string is precompiled
2008-07-10 18:59:47 +00:00
Przemyslaw Czerpak
130d897627 2008-07-09 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdate.h
  * harbour/source/common/hbdate.c
    + added hb_timeStampEncode()

  * harbour/include/hbapifs.h
  * harbour/source/rtl/filesys.c
    + added hb_fsSetFileTime()
    + added POSIX file attributes with some macros to convert Harbour
      definitions into OS ones.
    + added initial version of hb_fsSetAttr() - work in progress, I should
      finish it in the evening.

  * harbour/contrib/hbmzip/hbmzip.c
    * added setting file attribute in DJGPP builds
    ! fixed some small typos in OS2 builds reported by David

  * harbour/source/vm/fm.c
    * changed hb_xrealloc() to be ANSI-C realloc() compatible
2008-07-09 09:57:33 +00:00
Przemyslaw Czerpak
6284f1b991 2008-07-08 02:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/runner.c
    + added support for passing non string parameters to .HRB INIT/<main>
      procedures/function
    + added automatic destructors for .HRB modules
    ; TOFIX: add protection against possible double executing of
      EXIT procedures in .HRB modules in HVM quit phase
2008-07-08 00:27:14 +00:00
Viktor Szakats
48d11d426d 2008-07-07 19:32 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/arrayshb.c
   * contrib/xhb/xhbfunc.c
     ! Moved hb_ArrayID() Harbour level function to xhb.lib.
     ; NOTE: This function is not compatible with x64 architecture.
2008-07-07 17:33:41 +00:00
Viktor Szakats
f3d708b0ae 2008-07-07 17:41 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     ! Warning fixed.

   * contrib/hbmysql/mysql.c
   * contrib/hbmysql/tmysql.prg
     ! sqlListF() return value changed to pointer from numeric.
       Now compatible with Win64.
       INCOMPATIBLE.

   * contrib/hbw32/w32_prn.c
     ! Warning suppressed (pointer to BOOL conversion).

   * contrib/hbw32/dllcall.c
   * contrib/hbhpdf/harupdf.c
   * contrib/hbfimage/fi_winfu.c
   * contrib/hbgf/hbgfw32/win32.c
     ! Fixed several pointer (handle) passings to be 64bit compatible.

   * contrib/hbw32/w32_reg.prg
     * Minor formatting.

   ; TOFIX: There are still some PellesC 64bit warnings to be fixed.
     (posted separately)
2008-07-07 15:42:50 +00:00
Viktor Szakats
26d8b173eb 2008-07-01 21:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     ! Excluded GPF dumping code for Win64 and WinCE.
2008-07-01 19:26:50 +00:00
Viktor Szakats
edc33edcfd 2008-07-01 20:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     ! Fixed MSVC error in new code.
2008-07-01 18:49:47 +00:00
Przemyslaw Czerpak
014b39ca7b 2008-07-01 16:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour-ce-spec
  * harbour/harbour-w32-spec
    * define whole contrib library list for new contrib/Makefile
    + added header files to respect differences between platform
      native and Windows only headers

  * harbour/harbour.spec
    * define whole contrib library list for new contrib/Makefile
    * divided libraries which needs external references into
      separated packages
    ! removed unnecessary dependences in binaries rebuild in shared
      mode

  * harbour/contrib/hbodbc/odbc.c
    * pacified warnings
    % minor optimization

  * harbour/contrib/hbcurl/hbcurl.c
  * harbour/contrib/hbfbird/firebird.c
  * harbour/source/vm/extrap.c
    * casting to pacify warnings

  * harbour/contrib/gtwvg/gtwvg.c
    ! fixed pointer comparison - C uses different precedence for !
      operator then Clipper/xbase

  * harbour/source/rtl/hbinet.c
    ! fixed GPF HB_INET[GS]ET{SND,RCV}BUFSIZE() when wrong
      socket parameter is passed. Please remember that after
      RT error the control is returned to application.
    % removed any hardcoded limits for size of data passed in
      single read/write call during normal stream operations
    - removed iSndBufSize/iRcvBufSize
2008-07-01 14:28:30 +00:00
Viktor Szakats
b1118f3481 2008-06-30 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
   * source/rtl/set.c
   * source/vm/fm.c
     ! Fixed _SET_HBOUTLOG, _SET_HBOUTLOGINFO handling in fm.c.
       hb_setget*() functions cannot be used here as the set 
       system is deinited at this point. So local buffers are 
       holding the values.
2008-06-30 09:28:58 +00:00
Viktor Szakats
ef1453cbce 2008-06-28 11:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     + Added Windows GPF detailed information dump (with some 
       modifications) provided by Mindaugas Kavaliauskas.
       Many thanks.
     ; It would be very nice to have similar for Linux, OS/2, 
       Darwin.
2008-06-28 09:19:43 +00:00
Viktor Szakats
e7f78f1985 2008-06-28 08:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
   * include/hbset.h
   * source/rtl/set.c
   * source/vm/fm.c
   * source/vm/extrap.c
     + Added: Set( _SET_HBOUTLOGINFO[, <cValue>] ) -> <cOldValue>
       Default value: ""
       This user defined text will be included in each hb_out.log 
       messages. This way it's possible to include custom information 
       in these entries to help identify and locate them.
     ! Fixed a few string not marked with HB_I_() translation 
       marker.
2008-06-28 06:59:37 +00:00
Viktor Szakats
66ffe8d97e 2008-06-20 21:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     + Refreshing whole screen after palette change.
       This replaces the previous method which had some 
       side effects.

   * source/vm/fm.c
   * source/vm/extrap.c
     * Changed "Harbour" to "Application" in user visible 
       screen/log messages.

   * contrib/hbwhat32/_winfont.c
     ! Fixed typo in previous commit.
2008-06-20 19:19:00 +00:00
Viktor Szakats
9f76180566 2008-06-16 01:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/set.ch
   * include/hbset.h
   * source/rtl/set.c
   * source/vm/fm.c
   * source/vm/extrap.c
     + Added: Set( _SET_HBOUTLOG[, <cFileName>] ) -> <cOldFileName>
       Default value: "hb_out.log"
       This replaces hb_fm.log and hb_ex.log, and makes it possible 
       for the applications to control the filename where these 
       internal Harbour outputs are written to.

   * source/rtl/gtwvt/gtwvt.c
     % Minor redundancy removed.
2008-06-15 23:48:53 +00:00
Viktor Szakats
d8654833af 2008-06-15 23:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/memvars.c
     * Minor format.

   * contrib/hbmzip/hbmzip.c
     * Minor cleanups.

   * contrib/hbtip/tests/httpadv.prg
   * contrib/hbtip/tests/dnldftp.prg
   * contrib/hbtip/tests/upld_ftp.prg
   * contrib/hbtip/tests/tipmail.prg
   * contrib/hbtip/tests/loadhtml.prg
   * contrib/hbtip/tests/ftpadv.prg
     * Changed to compile in Harbour.
2008-06-15 21:11:36 +00:00
Viktor Szakats
11aa4eb482 2008-06-14 09:13 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbbmcdx/bmdbfcdx1.c
   * contrib/hbct/ctnet.c
   * contrib/hbct/pos2.c
   * contrib/hbgf/gtk/creabutt.c
   * contrib/hbgf/gtk/creawin.c
   * contrib/hbgt/bitflags.c
   * contrib/hbmisc/stringsx.c
   * contrib/hbtip/encmthd.c
   * contrib/hbtip/utils.c
   * contrib/hbw32/w32_ole.c
   * contrib/hbwhat32/_wincdlg.c
   * contrib/hbwhat32/_winclpb.c
   * contrib/hbwhat32/_wintree.c
   * contrib/rddads/ads1.c
   * contrib/xhb/xstrdel.c
   * source/rdd/dbcmd.c
   * source/rdd/dbf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/dbffpt/dbffpt1.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/delim1.c
   * source/rdd/hbsix/sxsem.c
   * source/rdd/sdf1.c
   * source/rdd/workarea.c
   * source/rtl/alert.prg
   * source/rtl/errorsys.prg
   * source/rtl/gtcrs/gtcrs.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtsln/gtsln.c
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtxwc/gtxwc.c
   * source/rtl/hbgtcore.c
   * source/rtl/hbregex.c
   * source/vm/cmdarg.c
   * source/vm/dynsym.c
     ! LUPDATE() buffer overread fixed. (hb_retds(""))
     % hb_itemPutC*()/hb_retc*()/hb_errInternal() "" parameter -> NULL
       NOTE: gtwvg not changed.
     * Few minor cleanups.
     * Some formatting in ads1.c.
       (verified to result in no actual codeflow change)
     ; TODO: hb_retc( NULL ) -> hb_retc_null()
2008-06-14 07:19:56 +00:00
Viktor Szakats
e708033e0e 2008-06-13 19:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.h
   * source/rtl/gtwvt/gtwvt.c
   * tests/wvtext.prg
     + Added hb_gtInfo( HB_GTI_SELECTCOPY, <cMenuText> )
       to set the menu text ("Mark and Copy" on startup).
       cMenuText mustn't be zero length. Setting the menu text 
       also enables select&copy automatically. The call 
       will return the previously set menu text. To get 
       the menu text without setting a new one, use: 
       hb_gtInfo( HB_GTI_SELECTCOPY, "" )
       This is good if someone wants to adapt the menu 
       text to the OS's or app's language.

   * doc/en/hb_apiit.txt
   * include/hbapi.h
   * include/hbapiitm.h
   * source/rtl/gtwin/gtwin.c
   * source/rtl/hbgtcore.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtwvt/gtwvt.c
   * source/vm/macro.c
   * source/vm/debug.c
   * source/vm/itemapi.c
   * source/vm/hvm.c
   * source/vm/arrays.c
   * source/vm/extend.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/sdf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/delim1.c
   * source/rdd/dbf1.c
   * source/rdd/dbffpt/dbffpt1.c
   * contrib/hbw32/w32_ole.c
   * contrib/gtwvg/gtwvg.c
   * contrib/rddads/ads1.c
   * contrib/hbmisc/spd.c
   * contrib/hbbmcdx/bmdbfcdx1.c
   * contrib/examples/rdddbt/dbfdbt1.c
     * I did a mistake in 1999 by giving the name hb_itemPutCPtr() 
       to the function which would have to be correctly named 
       hb_itemPutCLPtr() (notice the 'L' for 'length').
       So, now this was renamed to hb_itemPutCLPtr(), and stub was 
       added with the old name, and Harbour code was changed to use 
       the new one. I've also added hb_itemPutCPtr2() as a version 
       not requiring len parameter, the proper name would be hb_itemPutCPtr() 
       for this, but we cannot use without breakin compatiblity.

       IMPORTANT: I'd strongly suggest all 3rd parties to update 
       their code to use the call hb_itemPutCLPtr() instead of 
       hb_itemPutCLPtr().

       The final goal would be to have hb_itemPutCPtr() with two 
       parameters instead of the hakish looking hb_itemPutCPtr2().

       I'd welcome any opinions how to reach this goal. I didn't want to 
       break compatiblity with 3rd parties this time, but IMO we may do 
       it in 1.1, or even before 1.0.

     ! The above also fixes the (potential) problem when hb_retc_buffer()'s 
       szText parameter was evaluated twice if HB_API_MACROS was #defined.
2008-06-13 17:26:48 +00:00
Mindaugas Kavaliauskas
45669c5cc1 2008-06-10 19:10 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/vm/hashfunc.c
    * extended functionality of HB_HSet(), HB_HDel() and HB_HDelAt() 
      to return hash value
2008-06-10 16:08:57 +00:00
Viktor Szakats
6723c119b5 2008-06-10 11:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
     ! Fixed maximized window size.

   * contrib/hbw32/dllcall.c
     * Further cleanup.
     ! MessageBox()es converted to RTE calls.

   * contrib/hbcurl/hbcurl.c
   * contrib/rddads/ads1.c
   * contrib/rddads/adsfunc.c
   * source/rdd/dbcmd.c
   * source/rdd/dbcmd53.c
   * source/rdd/dbcmdx.c
   * source/rdd/dbsql.c
   * source/rdd/wafunc.c
   * source/rdd/workarea.c
   * source/rtl/abs.c
   * source/rtl/at.c
   * source/rtl/cdpapi.c
   * source/rtl/chrasc.c
   * source/rtl/copyfile.c
   * source/rtl/datec.c
   * source/rtl/dateshb.c
   * source/rtl/do.c
   * source/rtl/gtfunc.c
   * source/rtl/hbadler.c
   * source/rtl/hbbit.c
   * source/rtl/hbcrc.c
   * source/rtl/hbhex.c
   * source/rtl/hbinet.c
   * source/rtl/hbregex.c
   * source/rtl/hbregexc.c
   * source/rtl/hbrunfun.c
   * source/rtl/hbtoken.c
   * source/rtl/hbzlib.c
   * source/rtl/left.c
   * source/rtl/len.c
   * source/rtl/math.c
   * source/rtl/minmax.c
   * source/rtl/philes.c
   * source/rtl/philesx.c
   * source/rtl/replic.c
   * source/rtl/round.c
   * source/rtl/run.c
   * source/rtl/set.c
   * source/rtl/space.c
   * source/rtl/str.c
   * source/rtl/strcase.c
   * source/rtl/strpeek.c
   * source/rtl/strtran.c
   * source/rtl/strzero.c
   * source/rtl/substr.c
   * source/rtl/transfrm.c
   * source/rtl/trim.c
   * source/rtl/type.c
   * source/rtl/val.c
   * source/rtl/valtype.c
   * source/rtl/word.c
   * source/vm/arrayshb.c
   * source/vm/classes.c
   * source/vm/debug.c
   * source/vm/eval.c
   * source/vm/evalhb.c
   * source/vm/hashfunc.c
   * source/vm/memvars.c
   * source/vm/runner.c
     * &hb_errFuncName -> HB_ERR_FUNCNAME
     % Using HB_ERR_FUNCNAME wherever possible.
2008-06-10 09:13:33 +00:00
Przemyslaw Czerpak
89ed18ec57 2008-06-09 20:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/doc/whatsnew.txt
    * minor fixes in formatting

  * harbour/source/rtl/hbgtcore.c
    ! fixed memory leak when HB_GTI_NOTIFIERBLOCK was used to overload
      register before block

  * harbour/source/vm/eval.c
    + added support for SYMBOL items in hb_evalLaunch() to be compatible
      with hb_itemDo()

  * harbour/contrib/hbmisc/spd.c
    * cleaned warnings
2008-06-09 18:49:15 +00:00
Przemyslaw Czerpak
67649c1e0c 2008-06-05 02:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/macro.c
    ! pass macro compiled string to error object. It fixes Clipper
      incompatible behavior reported by Mindaugas.
    ! fixed few possible internal errors when user error handler will
      try to force wrong substitution
2008-06-05 00:34:39 +00:00
Viktor Szakats
bd6e69b714 2008-06-04 15:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/hbbit.c
     + Added important NOTE about hb_bit*() functions' 
       relation to the compiler optimization engine.

   * source/vm/fm.c
   * source/vm/extrap.c
     * Log filenames converted to static variables. With the 
       intent that they'll be converted to Set()s or similar 
       user settable values in the future, since it's useful 
       and more elegant to redirect these to the app's normal 
       logfile.

   * contrib/hbsqlit3/hbsqlit3.c
     * Minor formatting.
2008-06-04 13:53:05 +00:00
Przemyslaw Czerpak
1bd32ce932 2008-06-03 19:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/garbage.c
    % clear hb_stack return item in HB_GCALL() function before
      executing hb_gcCollectAll()
2008-06-03 17:59:45 +00:00
Przemyslaw Czerpak
0d57df5ce5 2008-06-03 17:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbw32/w32_regc.c
    ! fixed typo hb_free() => hb_xfree()
    ! fixed UNICODE build

  * harbour/source/vm/itemapi.c
    * changed hb_itemPutC() and hb_itemPutCL() to be safe when
      user call it passing string which is stored in item passed
      as first parameter. It should fix problem located by Chen.
      Please test.
2008-06-03 15:23:59 +00:00
Przemyslaw Czerpak
6414835fe7 2008-06-03 15:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/extrap.c
    ! fixed unregistering exception error handler in OS2 builds
      David, if possible please test.
2008-06-03 13:10:49 +00:00
Viktor Szakats
71eb525cdf 2008-06-03 10:12 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extend.c
     ! Reverted previous change. Caller should check the 
       retval of hb_storclen_buffer() and free the pointer 
       in case it's zero.
       Thanks Przemek.

   * contrib/hbw32/w32_regc.c
   * contrib/hbhpdf/harupdf.c
   * contrib/hbwhat32/_winsys.c
   * utils/hbmake/readline.c
     ! Fixed hb_storclen_buffer() calls.

   * contrib/hbwhat32/_winsys.c
     ! SYSTEMPARAMETERSINFO() fixed retval and leaks.
     ; Please test.

   * source/rtl/tget.prg
     ! Typo.
2008-06-03 08:41:32 +00:00
Viktor Szakats
98bcafd98f 2008-06-03 01:31 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extend.c
     ! hb_storclen_buffer() fixed to free the passed buffer 
       in case it couldn't be stored. This situation was 
       easy to miss and difficult to detect for the caller, 
       and it might cause leaks.
      
   * contrib/hbw32/Makefile
   * contrib/hbw32/common.mak
   + contrib/hbw32/hbw32.ch
   + contrib/hbw32/w32_reg.prg
   + contrib/hbw32/w32_regc.c
   + contrib/hbw32/tests/testreg.prg
     + Added Windows registry handling stuff.
       Work of Peter Rees <peter@rees.co.nz> / xhb.
     * Code cleaned, formatted, optimized a bit.
     + Added an even simpler interface:
       w32_regRead( <reg_path> ) -> xValue
       w32_regWrite( <reg_path>, <value> ) -> <lSuccess>
       where <reg_path> is: "HKCU\key[\subkeys]\entry"
2008-06-03 00:08:49 +00:00
Viktor Szakats
fa7dcb44ea 2008-06-02 21:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/hvm.c
     % Minor opt to __SETPROFILE(), __TRACEPRGCALLS()
     ! __SETPROFILE() to only set the value if a parameter was passed.
       This way it's possible to read the value without destroying it.
2008-06-02 19:19:50 +00:00
Viktor Szakats
2f5fb88988 2008-06-02 11:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     ! Blind fix for OS/2.
2008-06-02 09:35:26 +00:00
Viktor Szakats
c85b65ba18 2008-06-01 23:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbvm.h
   * source/vm/hvm.c
   * source/vm/extrap.c
     ! Fixed OS/2 problem reported by David.
       (BTW, do we need really need to remove the exception 
       handler before exiting? If yes, shouldn't we do the 
       same under Win32?)

   * source/common/hbstr.c
     ! Silenced one 'loss of significant digit' BCC warning.
2008-06-01 22:06:51 +00:00
Viktor Szakats
d9fe9a4688 2008-06-01 13:26 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/extrap.c
     ! Fixed missing header for OS/2.

   * source/vm/classes.c
     ! Minor fix in internal error text.

   * contrib/hbcurl/make_b32.bat
   * contrib/hbcurl/make_vc.bat
   * contrib/hbcurl/hbcurl.c
   * contrib/hbcurl/hbcurl.ch
   * contrib/hbcurl/tests/ftp_uldl.prg
     ! non-GNU make will also look into the /bin folder 
       for .dlls.
     ! Lots of fixes, too many to mention.
     + Enabled GC pointers. (see TOFIX though)
     + Added all remaining CURL 'easy' API parts and 
       implemented all options existing in 7.18.1:
       + All option values (except bit-level ones) made available in hbcurl.ch
       + All options updated to latest CURL version in hbcurl.ch
       + All error codes made available in hbcurl.ch
       + CURL_EASY_DUPLICATE()
       + CURL_EASY_RESET()
       + CURL_EASY_PAUSE()
       + CURL_EASY_SEND() (not yet available in stable builds)
       + CURL_EASY_RECV() (not yet available in stable builds)
       + CURL_EASY_GETINFO()
       + CURL_ESCAPE() (obsolete)
       + CURL_UNESCAPE() (obsolete)
       + CURL_GETDATE()
     ; TOFIX1: Could someone look at it? In case I call the destructor 
               (curl_easy_cleanup()) manually, the garbage collector 
               will run into an invalid pointer, when terminating the 
               test program.
     ; TOFIX2: The casting to 'curl_off_t' goes wrong. Could someone 
               help?
     ; NOTE1:  Harbour needs at least libcurl 7.17.0. Unfortunately 
               compile time version detection is not working at this time, 
               so try with the latest version 7.18.1.
     ; NOTE2:  Most callback interfaces are not implemented on the 
               Harbour level.
     ; NOTE3:  Harbour is currently not optimizing
               "<const1> ** <const2>" type of expressions at compile time.
               Could we add it? This expression is not widespread, 
               but anyways, it cannot hurt, if isn't too much 
               work to do.
2008-06-01 11:31:48 +00:00
Przemyslaw Czerpak
2a89109763 2008-05-31 14:44 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbmacro.ch
  * harbour/source/vm/macro.c
  * harbour/source/vm/hvm.c
    - removed HB_MACRO_STATEMENTS and HB_SM_PREPROC
2008-05-31 12:45:01 +00:00
Viktor Szakats
b788d7d5f1 2008-05-30 12:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.ch
   * include/hbsetup.h
   * source/common/hbverdsp.c
   * source/vm/arrays.c
     - HB_FUNC_CALLCONV - no longer used.
     - HARBOUR_OBJ_GENERATION - no longer used.
     + Added profiler setting to build info.
     - YACC debug setting removed frmo build info.
     * Build info strict compatibility line now says 5.2e/5.3b.
     * HB_EXTENSION renamed to "non-portable extension"
     - HB_COMP_STRONG_TYPES - no longer used.
     - HB_FIX_ACOPY_BUG
       Replaced with a HB_C52_STRICT guard, but locally 
       overridden to always be strict (thus replicating 
       the bug). This means no change in functionality 
       for default builds. In any ways this is not a decision 
       to make by the Harbour users. If anyone had this 
       locally #defined anyway, pls shout.
     ; NOTE: It's nice that I'm removing unused stuff, but 
             my impression is that by time we have added 
             quite some new such settings burried in the code, 
             so if you're aware of any such ones, please 
             add them to hbsetup.h (or let's discuss which 
             ones to add).
2008-05-30 10:14:32 +00:00
Przemyslaw Czerpak
15f3b83782 2008-05-30 09:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/extrap.c
    ! disabled SetUnhandledExceptionFilter() for WinCE builds

  * harbour/contrib/hbole/ole2.c
    * cleaned compilation in different env C/C++/UNICODE/compilers

  * harbour/contrib/hbw32/w32_ole.c
  * harbour/contrib/hbole/ole2.c
  * harbour/contrib/gtwvg/gtwvg.h
    ! do not use HB_ID_REF() for _WIN64 - I would like to ask someone
      with Win64 to verify current Harbour build status?
2008-05-30 07:42:07 +00:00