Commit Graph

8616 Commits

Author SHA1 Message Date
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
Miguel Angel Marchuet Frutos
a5c4482fb0 2008-07-10 18:51 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
* contrib/hbbmcdx/bmdbfcdx.c
  * contrib/hbbmcdx/hbbmcdx.h
    ! fixed casting for indexes with key length greater then 196 bytes
      created on tables with record number smaller then 256. In such
      case if keys have equal value then after decoding they may need
      more then 32767 bytes and casting to SHORT gives negative indexes.
      Thanks to Saulius Zrelskis for example.
    % changed some SHORT to INT to reduce runtime overhead
  * contrib/hbziparch/hbziparc.c
    ! fixed some unused variables.
    * minor sintax corrections.
2008-07-10 16:46:54 +00:00
Viktor Szakats
34e0f7d1c3 2008-07-09 22:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
     + Changed to use Harbour memory allocation functions in 
       libcurl.
2008-07-09 20:54:20 +00:00
Przemyslaw Czerpak
f7550368fe 2008-07-09 22:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_xmingwce.sh
    ! fixed HB_PPGEN_PATH setting
2008-07-09 20:42:16 +00:00
Przemyslaw Czerpak
7162b6555f 2008-07-09 18:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/filesys.c
    ! casting
2008-07-09 16:30:45 +00:00
Przemyslaw Czerpak
d5ecd90c31 2008-07-09 18:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/source/common/hbwince.c
    + added SetFileAttributesA() for WinCE builds

  * harbour/source/rtl/filesys.c
    * replaced UNICODE translations for SetFileAttributes()
      with direct call to SetFileAttributesA()

  * harbour/include/hbapifs.h
  * harbour/source/rtl/spfiles.c
  * harbour/source/rtl/fstemp.c
  * harbour/source/rtl/hbffind.c
  * harbour/source/rtl/direct.c
  * harbour/source/rtl/filesys.c
    * changed internal representation for file attributes from USHORT
      to ULONG
    + added support for POSIX permission attributes in .c code
    ; added some comments about used attribute translations which
      should be cleand
2008-07-09 16:25:00 +00:00
Przemyslaw Czerpak
218d714555 2008-07-09 13:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmzip/hbmzip.c
    ! added missing DJGPP header files

  * harbour/source/rtl/filesys.c
    * finished hb_fsSetAttr()

  * harbour/source/rtl/set.c
    % optimized for loop
2008-07-09 11:58:01 +00:00
Przemyslaw Czerpak
4f5ab5e076 2008-07-09 12:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/set.c
    ! do not add .prn extension to printer/extra filenames if file name
      is one of well known device name: PRN, LPT[1-3], COM[1-9]
      This code is enabled only for OS2 builds where it's necessary
      but maybe MS-Windows/DOS users should think about adding it to
      their builds too because sometimes also DOS/Win does not recognize
      correctly device name when it has extension.
2008-07-09 10:32:31 +00:00
Marek Paliwoda
e30cd6e5e1 2008-07-09 10:07:26 +00:00
Marek Paliwoda
1e9fb98568 2008-07-09 12:05 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl) 2008-07-09 10:03:30 +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
Viktor Szakats
082a98114d 2008-07-09 10:20 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/make_b32_all.bat
   * contrib/make_vc_all.bat
     ! Fixed to accept HB_INC_* envvars to specify 
       header locations for external packages.
2008-07-09 08:21:20 +00:00
Viktor Szakats
8735002f43 2008-07-09 10:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
   * contrib/gtwvg/gtwvg.c
     ! Restored previous change.
       In Harbour, passing NULL to hb_itemPutC() is valid and 
       will result in an empty string being stored in an optimized way.
       hb_itemPutCLPtr() should be used instead of hb_itemPutCPtr().
       The GPF in question used to happen when setting the clipboard, 
       and it looks to happen inside the OS. I'm still investigating.

   * contrib/hbapollo/tests/bld_b32.bat
   * contrib/hbapollo/tests/bld_vc.bat
     ! Fixed external .lib name.
2008-07-09 08:02:03 +00:00
Pritpal Bedi
80f2c9b417 2008-07-08 16:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/gtwvg/gtwvg.c
  * source/rtl/gtwvt/gtwvt.c
    ! Fixed GPF in HB_GTI_CLIPBOARDDATA.
