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

Side by Side Diff: third_party/sqlite/ext/fts3/fts3_tokenizer.c

Issue 1638019: Applying fts2.patch to fts3. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/ext/fts3/fts3_icu.c ('k') | third_party/sqlite/fts3.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2007 June 22 2 ** 2007 June 22
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 15 matching lines...) Expand all
26 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) 26 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3)
27 27
28 #include "sqlite3ext.h" 28 #include "sqlite3ext.h"
29 #ifndef SQLITE_CORE 29 #ifndef SQLITE_CORE
30 SQLITE_EXTENSION_INIT1 30 SQLITE_EXTENSION_INIT1
31 #endif 31 #endif
32 32
33 #include "fts3_hash.h" 33 #include "fts3_hash.h"
34 #include "fts3_tokenizer.h" 34 #include "fts3_tokenizer.h"
35 #include <assert.h> 35 #include <assert.h>
36 #include <stddef.h>
36 37
37 /* 38 /*
38 ** Implementation of the SQL scalar function for accessing the underlying 39 ** Implementation of the SQL scalar function for accessing the underlying
39 ** hash table. This function may be called as follows: 40 ** hash table. This function may be called as follows:
40 ** 41 **
41 ** SELECT <function-name>(<key-name>); 42 ** SELECT <function-name>(<key-name>);
42 ** SELECT <function-name>(<key-name>, <pointer>); 43 ** SELECT <function-name>(<key-name>, <pointer>);
43 ** 44 **
44 ** where <function-name> is the name passed as the second argument 45 ** where <function-name> is the name passed as the second argument
45 ** to the sqlite3Fts3InitHashTable() function (e.g. 'fts3_tokenizer'). 46 ** to the sqlite3Fts3InitHashTable() function (e.g. 'fts3_tokenizer').
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 || (rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0)) 363 || (rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0))
363 #endif 364 #endif
364 ); 365 );
365 366
366 sqlite3_free(zTest); 367 sqlite3_free(zTest);
367 sqlite3_free(zTest2); 368 sqlite3_free(zTest2);
368 return rc; 369 return rc;
369 } 370 }
370 371
371 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */ 372 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */
OLDNEW
« no previous file with comments | « third_party/sqlite/ext/fts3/fts3_icu.c ('k') | third_party/sqlite/fts3.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698