/ Check-in [2ca8b822]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix testfixture linking problem by marking unix-only symbol as such. (CVS 5944)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2ca8b82247277baf3b81b5111988305ad5f67701
User & Date: pweilbacher 2008-11-21 23:35:03
Context
2008-11-22
18:28
Make sure the error message handler is able to deal with NULL expression spans. Ticket #3508. (CVS 5949) check-in: ce36b647 user: drh tags: trunk
2008-11-21
23:35
Fix testfixture linking problem by marking unix-only symbol as such. (CVS 5944) check-in: 2ca8b822 user: pweilbacher tags: trunk
22:21
Factor out and simplify the canonical pathname logic in the VxWorks OS interface. (CVS 5943) check-in: adb0aafa user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test1.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing all sorts of SQLite interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15     15   **
    16         -** $Id: test1.c,v 1.330 2008/11/21 00:10:35 aswift Exp $
           16  +** $Id: test1.c,v 1.331 2008/11/21 23:35:03 pweilbacher Exp $
    17     17   */
    18     18   #include "sqliteInt.h"
    19     19   #include "tcl.h"
    20     20   #include <stdlib.h>
    21     21   #include <string.h>
    22     22   
    23     23   /*
................................................................................
  4714   4714   */
  4715   4715   int Sqlitetest1_Init(Tcl_Interp *interp){
  4716   4716     extern int sqlite3_search_count;
  4717   4717     extern int sqlite3_interrupt_count;
  4718   4718     extern int sqlite3_open_file_count;
  4719   4719     extern int sqlite3_sort_count;
  4720   4720     extern int sqlite3_current_time;
         4721  +#if SQLITE_OS_UNIX
  4721   4722     extern int sqlite3_hostid_num;
         4723  +#endif
  4722   4724     extern int sqlite3_max_blobsize;
  4723   4725     extern int sqlite3BtreeSharedCacheReport(void*,
  4724   4726                                             Tcl_Interp*,int,Tcl_Obj*CONST*);
  4725   4727     static struct {
  4726   4728        char *zName;
  4727   4729        Tcl_CmdProc *xProc;
  4728   4730     } aCmd[] = {
................................................................................
  4932   4934         (char*)&sqlite3_like_count, TCL_LINK_INT);
  4933   4935     Tcl_LinkVar(interp, "sqlite_interrupt_count", 
  4934   4936         (char*)&sqlite3_interrupt_count, TCL_LINK_INT);
  4935   4937     Tcl_LinkVar(interp, "sqlite_open_file_count", 
  4936   4938         (char*)&sqlite3_open_file_count, TCL_LINK_INT);
  4937   4939     Tcl_LinkVar(interp, "sqlite_current_time", 
  4938   4940         (char*)&sqlite3_current_time, TCL_LINK_INT);
         4941  +#if SQLITE_OS_UNIX
  4939   4942     Tcl_LinkVar(interp, "sqlite_hostid_num", 
  4940   4943         (char*)&sqlite3_hostid_num, TCL_LINK_INT);
         4944  +#endif
  4941   4945     Tcl_LinkVar(interp, "sqlite3_xferopt_count",
  4942   4946         (char*)&sqlite3_xferopt_count, TCL_LINK_INT);
  4943   4947     Tcl_LinkVar(interp, "sqlite3_pager_readdb_count",
  4944   4948         (char*)&sqlite3_pager_readdb_count, TCL_LINK_INT);
  4945   4949     Tcl_LinkVar(interp, "sqlite3_pager_writedb_count",
  4946   4950         (char*)&sqlite3_pager_writedb_count, TCL_LINK_INT);
  4947   4951     Tcl_LinkVar(interp, "sqlite3_pager_writej_count",