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

Side by Side Diff: third_party/sqlite/amalgamation/sqlite3.h

Issue 1312463002: [sql] Browser-side changes to allow sqlite to be a shlib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check removal of sql/proxy.* Created 5 years, 4 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
« no previous file with comments | « sql/sql.gyp ('k') | third_party/sqlite/amalgamation/sqlite3.c » ('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 ** 2001 September 15 2 ** 2001 September 15
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 7395 matching lines...) Expand 10 before | Expand all | Expand 10 after
7406 ** [SQLITE_ABORT] is also a [result code]. 7406 ** [SQLITE_ABORT] is also a [result code].
7407 */ 7407 */
7408 #define SQLITE_ROLLBACK 1 7408 #define SQLITE_ROLLBACK 1
7409 /* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */ 7409 /* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */
7410 #define SQLITE_FAIL 3 7410 #define SQLITE_FAIL 3
7411 /* #define SQLITE_ABORT 4 // Also an error code */ 7411 /* #define SQLITE_ABORT 4 // Also an error code */
7412 #define SQLITE_REPLACE 5 7412 #define SQLITE_REPLACE 5
7413 7413
7414 7414
7415 7415
7416 /* Begin recover.patch for Chromium */ 7416 /* Begin recover virtual table patch for Chromium */
7417 /* Our patches don't conform to SQLite's amalgamation processing. Hack it. */
7418 #define CHROMIUM_SQLITE_API SQLITE_API
7417 /* 7419 /*
7418 ** Call to initialize the recover virtual-table modules (see recover.c). 7420 ** Call to initialize the recover virtual-table modules (see recover.c).
7419 ** 7421 **
7420 ** This could be loaded by default in main.c, but that would make the 7422 ** This could be loaded by default in main.c, but that would make the
7421 ** virtual table available to Web SQL. Breaking it out allows only 7423 ** virtual table available to Web SQL. Breaking it out allows only
7422 ** selected users to enable it (currently sql/recovery.cc). 7424 ** selected users to enable it (currently sql/recovery.cc).
7423 */ 7425 */
7426 CHROMIUM_SQLITE_API
7424 int recoverVtableInit(sqlite3 *db); 7427 int recoverVtableInit(sqlite3 *db);
7425 /* End recover.patch for Chromium */ 7428 /* End recover virtual table patch for Chromium */
7429
7430 /* Begin WebDatabase patch for Chromium */
7431 /* Expose some SQLite internals for the WebDatabase vfs.
7432 ** DO NOT EXTEND THE USE OF THIS.
7433 */
7434 #if defined(CHROMIUM_SQLITE_INTERNALS)
7435 #ifdef _WIN32
7436 CHROMIUM_SQLITE_API
7437 void chromium_sqlite3_initialize_win_sqlite3_file(sqlite3_file* file, HANDLE han dle);
7438 #else /* _WIN32 */
7439 CHROMIUM_SQLITE_API
7440 void chromium_sqlite3_initialize_unix_sqlite3_file(sqlite3_file* file);
7441 CHROMIUM_SQLITE_API
7442 int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs,
7443 int fd,
7444 int dirfd,
7445 sqlite3_file* file,
7446 const char* fileName,
7447 int noLock);
7448 CHROMIUM_SQLITE_API
7449 int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file,
7450 const char* fileName,
7451 int flags,
7452 int* fd);
7453 CHROMIUM_SQLITE_API
7454 void chromium_sqlite3_update_reusable_file_handle(sqlite3_file* file,
7455 int fd,
7456 int flags);
7457 CHROMIUM_SQLITE_API
7458 void chromium_sqlite3_destroy_reusable_file_handle(sqlite3_file* file);
7459 #endif /* _WIN32 */
7460 #endif /* CHROMIUM_SQLITE_INTERNALS */
7461 /* End WebDatabase patch for Chromium */
7426 7462
7427 /* 7463 /*
7428 ** Undo the hack that converts floating point types to integer for 7464 ** Undo the hack that converts floating point types to integer for
7429 ** builds on processors without floating point support. 7465 ** builds on processors without floating point support.
7430 */ 7466 */
7431 #ifdef SQLITE_OMIT_FLOATING_POINT 7467 #ifdef SQLITE_OMIT_FLOATING_POINT
7432 # undef double 7468 # undef double
7433 #endif 7469 #endif
7434 7470
7435 #ifdef __cplusplus 7471 #ifdef __cplusplus
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
7538 sqlite3_rtree_dbl rScore; /* OUT: Write the score here */ 7574 sqlite3_rtree_dbl rScore; /* OUT: Write the score here */
7539 }; 7575 };
7540 7576
7541 /* 7577 /*
7542 ** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin. 7578 ** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
7543 */ 7579 */
7544 #define NOT_WITHIN 0 /* Object completely outside of query region */ 7580 #define NOT_WITHIN 0 /* Object completely outside of query region */
7545 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */ 7581 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */
7546 #define FULLY_WITHIN 2 /* Object fully contained within query region */ 7582 #define FULLY_WITHIN 2 /* Object fully contained within query region */
7547 7583
7548
7549 #ifdef __cplusplus 7584 #ifdef __cplusplus
7550 } /* end of the 'extern "C"' block */ 7585 } /* end of the 'extern "C"' block */
7551 #endif 7586 #endif
7552 7587
7553 #endif /* ifndef _SQLITE3RTREE_H_ */ 7588 #endif /* ifndef _SQLITE3RTREE_H_ */
7554 7589
OLDNEW
« no previous file with comments | « sql/sql.gyp ('k') | third_party/sqlite/amalgamation/sqlite3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698