Commit Graph

7137 Commits

Author SHA1 Message Date
Antonio Linares
9a1fdee22f 2007-05-11 14:27 UTC+0100 2007-05-11 12:28:03 +00:00
Antonio Linares
d009cf5396 some minor changes 2007-05-11 12:26:48 +00:00
Viktor Szakats
6a49a722cd 2007-05-11 10:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/source/rtl/filehb.c
     * Changed one old TOFIX to a NOTE regarding a minor
       incompatibility in FILE() where the filename is RTrim()-ed
       in Clipper but not in Harbour. It became a NOTE because
       making it compatible would mean losing some portability.

   * harbour/source/rtl/hbffind.c
     ! Removed code in UNIX branch which would change an empty
       file mask to "*" (thus causing FILE("") to return .T.
       and DIRECTORY("") to return the whole dir content.)
     ! Made sure in UNIX branch that an empty file mask won't
       return any files regardless of the filename matching
       method used.

   * harbour/source/rtl/strmatch.c
     + Added NOTE about hb_WildMatch() / sx_WildMatch()
       incompatibility.
     ! Guarded WILDMATCH() with HB_COMPAT_XHB.
     * WILDMATCH() now calls HB_WILDMATCH() internally.
2007-05-11 08:35:52 +00:00
Antonio Linares
8de3cd487a 2007-05-11 01:04 UTC+0100 2007-05-10 23:06:14 +00:00
Antonio Linares
d2318d34df Reduced used variables and consumed memory 2007-05-10 23:04:16 +00:00
Antonio Linares
4b5d8cfb1d 2007-05-10 08:13 UTC+0100 2007-05-10 06:14:04 +00:00
Antonio Linares
3e8ab6fc66 FoxPro support 2007-05-10 06:10:17 +00:00
Antonio Linares
e3e5468907 2007-05-09 15:28 UTC+0100 2007-05-09 13:29:04 +00:00
Antonio Linares
e4c5ff74c2 Improved ADO_CLEARREL() 2007-05-09 13:28:12 +00:00
Fernando Mancera
342f481007 2007-05-09 15:03 UTC+0100 2007-05-09 13:04:14 +00:00
Fernando Mancera
3a3e34b2f8 Improved Deleted() 2007-05-09 13:02:34 +00:00
Antonio Linares
d0d1abe285 minor change 2007-05-09 09:03:42 +00:00
Antonio Linares
d341084806 2007-05-09 10:55 UTC+0100 2007-05-09 08:56:03 +00:00
Antonio Linares
9e5dc9cc23 Added function HB_AdoRddGetRecordSet( [<nWorkArea>] ) --> oAdoRecordset 2007-05-09 08:55:02 +00:00
Antonio Linares
a1f1ed01a2 2007-05-09 10:41 UTC+0100 2007-05-09 08:42:11 +00:00
Antonio Linares
a9d05113bf New functions HB_AdoRddGetConnection( [<nWorkArea>] ) --> oAdoConnection
and HB_AdoRddGetCatalog( [<nWorkArea>] ) --> oAdoCatalog
2007-05-09 08:40:56 +00:00
Lorenzo Fiorini
60f8ef1aa4 2007-05-09 10:10 UTC+0200 Lorenzo Fiorini (lorenzo.fiorini/at/gmail.com)
* harbour/config/w32/mingw32.cf
    * fixed typo
  * harbour/include/Makefile
    * removed reference to deleted hbrddwrk.h
  * harbour/include/std.ch
    * added SET EOL <x> clause
  * harbour/include/hbcompat.ch
    * fixed typos and added TEXT INTO
  * harbour/contrib/gd/Makefile
    * fixed install of includes
  * harbour/contrib/gd/gdwrp.c
    * fixed warnings