2008-07-08 23:45:10 +00:00
Viktor Szakats
9f56cbad14 2008-07-08 20:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
     ! CURL_EASY_GETINFO() will now return the proper type 
       (with an empty value) if the given info type is not 
       supported in the libcurl version used at build-time.
       (This makes the test program not crash after latest 
       hbcurl changes.)
2008-07-08 18:44:23 +00:00
Mindaugas Kavaliauskas
79098d198d 2008-07-08 19:03 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/hbmzip/hbmzip.c
    + implemented file date/time get/set for OS2
    ; TODO: DOS implementation is still missing
    ; Implementation is not tested!
2008-07-08 16:00:16 +00:00
Przemyslaw Czerpak
b829975133 2008-07-08 17:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbusage.c
    * cleaned possible warning in some C compilers
2008-07-08 15:05:58 +00:00
Viktor Szakats
c692d5d67a 2008-07-08 16:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbw32/Makefile
   * contrib/hbw32/common.mak
   + contrib/hbw32/w32_osc.c
   + contrib/hbw32/w32_os.prg
     + Ported some Windows specific version detection and 
       networking checker/setup code. From Peter Rees/xhb:
       OS_ISWINNT()
       OS_ISWINNT351()
       OS_ISWINNT4()
       OS_ISWIN2000_OR_LATER()
       OS_ISWIN2000()
       OS_ISWINXP()
       OS_ISWIN2003()
       OS_ISWINVISTA()
       OS_ISWIN9X()
       OS_ISWIN95()
       OS_ISWIN98()
       OS_ISWINME()
       OS_ISWTSCLIENT()
       OS_VERSIONINFO()
       OS_NETREGOK()
       OS_NETVREDIROK()
2008-07-08 14:52:35 +00:00
Przemyslaw Czerpak
4926a3375e 2008-07-08 14:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddcdx.h
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    ! fixed casting for indexes with key length greater then 196 bytes
      created on tables with record number smaller then 256. In such
      case if keys have equal value then after decoding they may need
      more then 32767 bytes and casting to SHORT gives negative indexes.
      Thanks to Saulius Zrelskis for example.
    % changed some SHORT to INT to reduce runtime overhead
2008-07-08 12:13:30 +00:00
Viktor Szakats
958acd8169 2008-07-08 10:34 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/rddads/ads1.c
     ! Fixed to behave Clipper-like when trying to write 
       when on EOF position. This way a TODO is cleared in the 
       source.
2008-07-08 08:37:24 +00:00
Viktor Szakats
e4223a02a0 2008-07-08 08:29 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbodbc/odbc.c
     ! Fixed compilation error with Pelles C 5.00.1.
     * Some formatting.

   * contrib/hbw32/dllcall.c
     + Two TOFIXes added for Win64 support.
     ! One Warning fixed under Win64.

   * contrib/hbfimage/make_gcc.sh
   * contrib/hbfimage/make_b32.bat
   * contrib/hbfimage/make_vc.bat
     ! Corrected to look in Dist subdir instead of 'source', 
       so that simple .dll ditribution is enough to compile.
2008-07-08 06:37:36 +00:00
Viktor Szakats
f636b56131 2008-07-08 07:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbodbc/odbc.c
     ! Fixed all ODBC handles to be pointers. This way it's Win64 
       compatible. This is an INCOMPATIBLE change. Since normal 
       app code is using ODBC error values to check for error 
       conditions, the type of handles shouldn't be a concern for 
       most app code.
       I'd ask everyone using hbodbc to do some tests.
     + TOFIXes added where deprecated (and potentially dangerous) 
       APIs are used.

   * contrib/hbw32/dllcall.c
     ! Using hb_parnint()/hb_retnint() instead of hb_parnl()/hb_retnl() 
       to make Harbour level .dll functions compatible with Win64, and 
       at the same time stay compatible with XBase++.

   * contrib/rddado/adordd.prg
     ! Fixed a few places where _SET_EXACT dependent string 
       comparisons were used. One of them could cause
       problems updating field values.

   * contrib/hbodbc/todbc.prg
     * Formatting.

   * contrib/hbodbc/tests/odbcdemo.prg
   * contrib/hbodbc/tests/odbccall.prg
   * contrib/hbodbc/tests/testodbc.prg
     ! Made them work out of the box.
     ; TOFIX: All of them gives "unrecognized database format" for harbour.mdb.
2008-07-08 06:06:06 +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
Przemyslaw Czerpak
fc6d06b19c 2008-07-08 00:38 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    * disabled internal pointer handles I enabled by mistake for MS-WIN
      builds
