Commit Graph

4927 Commits

Author SHA1 Message Date
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
7b320ab03f 2008-06-04 04:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkslib.sh
  * harbour/bin/hb-func.sh
  * harbour/bin/postinst.sh
  * harbour/bin/pack_src.sh
  * harbour/contrib/hbw32ddr/make_gcc.sh
  * harbour/contrib/hbmysql/make_gcc.sh
  * harbour/contrib/hbct/make_gcc.sh
  * harbour/contrib/hbodbc/make_gcc.sh
  * harbour/contrib/xhb/make_gcc.sh
  * harbour/contrib/hbwhat32/make_gcc.sh
  * harbour/contrib/hbtpathy/make_gcc.sh
  * harbour/contrib/hbtpathy/make_b32.bat
  * harbour/contrib/hbtpathy/make_vc.bat
  * harbour/contrib/hbgt/make_gcc.sh
  * harbour/contrib/hbw32/make_gcc.sh
  * harbour/contrib/hbmsql/make_gcc.sh
  * harbour/contrib/hbsqlit2/vdbeaux.c
  * harbour/contrib/hbsqlit2/build.c
  * harbour/contrib/hbsqlit2/hbsqlit2.ch
  * harbour/contrib/hbsqlit2/vdbeInt.h
  * harbour/contrib/hbsqlit2/opcodes.h
  * harbour/contrib/hbsqlit2/btree.c
  * harbour/contrib/hbsqlit2/delete.c
  * harbour/contrib/hbsqlit2/printf.c
  * harbour/contrib/hbsqlit2/trigger.c
  * harbour/contrib/hbsqlit2/attach.c
  * harbour/contrib/hbsqlit2/btree.h
  * harbour/contrib/hbsqlit2/sqlite.h
  * harbour/contrib/hbsqlit2/pragma.c
  * harbour/contrib/hbsqlit2/config.h
  * harbour/contrib/hbsqlit2/util.c
  * harbour/contrib/hbsqlit2/select.c
  * harbour/contrib/hbsqlit2/os.c
  * harbour/contrib/hbsqlit2/tests/hbsqlite.prg
  * harbour/contrib/hbsqlit2/hash.c
  * harbour/contrib/hbsqlit2/os.h
  * harbour/contrib/hbsqlit2/tokenize.c
  * harbour/contrib/hbsqlit2/hash.h
  * harbour/contrib/hbsqlit2/hbsqlit2.c
  * harbour/contrib/hbsqlit2/Makefile
  * harbour/contrib/hbsqlit2/pager.c
  * harbour/contrib/hbsqlit2/vacuum.c
  * harbour/contrib/hbsqlit2/auth.c
  * harbour/contrib/hbsqlit2/pager.h
  * harbour/contrib/hbsqlit2/insert.c
  * harbour/contrib/hbsqlit2/copy.c
  * harbour/contrib/hbsqlit2/parse.c
  * harbour/contrib/hbsqlit2/where.c
  * harbour/contrib/hbsqlit2/date.c
  * harbour/contrib/hbsqlit2/common.mak
  * harbour/contrib/hbsqlit2/expr.c
  * harbour/contrib/hbsqlit2/parse.h
  * harbour/contrib/hbsqlit2/random.c
  * harbour/contrib/hbsqlit2/vdbe.c
  * harbour/contrib/hbsqlit2/sqliteInt.h
  * harbour/contrib/hbsqlit2/update.c
  * harbour/contrib/hbsqlit2/main.c
  * harbour/contrib/hbsqlit2/btree_rb.c
  * harbour/contrib/hbsqlit2/vdbe.h
  * harbour/contrib/hbsqlit2/table.c
  * harbour/contrib/hbsqlit2/readme.txt
  * harbour/contrib/hbsqlit2/func.c
  * harbour/contrib/hbsqlit2/opcodes.c
  * harbour/contrib/hbsqlit2/encode.c
  * harbour/contrib/hbole/make_gcc.sh
  * harbour/contrib/hbmzip/make_b32.bat
  * harbour/contrib/hbmzip/make_vc.bat
  * harbour/contrib/hbfbird/make_gcc.sh
  * harbour/contrib/hbapollo/make_gcc.sh
  * harbour/contrib/hbcurl/tests/ftp_uldl.prg
  * harbour/contrib/mtpl_gcc.mak
  * harbour/source/hbpcre/cnv_o2hb.bat
  * harbour/source/hbpcre/cnv_hb2o.bat
    * CRLF<->LF conversion
    * set strict svn:eol-style