2007-05-09 08:08:49 +00:00
Chen Kedem
af6b7fdd86 2007-05-08 16:06 UTC+0300 Chen Kedem <niki@actcom.co.il> 2007-05-08 13:06:37 +00:00
Antonio Linares
bce9c87fdf minor fix 2007-05-07 17:48:33 +00:00
Antonio Linares
1c00dfe484 2007-05-07 19:42 UTC+0100 2007-05-07 17:43:20 +00:00
Antonio Linares
2d0a463775 Added some connection strings, borrowed from xharbour 2007-05-07 17:41:56 +00:00
Fernando Mancera
e94c384f7b 2007-05-07 15:46 UTC+0100 2007-05-07 13:46:52 +00:00
Fernando Mancera
ea9e517f8f ADO_GOTOID() borrowed from xHarbour with modifications 2007-05-07 13:44:21 +00:00
Fernando Mancera
4fa1f10291 2007-05-07 14:06 UTC+0100 2007-05-07 12:07:17 +00:00
Fernando Mancera
62b677cbb0 DbRSelect() and DbRelation() implemented 2007-05-07 12:04:31 +00:00
Antonio Linares
3c557bba56 2007-05-07 11:28 UTC+0100 2007-05-07 09:32:59 +00:00
Antonio Linares
781b42ef09 INDEX TO ... implementation. OrdListClear(), OrdListAdd() implementation 2007-05-07 09:32:25 +00:00
Chen Kedem
1c66044477 2007-05-07 11:04 UTC+0300 Chen Kedem <niki@actcom.co.il> 2007-05-07 08:04:19 +00:00
Przemyslaw Czerpak
dab98431de 2007-05-07 02:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rdd/dbcmd.c
    * initialize lpaParent in DBRELINFO structure to pArea - please
      note that this initialization is ignored by default SETREL()
      RDD method

  * harbour/source/rdd/usrrdd/usrrdd.c
    ! fixed GPF when NULL lpaParent or lpaChild was used in DBRELINFO
      structure
2007-05-07 00:20:30 +00:00
Antonio Linares
56a5077cb0 2007-05-06 11:42 UTC+0100 2007-05-06 20:44:25 +00:00
Antonio Linares
7eb006b839 SET RELATION implementation 2007-05-06 20:43:45 +00:00
Antonio Linares
2febb18eea New define added 2007-05-06 20:43:16 +00:00
Przemyslaw Czerpak
96526823f3 2007-05-06 20:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rdd/wacore.c
  * harbour/source/vm/classes.c
  * harbour/include/hbapirdd.h
  * harbour/source/compiler/hbmain.c
    * updated HB_TRACE messages and some minor cleanups

  * harbour/source/rdd/dbcmd.c
    ! fixed initialisation of DBRELINFO dbSetRelation() - thanks to Antonio
      for locating the problem

  * harbour/source/rtl/idle.c
   * increase timeout in nanosleep() from 1 microsecond to 1 millisecond
   - removed some wrong comment
2007-05-06 18:35:11 +00:00
Przemyslaw Czerpak
0433f879a4 2007-05-06 16:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
    * changed __cls_IncData() to return index to newly allocated instance
      item and __cls_DecData() to return number of local (not inherited)
      instance items
2007-05-06 14:16:19 +00:00
Viktor Szakats
792dfee8c7 2007-05-06 11:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/source/rtl/hbrandom.c
     ! HB_RANDOMSEED() fixed to correctly handle passed parameter.
       (Thanks to Mitja Podgornik)
2007-05-06 09:43:26 +00:00
Antonio Linares
932fa00ebd minor fix 2007-05-05 11:26:27 +00:00
Viktor Szakats
5b2c4cbf1d 2007-05-05 12:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/source/rtl/tget.prg
     ! Fixed a recently introduced crash in Get():ColorDisp().
       (Thanks to Teo Fonrouge)