2008-07-07 22:38:48 +00:00
Przemyslaw Czerpak
e5fb6b8de5 2008-07-08 00:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapifs.h
  * harbour/include/hbdefs.h
  * harbour/source/rtl/console.c
  * harbour/source/rtl/philes.c
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/fstemp.c
  * harbour/source/rtl/philes53.c
  * harbour/source/rtl/gtapi.c
  * harbour/source/rtl/filesys.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
  * harbour/source/rdd/dbsql.c
  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/delim1.c
  * harbour/contrib/hbbmcdx/bmdbfcdx.c
    + added HB_NHANDLE
    + added hb_numToHandle() macro
    ! fixed WIN32 HANDLE to integer number conversions in Harbour file API
    ! fixed F_ERROR and FS_ERROR usage
    * added support for optional FHANDLE mapped to pointer instead of
      integer number - disable by default in hbdefs.h
      Now Harbour can be compiled with internal pointer and integer file
      handles (FHANDLE)
2008-07-07 22:35:39 +00:00
Viktor Szakats
5b5bd3c820 missed changed added 2008-07-07 22:18:19 +00:00
Viktor Szakats
cd07406601 2008-07-08 00:07 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/genhrb.c
   * contrib/hbtip/utils.c
     ! Changed octal values in strings (and chars too) to make 
       these functions work with Pelles C 5.00.1.
2008-07-07 22:09:23 +00:00
Viktor Szakats
2a774d62e8 2008-07-07 20:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/xhbfunc.c
     ! Changed hb_ArrayID() to be in sync with xhb, and at the 
       same time fixing the Win64 compatibility issue.
       Thanks Przemek.

   * ChangeLog
     ! Typo.
2008-07-07 18:17:21 +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
Marek Paliwoda
7ff4bf1de7 2008-07-07 19:00 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* make_xmingwce.mak
     * Changed the way HB_COMP_PATH, HB_PPGEN_PATH,
       CCPATH and CCPREFIX environment variables are
       handled
2008-07-07 17:01:30 +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
47c0fe7abc 2008-07-07 13:50 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/hbffind.c
     ! Added workaround for PellesC 5.00.1 hang bug.

   * config/w32/pocc.cf
     % Removed unnecessary '-I' switches.
     ! Removed ws2.lib from liblist to make it link with PellesC 5.00.1 
       (where this lib is not available anymore).
2008-07-07 12:15:57 +00:00
Przemyslaw Czerpak
12a91c6e12 2008-07-07 12:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/gencc.c
    ! fixed bud with wrong C code generated for doubly negated integer
      values reported by Viktor.
2008-07-07 10:49:22 +00:00
Viktor Szakats
d0596ffa2b 2008-07-07 06:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_deb.sh
     + Added libgpm-dev to mouse test. Thanks Guy.

   - doc/simplex.txt
   * doc/Makefile
     - Removed obsolete file.

   * doc/linux1st.txt
     + Added libgpm*-dev requirements.

   * contrib/hbtpathy/Makefile
   * contrib/hbziparch/Makefile
     ! Fixed referring to win32 archictecture as 'win32' 
       (should be 'w32'). Recently introduced bugs.

   * contrib/hbfimage/fi_winfu.c
   * contrib/hbfimage/fi_wrp.c
     ! Fixed for POCC, XCC compilers.
2008-07-07 05:00:07 +00:00
Viktor Szakats
42d36757b9 2008-07-06 23:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbundoc.api
     ! Casting in _tctemp()
2008-07-06 21:03:15 +00:00
Viktor Szakats
dc542587a6 2008-07-05 03:28 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/transfrm.c
     + Added patch by Javier. This will make @R picture 
       compatible with Clipper 5.01 and VFP if HB_COMPAT_FOXPRO 
       is enabled.
2008-07-05 01:29:34 +00:00
Viktor Szakats
ccf9931bc8 2008-07-05 02:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/Makefile
     ! Removed non-existing genhtm.cmd
     ! howtocvs.txt -> howtosvn.txt
2008-07-05 00:49:14 +00:00
Viktor Szakats
3088dd7608 2008-07-05 02:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/pp/hbpp.c
   * source/pp/ppcore.c
   * source/pp/pplib.c
     ! Fixed bug introduced in r8836, so that now __HARBOUR__ 
       will again be #defined when 'harbour /u' switch is used.
       Thanks Randy.
2008-07-05 00:25:33 +00:00
Viktor Szakats
059883e598 2008-07-05 01:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbver.h
     ! Typo in comment.