2008-06-04 02:03:48 +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
871e6c9ae1 2008-06-03 18:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  - harbour/source/rtl/hbrun.c
  + harbour/source/rtl/hbrunfun.c
    * renamed hbrun.c to hbrunfun.c to satisfy non GNU make system
2008-06-03 16:48:00 +00:00
Przemyslaw Czerpak
bdf43f67b2 2008-06-03 18:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  * harbour/include/hbextern.ch
  + harbour/source/rtl/hbrun.c
    + added function to execute commands which returns application
      exit code:
         HB_RUN( <cCommand> ) -> <nErrorLevel>
2008-06-03 16:09:00 +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
a7eba2ff2f 2008-06-02 20:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbstr.c
     ! HB_EXPORT added to hb_strRemEscSeq(). Thanks Javier.
2008-06-02 18:30:05 +00:00
Przemyslaw Czerpak
de3a13f42a 2008-06-02 20:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/ppcomp.c
  * harbour/source/compiler/cmdcheck.c
    ! do not disable macrotext substitution for -kc
2008-06-02 18:11:57 +00:00
Przemyslaw Czerpak
e97fbe0fb0 2008-06-02 19:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
    + added compile time INT( <num> ) optimization

  * harbour/source/compiler/hbusage.c
    * updated -k? description to show "(default)" for really set flags
2008-06-02 17:55:48 +00:00
Viktor Szakats
955ef120a4 2008-06-02 18:59 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/hbcompat.ch
     ! Minor fix in hb to xhb branch.

   * contrib/hbcurl/hbcurl.ch
     * '( 2 ** n )' expressions changed to actual values.
     ; We now have these optimized, but I'm committing anyway, 
     as some folks may be scared away by seeing these, and 
     not knowing it's optimized (and they might not even be 
     optimized on some Clipper platforms...).

   * contrib/mtpl_vc.mak
     ! Fixed HB_VISUALC_VER to default to '60' rather than 
       crashing. Same default is used for core make files 
       already.

   * source/common/hbverdsp.c
     - Removed 'CA'.
     + Added word 'compatible' to the 'undocumented' line.
2008-06-02 17:02:46 +00:00
Przemyslaw Czerpak
ed3ab32b06 2008-06-02 15:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbsqlit3/hbsqlit3.c
    ! use char * instead of LPSTR to compile in non Windows environment
    ! fixed one printf() parames
    ! fixed casting and parameter type in sqlite3_blob_open()

  * harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt1.c
  * harbour/source/common/expropt2.c
    - removed unused hb_compExprAsLong()
    + added hb_compExprAsLongNum(), hb_compExprReduceBitFunc()
    + added compiletime optimizatiob for HB_BIT*() functions:
      HB_BITAND(), HB_BITOR(), HB_BITXOR(), HB_BITSET(), HB_BITRESET()
      HB_BITSHIFT(), HB_BITNOT(), HB_BITTEST()
2008-06-02 13:41:00 +00:00
Przemyslaw Czerpak
cea797cf4d 2008-06-02 13:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbexprop.h
  * harbour/include/hbexprb.c
  * harbour/source/common/expropt2.c
    + added hb_compExprReducePower() and compile time optimization for:
         <NumConst1> ^ <NumConst2>
    + added compile time optimization for:
         <NumConst1> % <NumConst2>
      when <NumConst1> or <NumConst2> is not integer value
    NOTE: both optimizations are not Clipper compatible and disabled
          when -kc compiler switch is used
2008-06-02 11:33:06 +00:00
Viktor Szakats
df0077307c 2008-06-02 12:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbverdsp.c
     ! Minor correction.
     * Wording/layout. C++/C and ANSI C init mode is now in 
       one line as "Other build settings".

   * contrib/hbcurl/hbcurl.c
     + Comment extended regarding libcurl version requirement.
     + Added version guard (not currently effective).
