Commit Graph

7104 Commits

Author SHA1 Message Date
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
Antonio Linares
83fbf3aebf 2007-05-01 08:48 UTC+0100 2007-05-01 06:51:13 +00:00
Antonio Linares
0c33c61ecb MySQL LOCATE and CONTINUE sample 2007-05-01 06:50:19 +00:00
Antonio Linares
fda3570a9f LOCATE and CONTINUE support 2007-05-01 06:49:12 +00:00
Antonio Linares
5d50597392 IndexKey() minor fix 2007-04-30 20:52:33 +00:00
Antonio Linares
5de56f6b41 IndexKey() minor fix 2007-04-30 20:48:35 +00:00
Antonio Linares
a4dddd9b13 Modified IndexKey( n ) 2007-04-30 20:31:11 +00:00
Antonio Linares
b2356375ae Improved ZAP 2007-04-30 20:15:49 +00:00
Antonio Linares
8e81281e87 Improved IndexKey( n ) support 2007-04-30 20:07:00 +00:00
Antonio Linares
8e23816bbc 2007-04-30 21:58 UTC+0100 2007-04-30 19:51:01 +00:00
Antonio Linares
703220cf0d IndexKey( n ) support 2007-04-30 19:49:40 +00:00
Antonio Linares
cf392b8f30 2007-04-30 20:58 UTC+0100 2007-04-30 18:59:30 +00:00
Antonio Linares
db01b88f1c ZAP implemented. GO TOP fixed for empty tables 2007-04-30 18:58:27 +00:00
Fernando Mancera
7134040692 2007-04-30 10:15 UTC+0100 2007-04-30 08:18:15 +00:00
Fernando Mancera
c830519e52 ADO connection objects and ADO catalog objects are automatically created, stored and used by the ADORDD 2007-04-30 08:17:09 +00:00
Antonio Linares
ab13913681 2007-04-29 17:34 UTC+0100 2007-04-29 15:36:17 +00:00
Antonio Linares
e8b5b83435 formatting 2007-04-29 15:35:26 +00:00
Antonio Linares
9c554a6b3f Oracle support, thanks to Srdjan Dragojlovic 2007-04-29 15:33:58 +00:00
Antonio Linares
4d0b0e8843 minor fix on latest changelog 2007-04-29 11:13:36 +00:00
Antonio Linares
ddba8e3bf0 2007-04-29 12:42 UTC+0100 2007-04-29 10:45:43 +00:00
Antonio Linares
b772f854c1 SET FILTER TO ... support 2007-04-29 10:41:43 +00:00
Antonio Linares
03ec072da4 2007-04-27 19:33 UTC+0100 2007-04-27 17:35:22 +00:00
Antonio Linares
5799911b5a QUERY support and MS SQL support 2007-04-27 17:32:19 +00:00
Fernando Mancera
487105ee18 07-04-27 14:35 UTC+0100 2007-04-27 12:40:40 +00:00
Fernando Mancera
cc5b76b991 Minor change to header file name 2007-04-27 12:33:38 +00:00
Lorenzo Fiorini
8d1a0f8612 2007-04-27 13:05 UTC+0200 Lorenzo Fiorini (lorenzo.fiorini/at/gmail.com)
* harbour/source/rtl/set.c
  * harbour/include/set.ch
  * harbour/include/hbset.h
    * added support for SET EOL <x> as in xHarbour
  * harbour/source/rtl/mlcount.c
    * fixed count for softcr
  * harbour/include/hbcompat.ch
    * added compatibility for isregex(string) function
  * harbour/contrib/tip/cgi.prg
    * changed return of StartSession to Self
2007-04-27 11:06:58 +00:00
Fernando Mancera
c3f3679b9b 2007-04-27 10:53 UTC+0100 2007-04-27 08:59:55 +00:00
Fernando Mancera
8a99fb896d ADORDD MySQL database sample 2007-04-27 08:49:43 +00:00
Fernando Mancera
190eab1e90 ADORDD Access database sample 2007-04-27 08:47:55 +00:00
Fernando Mancera
85dbafe7cb ADORDD makefile 2007-04-27 08:46:15 +00:00
Fernando Mancera
9d431f8dca ADORDD source code 2007-04-27 08:43:10 +00:00
Fernando Mancera
e9b55874f9 ADORDD header file 2007-04-27 08:40:56 +00:00
Viktor Szakats
addb19438e 2007-04-24 10:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/source/rtl/tget.prg
   * harbour/source/rtl/tgetint.prg
   * harbour/tests/rto_get.prg
     * Minor fixes, cleanups, formatting.
