From: dan Date: Thu, 2 Nov 2023 18:10:22 +0000 (+0000) Subject: Fix a problem with amalgamation builds on this branch. X-Git-Tag: version-3.45.0~231^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b0fd0c5644f77a44dc915611aa1213cb4c8c99a;p=thirdparty%2Fsqlite.git Fix a problem with amalgamation builds on this branch. FossilOrigin-Name: 8f046c82c9cf51fc349674577c68d3d2499ee37009deacbf937d711d9930fd49 --- diff --git a/ext/fts5/fts5_tokenize.c b/ext/fts5/fts5_tokenize.c index 098d0c86b7..f12056170f 100644 --- a/ext/fts5/fts5_tokenize.c +++ b/ext/fts5/fts5_tokenize.c @@ -227,14 +227,14 @@ static const unsigned char sqlite3Utf8Trans1[] = { } \ } -#define SKIP_UTF8(zIn) { \ +#endif /* ifndef SQLITE_AMALGAMATION */ + +#define FTS5_SKIP_UTF8(zIn) { \ if( ((unsigned char)(*(zIn++)))>=0xc0 ){ \ while( (((unsigned char)*zIn) & 0xc0)==0x80 ){ zIn++; } \ } \ } -#endif /* ifndef SQLITE_AMALGAMATION */ - typedef struct Unicode61Tokenizer Unicode61Tokenizer; struct Unicode61Tokenizer { unsigned char aTokenChar[128]; /* ASCII range token characters */ @@ -1297,6 +1297,7 @@ static int fts5TriCreate( }else{ int i; pNew->bFold = 1; + pNew->iFoldParam = 0; for(i=0; rc==SQLITE_OK && i