Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: third_party/sqlite/src/ext/fts2/fts2_porter.c

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2006 September 30 2 ** 2006 September 30
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 12 matching lines...) Expand all
23 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined). 23 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined).
24 */ 24 */
25 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) 25 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2)
26 26
27 27
28 #include <assert.h> 28 #include <assert.h>
29 #include <stdlib.h> 29 #include <stdlib.h>
30 #include <stdio.h> 30 #include <stdio.h>
31 #include <string.h> 31 #include <string.h>
32 32
33 #include "sqlite3.h"
34 #include "sqlite3ext.h"
35 SQLITE_EXTENSION_INIT3
33 #include "fts2_tokenizer.h" 36 #include "fts2_tokenizer.h"
34 37
35 /* 38 /*
36 ** Class derived from sqlite3_tokenizer 39 ** Class derived from sqlite3_tokenizer
37 */ 40 */
38 typedef struct porter_tokenizer { 41 typedef struct porter_tokenizer {
39 sqlite3_tokenizer base; /* Base class */ 42 sqlite3_tokenizer base; /* Base class */
40 } porter_tokenizer; 43 } porter_tokenizer;
41 44
42 /* 45 /*
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 ** Allocate a new porter tokenizer. Return a pointer to the new 635 ** Allocate a new porter tokenizer. Return a pointer to the new
633 ** tokenizer in *ppModule 636 ** tokenizer in *ppModule
634 */ 637 */
635 void sqlite3Fts2PorterTokenizerModule( 638 void sqlite3Fts2PorterTokenizerModule(
636 sqlite3_tokenizer_module const**ppModule 639 sqlite3_tokenizer_module const**ppModule
637 ){ 640 ){
638 *ppModule = &porterTokenizerModule; 641 *ppModule = &porterTokenizerModule;
639 } 642 }
640 643
641 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */ 644 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698