2007-04-24 08:38:50 +00:00
Viktor Szakats
1c11bc25db 2007-04-23 23:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/source/rtl/diskspac.c
     ! Fixed to return free space instead of disk size under Unix OSes.

   * harbour/source/rtl/tget.prg
     ! Fixed checking for invalid GET var types.
     ! More C5x compatible behaviour for invalid types.
     ! ::UnTransform() fixed when not in focus.
     - ::UnTransform() cBuffer incompatible parameter removed.
     ! ::Reform() probably made more compatible.
     + ::PosInBuffer() XBase++ compatible method implemented.
       (but not tested or compared with XBase++)
     ! ::Minus assignment fixed.
     ! ::Clear assignment fixed.
     ! ::Changed assignment fixed.
     ! ::Buffer assignment fixed.
     ! ::Block assignment fixed.
     ! ::Name assignment fixed.
     ! ::UnTransform() extra parameter removed.
     ! ::UpdateBuffer() minor fix when not in focus.
     ! ::Reform() made more compatible.
     % ::SetFocus() some superfluous stuff removed.
     % ::SetFocus() some fixes, cleanups.
     ! ::KillFocus() now sets ::TypeOut properly.
     ! ::VarPut(), ::VarGet() fixed for invalid ::Subscript contents.
     ! ::VarPut(), ::VarGet() fixed for invalid ::Block content.
     ! ::Pos rewritten to be fully compatible.
     ! ::ColorSpec made fully compatible.
     ! ::UnTransform() fixed when not in focus.
     ! ::UnTransform() fixed handling "YL" in string pictures.
     % ::UnTransform() minor optimization.
     % ::PutMask() some hacks removed.
     ! ::PutMask() invalid types handling.
     ! ::BackSpace() fixed when not in focus.
     ! ::Delete() fixed when not in focus.
     ! ::DeleteAll() fixed when not in focus.
     ! ::IsEditable() fixes.
     ! ::Picture fixes for invalid types, assignment behaviour.
     ! ::Picture hacks removed.
     ! Non-assignable vars made READONLY. (will generate
       different RTEs than in CA-Cl*pper due to the more
       refined oo engine in Harbour.)
     ! ::BadDate changed to be a METHOD.
     ! ::ToDecPos fixes.
     ! ::Row assigment and behaviour fixes.
     ! ::Col assigment and behaviour fixes.
     + Several comments and NOTEs added.

   * harbour/include/hbapigt.h
   * harbour/source/rtl/gtapi.c
   * harbour/source/rtl/setcolor.c
     + hb_gtColorsToString() public API added.
     + hb_NToColor() function added to convert a single color
       value (returned by hb_ColorToN()) back to a string.
       Used in TGet():ColorSpec implementation.

   * harbour/source/vm/fm.c
     * "Blocks" -> "Block(s)"

   * harbour/tests/rto_get.prg
     + Added many test cases.

   * harbour/source/vm/cmdarg.c
     + Added support to use "--" instead of "//" for internal
       command line options.

   * harbour/source/rtl/tbcolumn.prg
     + Formatting.

   * harbour/source/rtl/tbrowse.prg
     + Added Harbour (undocumented) extension NOTE.

   * harbour/include/Makefile
   - harbour/include/usrrdd.ch
   + harbour/include/hbusrrdd.ch
   * harbour/source/rdd/usrrdd/usrrdd.c
   * harbour/source/rdd/usrrdd/rdds/dbtcdx.prg
   * harbour/source/rdd/usrrdd/rdds/fcomma.prg
   * harbour/source/rdd/usrrdd/rdds/fptcdx.prg
   * harbour/source/rdd/usrrdd/rdds/hscdx.prg
   * harbour/source/rdd/usrrdd/rdds/rlcdx.prg
   * harbour/source/rdd/usrrdd/rdds/smtcdx.prg
   * harbour/contrib/pgsql/pgrdd.prg
     ! Changed public header filename to comply with the "hb*.ch" rule.
       (namespace protection)
2007-04-23 21:41:40 +00:00