/ Check-in [fb121980]
Login

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

Overview
Comment:Add #ifdefs to allow a test build to succeed even if SQLITE_ENABLE_FTS3 is not defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fb121980e48af368353431fd04924e414b65c852
User & Date: drh 2012-04-02 17:18:23
Context
2012-04-02
21:35
The SQLITE_RTREE_INT_ONLY compile-time option causes the RTree extension to use only integer math and store only integer coordinates. check-in: 02b7640f user: drh tags: trunk
17:18
Add #ifdefs to allow a test build to succeed even if SQLITE_ENABLE_FTS3 is not defined. check-in: fb121980 user: drh tags: trunk
2012-03-31
19:12
Fix a compiler warning by removing a redundant variable. check-in: af602d87 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3_test.c.

    18     18   ** that the sqlite3_tokenizer_module.xLanguage() method is invoked correctly.
    19     19   */
    20     20   
    21     21   #include <tcl.h>
    22     22   #include <string.h>
    23     23   #include <assert.h>
    24     24   
    25         -#ifdef SQLITE_TEST
           25  +#if defined(SQLITE_TEST)
           26  +#if defined(SQLITE_ENABLE_FTS3) || defined(SQLITE_ENABLE_FTS4)
    26     27   
    27     28   /* Required so that the "ifdef SQLITE_ENABLE_FTS3" below works */
    28     29   #include "fts3Int.h"
    29     30   
    30     31   #define NM_MAX_TOKEN 12
    31     32   
    32     33   typedef struct NearPhrase NearPhrase;
................................................................................
   526    527         "fts3_configure_incr_load", fts3_configure_incr_load_cmd, 0, 0
   527    528     );
   528    529     Tcl_CreateObjCommand(
   529    530         interp, "fts3_test_tokenizer", fts3_test_tokenizer_cmd, 0, 0
   530    531     );
   531    532     return TCL_OK;
   532    533   }
          534  +#endif                  /* SQLITE_ENABLE_FTS3 || SQLITE_ENABLE_FTS4 */
   533    535   #endif                  /* ifdef SQLITE_TEST */