2008-06-02 10:12:25 +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
Viktor Szakats
cfd78d2a68 2008-05-31 21:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
   * contrib/hbcurl/tests/ftp_uldl.prg
     + Using hb_fsReadLarge()/hb_fsWriteLarge()
     + Added redefinitiion of memory allocator functions.
       (doesn't work, disabled. hb_xgrab() is getting ptrs 
       not allocated by us.)
     ! Fixes handling of size options in CURL_EASY_SETOPT().
     + CURL_VERSION()
     + CURL_VERSION_INFO()
     + CURL_EASY_STRERROR()
     + CURL_SHARE_STRERROR()
     + CURL_EASY_ESCAPE() (see TOFIX)
     + CURL_EASY_UNESCAPE() (see TOFIX)
     + Test app extended.
     * Renames.
     ; Added several more TOFIXes.

   * source/rtl/tget.prg
     * Minor formatting.
2008-05-31 19:05:00 +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
Przemyslaw Czerpak
29f5f93b0b 2008-05-31 11:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/debug/debugger.prg
    * removed some unused var, formatting

  * harbour/source/pp/ppcore.c
  * harbour/source/common/expropt1.c
  * harbour/source/common/expropt2.c
  * harbour/source/common/hbdate.c
    * casting

  * harbour/source/common/hbstr.c
    * casting
    * use HB_ISSPACE() instead of isspace() for strict Clipper
      compatibility

  * harbour/source/compiler/harbour.y
  * harbour/source/compiler/harbour.yyc
    ! never use 'char' to 'int' casting for parameters of
      toupper()/to*()/isuper()/is*() functions
2008-05-31 09:30:26 +00:00
Viktor Szakats
4a48b29855 2008-05-31 09:57 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
     * For __BORLANDC__:
       _declspec( dllexport ) -> __declspec( dllexport )
       _declspec( dllimport ) -> __declspec( dllimport )
       to suppress warning: Non-ANSI keyword used: '_declspec'.
       NOTE1: This warning could be normally seen when compiling 
              contrib/rddads/ads1.c after the recent addition 
              of -w switch to enable BCC warnings.
       NOTE2: Neither look like ANSI C, and both are undocumented 
              in BCC.
     ; Please test.

   * include/hberrors.h
   * source/compiler/hbgenerr.c
     + Pointless historical surprise added.

   * contrib/mtpl_b32.mak
     - Removed duplicate -d switch.

   * contrib/rddads/ads1.c
     + Empty line.

   * TODO
     - Removed TBrowse() item.
2008-05-31 08:09:09 +00:00
Viktor Szakats
af91810256 2008-05-30 22:06 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/pp/ppcore.c
     * "hb_inLine" -> "hb_inline"

   * source/hbpcre/_hbconf.h
     + Added #pragma warn -sig (-w-sig-)

   * source/common/hbverdsp.c
   * source/compiler/hbusage.c
     * Minor adjustments to compatible product names.
2008-05-30 20:08:02 +00:00
Viktor Szakats
f4f78041a2 2008-05-30 19:32 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/accept.c
     * Minor format.

   * contrib/hbfbird/readme.txt
     + Added SVN header.

   * contrib/hbvpdf/hbvpdf.prg
   * contrib/hbvpdf/hbvpdf.ch
   * contrib/hbvpdf/tests/pdf_demo.prg
   + contrib/hbvpdf/readme.txt
     + Updated to latest 0.8 version.
     + Added readme.txt (including revision log) 
       from original package.