2007-05-05 10:09:44 +00:00
Antonio Linares
60e6e260be minor changes 2007-05-05 09:09:29 +00:00
Antonio Linares
04e4dd5237 2007-05-05 10:28 UTC+0100 2007-05-05 08:29:04 +00:00
Antonio Linares
b34bccfb59 Improved formatting and xharbour compatibility 2007-05-05 08:27:48 +00:00
Przemyslaw Czerpak
d1f8cc8478 2007-05-04 15:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/Makefile
  * harbour/contrib/bmdbfcdx/Makefile
  * harbour/source/rdd/Makefile
    ! fixed GNU make compilation

  * harbour/include/hbapifs.h
  * harbour/source/rtl/filesys.c
    + added support for DOS/Windows DENY_* flag emulation in POSIX
      systems using BSD locks. So far such emulatin was done with
      standard POSIX locks. The new emulation can be enabled by setting
      HB_USE_BSDLOCKS and disabled by HB_USE_BSDLOCKS_OFF. By default
      it's enabled in Linux and BSD* based systems.
      Please not that it BSD locks work in differ way then POSIX ones.
      They are bound with file handle and process ID not i-node and PID.
      It will allow to synchronize even single process but it will not
      work in NFS and some old BSD and Linux kernels. This synchronization
      cannot be used also between different platforms. If someone needs
      such synchronization then he should build Harbour on all platforms
      with HB_USE_BSDLOCKS_OFF and HB_USE_SHARELOCKS with valid multi
      platform lock offset

  * harbour/source/rdd/dbcmd.c
    * removed all explicit NETERR setting - now it can be set only
      by NETERR() function (executed by default errorsys)
    * changed ordListAdd()/dbSetIndex() - now they return logical value
      with information about success

  * harbour/source/rdd/wafunc.c
    * changed hb_rddOpenTable()/hb_rddCreateTable() to make dbUseArea()/
      dbCreate() more Clipper compatible - it's not exact Clipper behavior
      but I intentionally do not want to replicate some strange for me
      things, f.e. I do not know why Clipper ignores RDDNAME when it has
      only one character

  + harbour/tests/tstuse.prg
    + test code for dbUseArea()
2007-05-04 13:36:02 +00:00
Miguel Angel Marchuet Frutos
71af9421c6 2007-05-04 11:06 UTC+0100 Miguel Angel Marchuet (miguelangel/at/marchuet.net)
* source/rdd/wafunc.c
    * change of the behavior of DbUseArea opening, so that one behaves like made Clipper, when it fails the
      opening of a table, does not recover the previous area.
2007-05-04 09:09:00 +00:00
Miguel Angel Marchuet Frutos
7cf42f9fd5 2007-05-04 10:15 UTC+0100 Miguel Angel Marchuet (miguelangel/at/marchuet.net)
+ contrib/bmdbfcdx/Makefile
  + contrib/bmdbfcdx/bmdbfcdx1.c
  + contrib/bmdbfcdx/bmsixcdx1.c
  + contrib/bmdbfcdx/hbrddbmcdx.h
  + contrib/bmdbfcdx/make_b32.bat
  + contrib/bmdbfcdx/makefile.bc
  + contrib/bmdbfcdx/readme.txt
    + BMDBFCDX RDD:

      Is a DBFCDX RDD compatible with clipper 5.3, use SET OPTIMIZE ON to make a
     static bitmap filters, with SET OPTIMIZE OFF works as harbour DBFCDX.

     Addons:

     BM_DbSeekWild( uKey, [lSoftSeek], [lFindLast], [lNext], [lAll] ) => .T./.F. or aSeekRec when lAll clause
     BM_Turbo( lOnOff ) // Is only recomendable to use it on creating FILTERS
     BM_DbGetFilterArray() => aFilterRec
     BM_DbSetFilterArray( aFilterRec )
     BM_DbSetFilterArrayAdd( aFilterRec )
     BM_DbSetFilterArrayDel( aFilterRec )

     Respecting command:

    SET OPTIMIZE
    Change the setting that determines whether to optimize using the open orders
    when processing a filtered database file
    ------------------------------------------------------------------------------
    Syntax

     SET OPTIMIZE ON | OFF | (<lToggle>)

     Arguments

     ON enables optimization.

     OFF disables optimization.

     <lToggle> is a logical expression that must be enclosed in
     parentheses.  A value of true (.T.) is the same as ON, and a value of
     false (.F.) is the same as OFF.

     Note:  The initial default of this setting depends on the RDD.

    Description

     For RDDs that support optimization, such as BMDBFCDX, SET OPTIMIZE
     determines whether to optimize filters based on the orders open in the
     current work area.  If this flag is ON, the RDD will optimize the search
     for records that meet the filter condition to the fullest extent
     possible, minimizing the need to read the actual data from the database
     file.

     If this flag is OFF, the RDD will not optimize.

    Examples

     ¦  The following example enables optimization for the Inventor
        database file using the SET OPTIMIZE command:

        USE Inventor NEW VIA "BMDBFCDX"
        SET OPTIMIZE ON