2008-07-05 00:00:40 +00:00
Viktor Szakats
c648be0a8e 2008-07-05 01:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
     ! Typo: hb_free() -> hb_xfree()
2008-07-04 23:47:46 +00:00
Marek Paliwoda
4e231f9bba 2008-07-04 20:45 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* make_vcce.mak
     ! Fixes required by an old eVC4 compiler,
       Better synchronization with make_vc.mak.
2008-07-04 18:45:17 +00:00
Viktor Szakats
47d04b6dcf 2008-07-04 19:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/Makefile
     ! Fixed commented file in file list.
     ; This may fix some GNU-make problems regarding hbziparch.
     ; hbziparch may not work in RC2 GNU-make builds for this 
       reason.

   * harbour-ce-spec
   * harbour-w32-spec
   * doc/whatsnew.txt
   * include/hbver.h
   * harbour.spec
     * RC2 -> rc2
     ; We should use lowercase for 'RC' in the future, for consistency 
       with 'alpha', 'beta' (and with other projects too). It looks 
       smoother too.

   * source/rtl/errorint.c
     ! hb_setGetCPtr( HB_SET_HBOUTLOG ) checked for NULL value.
       I'm not sure if this is required in real life, so this may 
       be unnecessary safety.

   * utils/Makefile
     * Formatting.
2008-07-04 17:04:52 +00:00
Viktor Szakats
5c2dd45cbe 2008-07-04 04:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmzip/hbmzip.c
     + Reenabled new OS/2 code.
     ! Fixed defines in OS/2 part. Requested definitions.
       Fixed one potential error. Pls review and test, all 
       this was done blindly.
2008-07-04 02:31:03 +00:00
Viktor Szakats
a0b9a8d77a 2008-07-04 03:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/Makefile
     ! Removed hbwmain.c from the header list to be installed.
       (Przemek please verify me)
2008-07-04 01:09:51 +00:00
Viktor Szakats
32525917ba 2008-07-03 22:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/errorint.c
     + Internal error are now logged to hb_out.log (by default).
     ; This addition looks quite humble, yet very useful, please 
       test and comment it.
       Credits to Randy Portnoff for the idea.
     ; First post-RC2, RC3/FINAL modification.

2008-07-03 22:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
   ; Tagged: /tags/harbour-1.0.0RC2
2008-07-03 20:49:19 +00:00
Viktor Szakats
7e7d04884f 2008-07-03 21:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
     ! Fixed version detection to not break when compiling for WinCE.
     ; Marek, thanks a lot.
2008-07-03 19:54:58 +00:00
Viktor Szakats
8df28a8149 2008-07-03 21:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmzip/hbmzip.c
     * Temply disabled new OS/2 code to go on with the RC2 release.
2008-07-03 19:28:18 +00:00
Viktor Szakats
c4bfc3445a 2008-07-03 21:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- contrib/hbmysql/difer.txt
   - contrib/hbmysql/diffeng.txt
   + contrib/hbmysql/diff-en.txt
   + contrib/hbmysql/diff-es.txt
   * contrib/hbmysql/tmysql.prg
   - contrib/hbmysql/dbf2mysq.prg
   + contrib/hbmysql/utils
   + contrib/hbmysql/utils/bld_b32.bat
   + contrib/hbmysql/utils/dbf2mysq.prg
   + contrib/hbmysql/utils/bld_vc.bat
     * Some dir cleanup.
     * Created separate dir for standalone utility.
     ! SVN headers and props added.
2008-07-03 19:09:43 +00:00
Przemyslaw Czerpak
73f3d0cee7 2008-07-03 19:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/debian/changelog
  * harbour/make_deb.sh
    * added modifications by Guy Roussin - thanks

  * harbour/contrib/gtwvg/gtwvg.c
    ! fixed pointer comparison - C uses different precedence for !
      operator then Clipper/xbase
      I thought that I've already fixed it once :-o
2008-07-03 17:29:15 +00:00
Viktor Szakats
97fdb2ddb9 2008-07-03 18:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbbmcdx/bmdbfcdx.c
   * contrib/hbbtree/hb_btree.c
   * contrib/hbgd/gdwrp.c
   * contrib/hbsqlit3/hbsqlit3.c
   * contrib/hbtip/encmthd.c
   * contrib/hbtip/utils.c
   * contrib/xhb/cstructc.c
   * contrib/xhb/xhbwith.c
     % Using HB_ERR_FUNCNAME
2008-07-03 16:37:01 +00:00