Fix a couple of build problems.

FossilOrigin-Name: a5d5468c0509d129e198bf9432190ee07cedb7af
This commit is contained in:
dan 2015-03-04 08:29:24 +00:00
parent f400282bdf
commit 47c467c80e
13 changed files with 61 additions and 25 deletions

View File

@ -13,6 +13,7 @@
** This is an SQLite module implementing full-text search.
*/
#if defined(SQLITE_ENABLE_FTS5)
#include "fts5Int.h"
@ -1962,5 +1963,6 @@ int sqlite3Fts5Init(sqlite3 *db){
}
return rc;
}
#endif /* defined(SQLITE_ENABLE_FTS5) */

View File

@ -11,6 +11,8 @@
******************************************************************************
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
#include <math.h>
@ -549,5 +551,6 @@ int sqlite3Fts5AuxInit(fts5_api *pApi){
return rc;
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -12,6 +12,7 @@
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
@ -294,6 +295,5 @@ void *sqlite3Fts5MallocZero(int *pRc, int nByte){
}
return pRet;
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -13,6 +13,9 @@
** This is an SQLite module implementing full-text search.
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
#define FTS5_DEFAULT_PAGE_SIZE 1000
@ -789,3 +792,4 @@ int sqlite3Fts5ConfigLoad(Fts5Config *pConfig, int iCookie){
return rc;
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -12,6 +12,9 @@
**
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
#include "fts5parse.h"
@ -1695,3 +1698,4 @@ int sqlite3Fts5ExprPoslist(Fts5Expr *pExpr, int iPhrase, const u8 **pa){
return 0;
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -12,6 +12,9 @@
**
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
typedef struct Fts5HashEntry Fts5HashEntry;
@ -457,3 +460,4 @@ void sqlite3Fts5HashScanEntry(
}
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -16,6 +16,8 @@
** the interface defined in fts5Int.h.
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
/*
@ -448,8 +450,8 @@ struct Fts5MultiSegIter {
**
** FTS5_SEGITER_REVERSE:
** This flag is only ever set if FTS5_SEGITER_ONETERM is also set. If
** it is set, iterate through docids in ascending order instead of the
** default descending order.
** it is set, iterate through docids in descending order instead of the
** default ascending order.
**
** iRowidOffset/nRowidOffset/aRowidOffset:
** These are used if the FTS5_SEGITER_REVERSE flag is set.
@ -5060,3 +5062,4 @@ int sqlite3Fts5IndexInit(sqlite3 *db){
return rc;
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -12,6 +12,9 @@
**
*/
#ifdef SQLITE_ENABLE_FTS5
#include "fts5Int.h"
struct Fts5Storage {
@ -986,3 +989,4 @@ int sqlite3Fts5StorageConfigValue(
}
#endif /* SQLITE_ENABLE_FTS5 */

View File

@ -12,10 +12,13 @@
**
*/
#ifdef SQLITE_TEST
#include <tcl.h>
#ifdef SQLITE_ENABLE_FTS5
#include "fts5.h"
#include <tcl.h>
#include <string.h>
#include <assert.h>
@ -856,5 +859,9 @@ int Fts5tcl_Init(Tcl_Interp *interp){
return TCL_OK;
}
#endif
#else /* SQLITE_ENABLE_FTS5 */
int Fts5tcl_Init(Tcl_Interp *interp){
return TCL_OK;
}
#endif /* SQLITE_ENABLE_FTS5 */
#endif /* SQLITE_TEST */

View File

@ -11,6 +11,8 @@
******************************************************************************
*/
#if defined(SQLITE_ENABLE_FTS5)
#include "fts5.h"
#include <string.h>
#include <assert.h>
@ -1221,5 +1223,6 @@ int sqlite3Fts5TokenizerInit(fts5_api *pApi){
return SQLITE_OK;
}
#endif /* defined(SQLITE_ENABLE_FTS5) */

View File

@ -636,8 +636,10 @@ fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon
rm -f fts5parse.h
./lemon $(OPTS) fts5parse.y
mv fts5parse.c fts5parse.c.orig
echo "#ifdef SQLITE_ENABLE_FTS5" > fts5parse.c
cat fts5parse.c.orig | sed 's/yy/fts5yy/g' | sed 's/YY/fts5YY/g' \
| sed 's/TOKEN/FTS5TOKEN/g' > fts5parse.c
| sed 's/TOKEN/FTS5TOKEN/g' >> fts5parse.c
echo "#endif /* SQLITE_ENABLE_FTS5 */" >> fts5parse.c
userauth.o: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR)

View File

@ -1,5 +1,5 @@
C Further\sminor\soptimizations\sto\sflushing\sfts5\sdata\sto\sdisk.
D 2015-02-27T09:41:10.812
C Fix\sa\scouple\sof\sbuild\sproblems.
D 2015-03-04T08:29:24.833
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 5407a688f4d77a05c18a8142be8ae5a2829dd610
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@ -104,18 +104,18 @@ F ext/fts3/unicode/CaseFolding.txt 8c678ca52ecc95e16bc7afc2dbf6fc9ffa05db8c
F ext/fts3/unicode/UnicodeData.txt cd07314edb62d49fde34debdaf92fa2aa69011e7
F ext/fts3/unicode/mkunicode.tcl 159c1194da0bc72f51b3c2eb71022568006dc5ad
F ext/fts5/extract_api_docs.tcl 55a6d648d516f35d9a1e580ac00de27154e1904a
F ext/fts5/fts5.c f2e899fba27ca33c8897635752c4c83a40dcb18d
F ext/fts5/fts5.c 1eb8ca073be5222c43e4eee5408764c2cbb4200b
F ext/fts5/fts5.h f931954065693898d26c51f23f1d27200184a69a
F ext/fts5/fts5Int.h 5c8efea3d0a1ccc70194225f8c402a1732ed5ad5
F ext/fts5/fts5_aux.c 549aef152b0fd46020f5595d861b1fd60b3f9b4f
F ext/fts5/fts5_buffer.c b92ba0eb67532d174934087f93716caf9a2168c7
F ext/fts5/fts5_config.c e3421a76c2abd33a05ac09df0c97c64952d1e700
F ext/fts5/fts5_expr.c eee52c9df84eade48eaa3f50c8876f44b552ff9b
F ext/fts5/fts5_hash.c 63ad0066ec83525f0dad5b416d9db6e06f7d39ac
F ext/fts5/fts5_index.c deb7a5b73ca79b297cb32ce604015d13ad4a129e
F ext/fts5/fts5_storage.c f7c12c9f454b2a525827b3d85fd222789236f548
F ext/fts5/fts5_tcl.c 1293fac2bb26903fd3d5cdee59c5885ba7e620d5
F ext/fts5/fts5_tokenize.c 0d108148c26132448487926fe683425002aee369
F ext/fts5/fts5_aux.c c64e56b08c5be52fa688c078259cf903b164937a
F ext/fts5/fts5_buffer.c 29f79841bf6eef5220eef41b122419b1bcb07b06
F ext/fts5/fts5_config.c 0847facc8914f57ea4452c43ce109200dc65e894
F ext/fts5/fts5_expr.c 5215137efab527577d36bdf9e44bfc2ec3e1be98
F ext/fts5/fts5_hash.c 6bc0f78cb3630c5ff27dbfb58847758e82c3d0ac
F ext/fts5/fts5_index.c db8dc4cf906245dfd8a8d724695b60d6f22b7654
F ext/fts5/fts5_storage.c ac0f0937059c8d4f38a1f13aa5f2c2cd7edf3e0d
F ext/fts5/fts5_tcl.c 617b6bb96545be8d9045de6967c688cd9cd15541
F ext/fts5/fts5_tokenize.c c3fe30914f7722941ea9e0092c07ab5ae87112e4
F ext/fts5/fts5_unicode2.c f74f53316377068812a1fa5a37819e6b8124631d
F ext/fts5/fts5parse.y 777da8e5819f75c217982c79c29d014c293acac9
F ext/fts5/mkportersteps.tcl 5acf962d2e0074f701620bb5308155fa1e4a63ba
@ -197,7 +197,7 @@ F ext/userauth/userauth.c 5fa3bdb492f481bbc1709fc83c91ebd13460c69e
F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895 x
F ltmain.sh 3ff0879076df340d2e23ae905484d8c15d5fdea8
F magic.txt 8273bf49ba3b0c8559cb2774495390c31fd61c60
F main.mk f53de1926f080336a0eb0f4807f122c5ee63aae3
F main.mk 784b787dbf04af12581b53ceca57116a2bd355e6
F mkopcodec.awk c2ff431854d702cdd2d779c9c0d1f58fa16fa4ea
F mkopcodeh.awk c6b3fa301db6ef7ac916b14c60868aeaec1337b5
F mkso.sh fd21c06b063bb16a5d25deea1752c2da6ac3ed83
@ -1284,7 +1284,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P bb104b3646c6f07ed002be7360b08433ee7980d4
R 7d2aff01dcb4baccf8d2147c84edd80c
P a07dcca9ef3821a6719ef9dbbc8ed861fa005035
R c94fdf40731aa277dc09f612ab9d1498
U dan
Z 8659a7b4b1b02ada86d180379ab48889
Z 4c98d611f9675f463f695743f454384f

View File

@ -1 +1 @@
a07dcca9ef3821a6719ef9dbbc8ed861fa005035
a5d5468c0509d129e198bf9432190ee07cedb7af