2007-05-04 08:18:46 +00:00
Przemyslaw Czerpak
83fc963e67 2007-05-03 16:22 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rdd/usrrdd/usrrdd.c
    * updated casting for recent modifications in RDD API
2007-05-03 14:23:52 +00:00
Przemyslaw Czerpak
271095b949 2007-05-03 16:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/include/hbapirdd.h
  - harbour/include/hbrddwrk.h
  * harbour/source/rdd/Makefile
  + harbour/source/rdd/wacore.c
  + harbour/source/rdd/wafunc.c
  * harbour/source/rdd/workarea.c
    * cleaned RDD code:
      * the default work area implementation from which each RDD inherits
        and RDD management is now in workarea.c file - this part will be
        common for all threads in future MT version
      * the code to mange workareas and aliases moved to wacore.c - this
        code uses some static variables which will be moved to HVM stack
        in MT version
      * helper RDD functions thread independent moved to wafunc.c

  * harbour/source/rdd/dbcmd.c
    * removed RDD/WorkArea management code - only independent HB_FUNCs
      left. IMHO it will be good to divide this file into few ones.
    * changed dbCreate() and dbUseArea() to return logical value

  * harbour/config/global.cf
    - removed nulsys from linked library list - it should not be here
      because it can confuse some linkers and wrong library will be
      created

  * harbour/contrib/rdd_ads/ads1.c
  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/delim1.c
  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/dbfdbt/dbfdbt1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
  * harbour/source/rdd/nulsys/nulsys.c
    * updated for recent modifications in RDD API

  * harbour/include/hbextern.ch
    - removed __RDDSETDEFAULT() - this function was necessary with old
      rdd register code and we not not need it for few years. It's not
      Clipper function so I do not see any reason to keep it but if you
      want we can add wrapper to standard RDDSETDEFAULT()

  * harbour/source/rdd/hbsix/sxcompr.c
    + added workaround for SIX3 bug which I intentionally replicated in
      [x]Harbour but it may cause data corruption so IMHO it will be better
      to fix it.

  * harbour/source/rtl/errorsys.prg
    * added default action for EG_LOCK - it's Clipper compatible behavior
      but done in differ way. Due to some differences in linker we are
      using we cannot exactly replicate Clipper behavior because it will
      not work on some platforms as expected so I decided to add it here.
      I think it's even more Clear then the trick with source/sys/ntxerr.prg
      done by Clipper. Many people do not even knows about it.

  * harbour/source/rtl/gtcrs/chrmap.c
    * changed environment variable name from HB_CHRMAP to HB_CHARMAP to
      be compatible with description in default map file
2007-05-03 14:11:30 +00:00
Antonio Linares
9f83848464 minor change on changelog 2007-05-01 20:56:17 +00:00
Antonio Linares
2123943244 2007-05-01 22:53 UTC+0100 2007-05-01 20:54:31 +00:00
Antonio Linares
77b05efed7 DbCreate() sample with Microsoft Access 2007-05-01 20:52:59 +00:00
Antonio Linares
851ed3e00c DbCreate() implementation just for Microsoft Access 2007-05-01 20:51:22 +00:00
Antonio Linares
16a4f40f27 minor change 2007-05-01 07:03:52 +00:00