2008-05-30 17:34:53 +00:00
Viktor Szakats
5bd52e37c3 2008-05-30 18:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
   * include/hbinit.h
   * source/compiler/harbour.yyc
   * source/compiler/harbour.y
     * HARBOUR_YYDEBUG -> HB_YYDEBUG
       (do we need this? it's a synomym for YYDEBUG)
     * HARBOUR_STRICT_ANSI_C -> HB_STRICT_ANSI_C
       (do we need this?)
     + HB_PCRE_REGEX added.
     + HB_PCRE_REGEX_BCC added.
     + HB_POSIX_REGEX added.
     - HB_MACRO_STATEMENTS
2008-05-30 16:12:39 +00:00
Viktor Szakats
631010f4ae 2008-05-30 17:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbverdsp.c
     * Some cleanups on appearance.
     * Company names removed (except CA).

   * contrib/rddads/adsmgmnt.c
     * Minor formatting.

   + contrib/examples/dbu/hb_dbu.dif
   * contrib/examples/dbu/bld_b32.bat
   * contrib/examples/dbu/readme.txt
     + Added .dif file with a patch fixing some 
       multiplatforms issues in original dbu source.
       It's a quick hack, I might have missed something, 
       and I didn't do any testing. Add your own fix, 
       if you have some.
     * DBU_DIR -> HB_DIR_DBU

   * make_b32.mak
   * contrib/mtpl_b32.mak
   * config/w32/bcc32.cf
     + Added following switches for BCC:
       -d: merge duplicate strings (was enabled already in GNU make)
       -w: enable warnings.
       -w-sig-: disable 'Conversion may lose significant digits' warnings.
2008-05-30 15:47:57 +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
Przemyslaw Czerpak
76b3f96d1d 2008-05-30 03:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbgtcore.c
    * removed unnecessary variable

  * harbour/contrib/hbw32/w32_ole.c
  * harbour/contrib/hbole/ole2.c
  * harbour/contrib/gtwvg/gtwvg.h
    ! use trick with HB_ID_REF() only for BCC and MSVC
      some other C++ compilers like OpenWatcom have different
      header files and does not need it.
2008-05-30 01:47:31 +00:00
Przemyslaw Czerpak
5472511ddc 2008-05-30 02:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/source/vm/hvm.c
  * harbour/source/vm/extrap.c
    * moved code to set exception handler from hvm.c to extrap.c
    + added void hb_vmSetExceptionHandler( void ) to set exception
      filter
    ! fixed problem with C++ builds caused by missing extern "C"
      declaration for exception handlers in extrap.c
2008-05-30 00:48:06 +00:00
Przemyslaw Czerpak
f5043f6a64 2008-05-30 00:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/estack.c
    * declare hb_stack as static variable when HB_STACK_MACROS is
      disabled to be sure that non extern code will access hb_stack
      It's very important to eliminate such code before we add MT
      support.

  * harbour/source/vm/hvm.c
    * changed hb_vmFrame() to work in the same way as hb_vmVFrame()

  * harbour/source/rtl/hbgtcore.c
    ! fixed wrong clear column in right horizontal scrolling

  * harbour/source/rtl/memoedit.prg
    * use hb_inkeySetLast( n ) instead of KEYBOARD Chr( n ) ; InKey()
2008-05-29 22:15:25 +00:00
Viktor Szakats
bcd588a9f5 2008-05-29 20:38 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/dateshb.c
   * source/rtl/datesx.c
     % Reworked to be a bit faster than non-HB_FAST_STOD.
     - Removed HB_FAST_STOD build time option, because it wasn't 
       safe. It caused reaching into undefined buffers when 
       passed string was shorter than 8 chars.
2008-05-29 18:39:35 +00:00
Viktor Szakats
f4f6d4a691 2008-05-29 20:20 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/hvm.c
     * Minor formatting.

   + source/vm/extrap.c
     + Added. Now for real. Thanks Luis.
2008-05-29 18:21:36 +00:00
Viktor Szakats
6898da8511 2008-05-29 19:31 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * source/vm/Makefile
   * source/vm/mainwin.c
   * source/vm/estack.c
   + source/vm/extrap.c
   * source/vm/hvm.c
     * Rearranged/cleaned up exception handlers.
     * Renamed OS/2 one to comply with namespace rules.
     * Moved from estack.c/mainwin.c to extrap.c and hvm.c.
     * win32 ex.handler now enabled by default at HVM startup.
     * win32 ex.handler now writes exception info into hb_ex.log.
     * win32 ex.handler now pops up a MessageBox() by default.
       We should consider removing this but currently the default 
       Windows handler kicks in anyway, which is also a GUI dialog.
     ; TODO: A common way to log these errors across all platforms.
     ; NOTE: HB_INCLUDE_WINEXCHANDLER is not used by Harbour anymore.
     ; NOTE: Please test OS/2
2008-05-29 17:38:35 +00:00
Viktor Szakats
e9afeddcdb 2008-05-29 17:02 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/tget.prg
     * ::picture(), ::PutMask(), ::unTransform() moved next 
       to each other for easier editing/fixing.

   * common.mak
   - source/common/hbfhnd.c
   * source/common/Makefile
     - Removed file not used by Harbour anymore.

   * contrib/hbole/ole2.c
     ! Fixed OLE C++ errors under MSVC. Using Przemek's method.
     ; TOFIX: This one is still left:
        .\ole2.c(714) : error C2664: 'HRESULT (IUnknown *,const IID &,void **)' : cannot convert parameter 2 from 'LPIID' to 'const IID &'
            Reason: cannot convert from 'LPIID' to 'const IID'
            No constructor could take the source type, or constructor overload resolution was ambiguous
2008-05-29 15:08:08 +00:00
Viktor Szakats
63d35fa484 2008-05-29 11:45 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* tests/rto_get.prg
     + Some tests added.

   * source/rtl/tget.prg
     + Some notes about C5.x behaviour.
     ! Formatting/indentation fixes.
     % Minor optimizations.

   * contrib/xhb/Makefile
   * contrib/xhb/common.mak
     ! Added hbfast.h, hbxml.h

   * contrib/hbfimage/fi_winfu.c
   * contrib/hbfimage/fi_wrp.c
     ! Fixed two BCC warnings in new code.

   * contrib/hbgd/gdwrp.c
     ! Changed to generate proper extern references even 
       for BCC. Now tests compile OK.
       The trick was to explicitly #include <windows.h> 
       before all the other headers, instead of just requesting 
       it using HB_OS_WIN_32_USED.

   * contrib/hbfimage/fi_winfu.c
   * contrib/hbfimage/fi_wrp.c
   * contrib/hbgd/gdwrp.c
   * contrib/hbct/ct.h
   * contrib/hbpgsql/postgres.c
     - Removed #defining _CLIPDEFS_H. It's only needed when 
       using Clipper compatibility API headers (*.api, extend.h).
2008-05-29 09:48:52 +00:00
Viktor Szakats
672f463a2e 2008-05-28 22:41 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/hbpcre/cnv_o2hb.bat
   * source/hbpcre/cnv_hb2o.bat
     + Added COPYING

   * contrib/hbfimage/tests/fitest.prg
   * contrib/hbfimage/fi_wrp.c
     + Added FI_LOADFROMMEM(), FI_GETFILETYPEFROMMEM()
     ; Borrowed from Pavel Tsarenko / xhb.

   * contrib/hbclipsm/gauge.c
     % Minor rearrangement.

   * contrib/hbmysql/make_vc.bat
     ! #defining __WIN32__ to make it build under VC.
   
   ; NOTE: C++ builds of everything related to OLE2 
           are broken. Could someone look into it?
           (hbw32, gtwvg, hbole under BCC and MSVC)
2008-05-28 20:44:09 +00:00
Przemyslaw Czerpak
20a09256ce 2008-05-28 18:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/hbzlib/ChangeLog
  * harbour/source/hbzlib/zutil.c
  * harbour/source/hbzlib/gzio.c
  * harbour/source/hbzlib/zutil.h
  * harbour/source/hbzlib/zconf.h
    * use _WINCE macro instead of _WIN32_WCE to detect WinCE builds
      defining _WIN32_WCE interacts with header files and should be
      left for user to specify exact WinCE version
2008-05-28 16:42:35 +00:00
Viktor Szakats
31bd015517 2008-05-28 14:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * include/Makefile
   + include/hbzlib.ch
   + include/hbzlib.h
   * include/hbextern.ch
   + source/rtl/hbzlib.c
   * source/rtl/Makefile
   * contrib/make_b32_all.bat
   * contrib/make_vc_all.bat
   * contrib/make_gcc_all.sh
   * contrib/Makefile
   + contrib/hbmzip
   + contrib/hbmzip/Makefile
   + contrib/hbmzip/common.mak
   + contrib/hbmzip/make_b32.bat
   + contrib/hbmzip/make_vc.bat
   + contrib/hbmzip/make_gcc.sh
   + contrib/hbmzip/hbmzip.ch
   + contrib/hbmzip/ioapi.c
   + contrib/hbmzip/zip.c
   + contrib/hbmzip/unzip.c
   + contrib/hbmzip/ioapi.h
   + contrib/hbmzip/crypt.h
   + contrib/hbmzip/zip.h
   + contrib/hbmzip/unzip.h
   + contrib/hbmzip/hbmzip.c
   + contrib/hbmzip/readme.txt
   + contrib/hbmzip/tests
   + contrib/hbmzip/tests/bld_b32.bat
   + contrib/hbmzip/tests/bld_vc.bat
   + contrib/hbmzip/tests/myzip.prg
   + contrib/hbmzip/tests/myunzip.prg
     + Added hbzlib.h which is a simple wrapper to source/hbzlib/zlib.h.
     * Moved ZLIB specific Harbour wrappers and header from /contrib/hbzlib
       to /source/rtl.
     + Added /contrib/hbmzip lib based on /contrib/hbzlib.
       Copy + modify was used to keep the repo history.
       hbmzip contains all the MiniZip parts from former /contrib/hbzlib.
       New hbmzip header file: hbmzip.ch
     + Added new Harbour level zip functions to hbextern.ch.
     ; TODO: Remove /contrib/hbzlib, add core hbzlib to lib lists.
2008-05-28 12:39:33 +00:00
Viktor Szakats
62010a5a1d 2008-05-28 13:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/hbzlib/adler32.c
   * source/hbzlib/ChangeLog
   * source/hbzlib/compress.c
   * source/hbzlib/crc32.c
   * source/hbzlib/deflate.c
   * source/hbzlib/gzio.c
   * source/hbzlib/infback.c
   * source/hbzlib/inffast.c
   * source/hbzlib/inflate.c
   * source/hbzlib/inftrees.c
   * source/hbzlib/trees.c
   * source/hbzlib/uncompr.c
   * source/hbzlib/zconf.h
   * source/hbzlib/zutil.c
     + Added modified ZLIB sources, with many tweaks 
       to compile cleanly under Harbour.
       Thanks to Przemek for it.

   + source/hbpcre/LICENCE
   + source/hbzlib/README
     + Added legal text to foreign libs.
2008-05-28 11:37:26 +00:00
Viktor Szakats
6c6adce9d7 2008-05-28 13:29 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * make_b32.mak
   * make_vc.mak
   * make_vcce.mak
   * make_gcc.mak
   * source/Makefile
   + source/hbzlib
   + source/hbzlib/ChangeLog
   + source/hbzlib/adler32.c
   + source/hbzlib/compress.c
   + source/hbzlib/crc32.c
   + source/hbzlib/crc32.h
   + source/hbzlib/deflate.c
   + source/hbzlib/deflate.h
   + source/hbzlib/gzio.c
   + source/hbzlib/infback.c
   + source/hbzlib/inffast.c
   + source/hbzlib/inffast.h
   + source/hbzlib/inffixed.h
   + source/hbzlib/inflate.c
   + source/hbzlib/inflate.h
   + source/hbzlib/inftrees.c
   + source/hbzlib/inftrees.h
   + source/hbzlib/Makefile
   + source/hbzlib/trees.c
   + source/hbzlib/trees.h
   + source/hbzlib/uncompr.c
   + source/hbzlib/zconf.h
   + source/hbzlib/zlib.h
   + source/hbzlib/zutil.c
   + source/hbzlib/zutil.h
     + Added unmodified ZLIB sources to Harbour core.
     + Added them to make systems.
     ; Work in progress.
2008-05-28 11:32:37 +00:00
Viktor Szakats
cd95343116 2008-05-28 12:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/tget.prg
     % Flow cleanup.
2008-05-28 10:31:34 +00:00
Viktor Szakats
ceeff3c354 2008-05-28 11:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/tget.prg
     ! Fixed ::unTransform() padding for strings with @R picture.
       (Edmer Issue #1)
     ! Fixed ::unTransform() to not use the "Chr( 1 )" hack to 
       remove certain chars from string. (there is still one such 
       remaining)
     ! Fixed ::unTransform() padding with zero decimals for numerics.
       This cleared some differences in rto_get.prg.
     ! Fixed ::toDecPos() to not crash with non-numeric vars.
     - Removed some XBase++ specific code which is not 
       needed for Harbour.
     - Removed some other unnecessary code dealing with '.'/',' swapping.
     % Minor cleanups.
     ; WARNING! Please test these with real code, as we have no extensive 
       regression test suite for the above code parts.

   * tests/rto_get.prg
     + Added some test cases (and counter test cases) for 
       problems reported by Edmer.

   * source/hbpcre/cnv_o2hb.bat
   * source/hbpcre/cnv_hb2o.bat
     ! Fix for potential s&r problem.
       (not adapted to converted code yet)

   * contrib/xhb/Makefile
   * contrib/xhb/common.mak
   + contrib/xhb/xstrdel.c
     + STRDEL() added from Walter Negro / xhb.

   * contrib/rddads/adsfunc.c
     + Minor correction to HB_TRACE handling.

   * contrib/hbfimage/fi_winfu.c
     % Removed unused var.
2008-05-28 10:19:43 +00:00
Przemyslaw Czerpak
2c051a4220 2008-05-28 11:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrdddbf.h
  * harbour/include/hbapirdd.h
  * harbour/source/rdd/workarea.c
  * harbour/source/rdd/dbcmd.c
  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/usrrdd/usrrdd.c
  * harbour/contrib/rddads/ads1.c
  * harbour/contrib/hbbmcdx/bmdbfcdx1.c
    + added ULONG ulConnection parameter to DROP() and EXISTS()
      RDD node methods
    + added 4-th parameter with ulConncetion index to [HB_]DROP() and
      [HB_]EXISTS() functions
2008-05-28 09:48:57 +00:00
Przemyslaw Czerpak
77394377fb 2008-05-27 17:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/idle.c
    * updated included header files
    * removed unnecessary separated code for MacOSX
    * small modification in comment

  * harbour/source/hbpcre/pcreinal.h
    ! do not redefine BOOL type and TRUE / FALSE definitions

  * harbour/source/hbpcre/_hbpcreg.c
    * remap memory functions to Harbour core ones

  * harbour/source/hbpcre/pcrevutf.c
  * harbour/source/hbpcre/pcreoutf.c
  * harbour/source/hbpcre/pcrecomp.c
    * pacify warnings when utf8 mode is disabled

  * harbour/source/hbpcre/pcrefind.c
    * casting

  * harbour/contrib/gtwvg/wvtutils.c
  * harbour/contrib/rddads/adsfunc.c
    * cleanup warnings
2008-05-27 15:12:00 +00:00
Viktor Szakats
4761f7a5af 2008-05-27 09:43 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
   * source/vm/hvm.c
   * source/vm/cmdarg.c
     + Added support for internal switch format:
       --hb:<internal switch>
       //hb:<internal switch>
       Both are equivalent to original CA-Cl*pper:
       //<internal switch>
2008-05-27 07:46:37 +00:00
Viktor Szakats
8b06380b17 2008-05-27 03:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/bld.bat
     + MSVC now sets the lib dir globally, so lib names don't 
       need to contain the path anymore.

   * source/vm/fm.c
     * Minor cleanup.

   - contrib/hbgd/tests/bldtest.sh
   + contrib/hbgd/tests/bld.sh
     * Update, cleanup, SVN header.
2008-05-27 01:23:22 +00:00
Przemyslaw Czerpak
8fe45da932 2008-05-27 03:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/tbrowse.prg
    ! fixed cursor positioning when it's moved faster then record
      buffer refreshed. It should also fix flickering problem reported
      by Viktor - please test.
2008-05-27 01:08:45 +00:00