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

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

Issue 6835006: Convert to SQLite amalgamation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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/src/ext/fts2/fts2.c ('k') | third_party/sqlite/src/main.mk » ('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 10 matching lines...) Expand all
21 ** (in which case SQLITE_CORE is not defined), or 21 ** (in which case SQLITE_CORE is not defined), or
22 ** 22 **
23 ** * The FTS2 module is being built into the core of 23 ** * The FTS2 module is being built into the core of
24 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined). 24 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined).
25 */ 25 */
26 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) 26 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2)
27 27
28 28
29 #include "sqlite3.h" 29 #include "sqlite3.h"
30 #include "sqlite3ext.h" 30 #include "sqlite3ext.h"
31 SQLITE_EXTENSION_INIT1 31 #ifndef SQLITE_CORE
32 SQLITE_EXTENSION_INIT1
33 #endif
32 34
33 #include "fts2_hash.h" 35 #include "fts2_hash.h"
34 #include "fts2_tokenizer.h" 36 #include "fts2_tokenizer.h"
35 #include <assert.h> 37 #include <assert.h>
36 #include <stddef.h> 38 #include <stddef.h>
37 39
38 /* 40 /*
39 ** Implementation of the SQL scalar function for accessing the underlying 41 ** Implementation of the SQL scalar function for accessing the underlying
40 ** hash table. This function may be called as follows: 42 ** hash table. This function may be called as follows:
41 ** 43 **
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 || (rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0)) 365 || (rc = sqlite3_create_function(db, zTest2, 0, any, pdb, intTestFunc, 0, 0))
364 #endif 366 #endif
365 ); 367 );
366 368
367 sqlite3_free(zTest); 369 sqlite3_free(zTest);
368 sqlite3_free(zTest2); 370 sqlite3_free(zTest2);
369 return rc; 371 return rc;
370 } 372 }
371 373
372 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */ 374 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts2/fts2.c ('k') | third_party/sqlite/src/main.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698