]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove SQLITE_TEST macros from fts5_test_mi.c. Add the SQLITE_FTS5_ENABLE_TEST_MI...
authordan <dan@noemail.net>
Thu, 18 Feb 2016 16:16:43 +0000 (16:16 +0000)
committerdan <dan@noemail.net>
Thu, 18 Feb 2016 16:16:43 +0000 (16:16 +0000)
FossilOrigin-Name: e2ef6667772eeac6eee3aed5d0609c2a0ef5d8cf

ext/fts5/fts5_main.c
ext/fts5/fts5_test_mi.c
manifest
manifest.uuid

index fe1d72e2b0ee1a399c856a8fb42c93ca78532f01..28f3f3e62c41f86528d15b065234f23dc556c2b3 100644 (file)
@@ -2665,6 +2665,17 @@ static int fts5Init(sqlite3 *db){
       );
     }
   }
+
+  /* If SQLITE_FTS5_ENABLE_TEST_MI is defined, assume that the file
+  ** fts5_test_mi.c is compiled and linked into the executable. And call
+  ** its entry point to enable the matchinfo() demo.  */
+#ifdef SQLITE_FTS5_ENABLE_TEST_MI
+  if( rc==SQLITE_OK ){
+    extern int sqlite3Fts5TestRegisterMatchinfo(sqlite3*);
+    rc = sqlite3Fts5TestRegisterMatchinfo(db);
+  }
+#endif
+
   return rc;
 }
 
index 28331773c030bb7c266eea60651513a2c39780ad..0987e9e1376c719ca71b93a49b707cbfd2cbbc4c 100644 (file)
 */
 
 
-#ifdef SQLITE_TEST
 #ifdef SQLITE_ENABLE_FTS5
 
 #include "fts5.h"
-#include <tcl.h>
 #include <assert.h>
 #include <string.h>
 
@@ -420,5 +418,4 @@ int sqlite3Fts5TestRegisterMatchinfo(sqlite3 *db){
 }
 
 #endif /* SQLITE_ENABLE_FTS5 */
-#endif /* SQLITE_TEST */
 
index a33ec564a2a603a90afff03dff69280f7219bfa5..4e7c23afdd603b338f26e35726f852b877faac37 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Version\s3.11.0
-D 2016-02-15T17:29:24.141
+C Remove\sSQLITE_TEST\smacros\sfrom\sfts5_test_mi.c.\sAdd\sthe\sSQLITE_FTS5_ENABLE_TEST_MI\scompile\stime\ssymbol\s-\sto\smake\sit\seasier\sto\screate\sbuilds\sthat\sinclude\sthe\sfts5\smatchinfo\sdemo\sby\sdefault.
+D 2016-02-18T16:16:43.028
 F Makefile.in 4e90dc1521879022aa9479268a4cd141d1771142
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 30f075dc4f27a07abb76088946b2944178d85347
@@ -105,10 +105,10 @@ F ext/fts5/fts5_config.c 35c5173cae4eb17e82164a7f5aeef56a48903079
 F ext/fts5/fts5_expr.c 8e8e4635f655133eb39018072fc0f0942a2c4337
 F ext/fts5/fts5_hash.c f3a7217c86eb8f272871be5f6aa1b6798960a337
 F ext/fts5/fts5_index.c c6cd5190c7e5dd94151cb17acd939c82e5c7be2d
-F ext/fts5/fts5_main.c 0e01ead4e817483e378e7e38e6d902f50b68d29e
+F ext/fts5/fts5_main.c db24ac714c6c4a1b3c24a1f8c25889f2952148c1
 F ext/fts5/fts5_storage.c f8343db90d8c95a4d4b52f6676e354b4649ffd6e
 F ext/fts5/fts5_tcl.c f8731e0508299bd43f1a2eff7dbeaac870768966
-F ext/fts5/fts5_test_mi.c 1ec66ffdf7632077fbd773b7a6df5153272ec070
+F ext/fts5/fts5_test_mi.c 31a42dc3dcf1eb6127a0a1acf42ab4aa1d5e5c81
 F ext/fts5/fts5_test_tok.c db08af63673c3a7d39f053b36fd6e065017706be
 F ext/fts5/fts5_tokenize.c 2ce7b44183538ec46b7907726262ee43ffdd39a8
 F ext/fts5/fts5_unicode2.c b450b209b157d598f7b9df9f837afb75a14c24bf
@@ -1427,10 +1427,12 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh ef6ebc6fd8d2dc35db3b622015c16a023d4fef4f
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P f694e60a79024967a3f4574e3928f0b28589d381
-R f2e9debe8cf42a0179962a66a44645cf
-T +bgcolor * #d0c0ff
-T +sym-release *
-T +sym-version-3.11.0 *
-U drh
-Z e719a8e2c047e401006dde85de2084bf
+P 3d862f207e3adc00f78066799ac5a8c282430a5f
+Q +31d8b69e9e0747e573516570bfe2770384e99134
+Q +87e6e225aea3a4d10476d16eab4a6403a4a128c9
+R 484f9306b9fcc0db5560ffd225058ba6
+T *branch * branch-3.11-matchinfo
+T *sym-branch-3.11-matchinfo *
+T -sym-trunk *
+U dan
+Z 3fda90a50bad45cca94156f3729f0ff4
index 474c1210cb346603ef2adc13788871baada7b2e0..6fc4c0871baa071a71ed26d297a0b169e3ba839c 100644 (file)
@@ -1 +1 @@
-3d862f207e3adc00f78066799ac5a8c282430a5f
\ No newline at end of file
+e2ef6667772eeac6eee3aed5d0609c2a0ef5d8cf
\ No newline at end of file