2010-01-24 11:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* src/vm/estack.c
    ! Replaced printf() calls with hb_snprintf() and hb_conOutErr()
      calls. This will avoid reported problems where MinGW binary
      build refers to internal printf function. As a rule we should
      never use printf() in Harbour code. There are still a few
      commented ones in hbrtl.
      [TOMERGE 2.0]

  * src/vm/hvm.c
    ! Replaced printf() (commented) call with HB_TRACE().
      [TOMERGE 2.0]

  * utils/hbmk2/hbmk2.prg
    ! Fixed -build option not being recognized.
    ! Fixed -build option not being ignored in second option
      parsing loop.
    ! Fixed -lang= option not being ignored in second option
      parsing loop.
      [TOMERGE 2.0]

  * utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Extended help text for -head option.

  * contrib/hbwin/win_prn1.c
    % WIN_LOADBITMAPFILE() optimized to use hb_retclen_buffer().
    ! WIN_LOADBITMAPFILE() fixed to return empty string instead
      of NIL in case of file read failure.

  * examples/rddado/adordd.ch
    + Added new 'adCmd*' constants. From xhb.
      (2010-01-20 20:53 UTC+0100 Miguel Angel Marchuet)
    * Formatting.
This commit is contained in:
Viktor Szakats
2010-01-24 11:02:50 +00:00
parent dee1085796
commit 7022c7e00a
8 changed files with 110 additions and 61 deletions

View File

@@ -54,19 +54,19 @@
#ifndef _ADORDD_CH
#define _ADORDD_CH
// Cursor Type
/* Cursor Type */
#define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
// Lock Types
/* Lock Types */
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
// Field Types
/* Field Types */
#define adEmpty 0
#define adTinyInt 16
#define adSmallInt 2
@@ -106,7 +106,7 @@
#define adFileTime 64
#define adPropVariant 138
#define adVarNumeric 139
#define adArray // &H2000
#define adArray /* &H2000 */
#define adRecDeleted 4
@@ -117,14 +117,14 @@
#define adKeyForeign 2
// Constant Group: ObjectStateEnum
/* Constant Group: ObjectStateEnum */
#define adStateClosed 0
#define adStateOpen 1
#define adStateConnecting 2
#define adStateExecuting 4
#define adStateFetching 8
// Constant Group: SchemaEnum
/* Constant Group: SchemaEnum */
#define adSchemaProviderSpecific ( -1 )
#define adSchemaAsserts 0
#define adSchemaCatalogs 1
@@ -172,21 +172,30 @@
#define adSchemaCommands 42
#define adSchemaSets 43
// Constant Group: Supports
#define adAddNew 0x1000400 // Supports the AddNew method to add new records.
#define adApproxPosition 0x0004000 // Supports the AbsolutePosition and AbsolutePage properties.
#define adBookmark 0x0002000 // Supports the Bookmark property to gain access to specific records.
#define adDelete 0x1000800 // Supports the Delete method to delete records.
#define adFind 0x0080000 // Supports the Find method to locate a row in a Recordset.
#define adHoldRecords 0x0000100 // Retrieves more records or changes the next position without committing all pending changes.
#define adIndex 0x0100000 // Supports the Index property to name an index.
#define adMovePrevious 0x0000200 // Supports the MoveFirst and MovePrevious methods, and Move or GetRows methods to move the current record position backward without requiring bookmarks.
#define adNotify 0x0040000 // Indicates that the underlying data provider supports notifications (which determines whether Recordset events are supported).
#define adResync 0x0020000 // Supports the Resync method to update the cursor with the data that is visible in the underlying database.
#define adSeek 0x0200000 // Supports the Seek method to locate a row in a Recordset.
#define adUpdate 0x1008000 // Supports the Update method to modify existing data.
/* Constant Group: Supports */
#define adAddNew 0x1000400 /* Supports the AddNew method to add new records. */
#define adApproxPosition 0x0004000 /* Supports the AbsolutePosition and AbsolutePage properties. */
#define adBookmark 0x0002000 /* Supports the Bookmark property to gain access to specific records. */
#define adDelete 0x1000800 /* Supports the Delete method to delete records. */
#define adFind 0x0080000 /* Supports the Find method to locate a row in a Recordset. */
#define adHoldRecords 0x0000100 /* Retrieves more records or changes the next position without committing all pending changes. */
#define adIndex 0x0100000 /* Supports the Index property to name an index. */
#define adMovePrevious 0x0000200 /* Supports the MoveFirst and MovePrevious methods, and Move or GetRows methods to move the current record position backward without requiring bookmarks. */
#define adNotify 0x0040000 /* Indicates that the underlying data provider supports notifications (which determines whether Recordset events are supported). */
#define adResync 0x0020000 /* Supports the Resync method to update the cursor with the data that is visible in the underlying database. */
#define adSeek 0x0200000 /* Supports the Seek method to locate a row in a Recordset. */
#define adUpdate 0x1008000 /* Supports the Update method to modify existing data. */
#define adUpdateBatch 0x0010000
/* Command type */
#define adCmdUnspecified ( -1 )
#define adCmdUnknown 8
#define adCmdText 1
#define adCmdTable 2
#define adCmdStoredProc 4
#define adCmdFile 256
#define adCmdTableDirect 512
#command USE <(db)> [VIA <rdd>] [ALIAS <a>] [<nw: NEW>] ;
[<ex: EXCLUSIVE>] [<sh: SHARED>] [<ro: READONLY>] ;
[CODEPAGE <cp>] [INDEX <(index1)> [, <(indexN)>]] ;