diff options
author | drh <drh@noemail.net> | 2006-09-02 14:16:59 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-09-02 14:16:59 +0000 |
commit | 7c2d87cd71cc09d7a50529541a6205ce57f0a865 (patch) | |
tree | ca6d5ea1a44c878cd15442ad563250e7fba44c63 /src | |
parent | aa29c13579946725de5a429a1e737babac35003b (diff) | |
download | sqlite-7c2d87cd71cc09d7a50529541a6205ce57f0a865.tar.gz sqlite-7c2d87cd71cc09d7a50529541a6205ce57f0a865.zip |
Convert static variables into constants in the FTS module. (CVS 3385)
FossilOrigin-Name: 098cbafcd6dcf57142b0417e796d27ffddcc0920
Diffstat (limited to 'src')
-rw-r--r-- | src/tclsqlite.c | 9 | ||||
-rw-r--r-- | src/vtab.c | 4 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 7a88e9634..7eec3af29 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -11,7 +11,7 @@ ************************************************************************* ** A TCL Interface to SQLite ** -** $Id: tclsqlite.c,v 1.172 2006/08/31 15:07:15 drh Exp $ +** $Id: tclsqlite.c,v 1.173 2006/09/02 14:17:00 drh Exp $ */ #ifndef NO_TCL /* Omit this whole file if TCL is unavailable */ @@ -2073,13 +2073,6 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ zArg = Tcl_GetStringFromObj(objv[1], 0); Tcl_CreateObjCommand(interp, zArg, DbObjCmd, (char*)p, DbDeleteCmd); -#ifdef SQLITE_ENABLE_FTS1 - { - extern int sqlite3Fts1Init(sqlite3*); - sqlite3Fts1Init(p->db); - } -#endif - /* If compiled with SQLITE_TEST turned on, then register the "md5sum" ** SQL function. */ diff --git a/src/vtab.c b/src/vtab.c index 2bb157166..be6b98823 100644 --- a/src/vtab.c +++ b/src/vtab.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains code used to help implement virtual tables. ** -** $Id: vtab.c,v 1.29 2006/07/26 16:22:15 danielk1977 Exp $ +** $Id: vtab.c,v 1.30 2006/09/02 14:17:00 drh Exp $ */ #ifndef SQLITE_OMIT_VIRTUALTABLE #include "sqliteInt.h" @@ -139,7 +139,7 @@ void sqlite3VtabBeginParse( */ static void addArgumentToVtab(Parse *pParse){ if( pParse->sArg.z && pParse->pNewTable ){ - const char *z = pParse->sArg.z; + const char *z = (const char*)pParse->sArg.z; int n = pParse->sArg.n; addModuleArgument(pParse->pNewTable, sqliteStrNDup(z, n)); } |