OLD | NEW |
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 Loading... |
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 #ifndef CHROMIUM_SQLITE_API |
| 7419 #define CHROMIUM_SQLITE_API SQLITE_API |
| 7420 #endif |
7417 /* | 7421 /* |
7418 ** Call to initialize the recover virtual-table modules (see recover.c). | 7422 ** Call to initialize the recover virtual-table modules (see recover.c). |
7419 ** | 7423 ** |
7420 ** This could be loaded by default in main.c, but that would make the | 7424 ** 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 | 7425 ** virtual table available to Web SQL. Breaking it out allows only |
7422 ** selected users to enable it (currently sql/recovery.cc). | 7426 ** selected users to enable it (currently sql/recovery.cc). |
7423 */ | 7427 */ |
| 7428 CHROMIUM_SQLITE_API |
7424 int recoverVtableInit(sqlite3 *db); | 7429 int recoverVtableInit(sqlite3 *db); |
7425 /* End recover.patch for Chromium */ | 7430 /* End recover virtual table patch for Chromium */ |
| 7431 |
| 7432 /* Begin WebDatabase patch for Chromium */ |
| 7433 /* Expose some SQLite internals for the WebDatabase vfs. |
| 7434 ** DO NOT EXTEND THE USE OF THIS. |
| 7435 */ |
| 7436 #ifndef CHROMIUM_SQLITE_API |
| 7437 #define CHROMIUM_SQLITE_API SQLITE_API |
| 7438 #endif |
| 7439 #if defined(CHROMIUM_SQLITE_INTERNALS) |
| 7440 #ifdef _WIN32 |
| 7441 CHROMIUM_SQLITE_API |
| 7442 void chromium_sqlite3_initialize_win_sqlite3_file(sqlite3_file* file, HANDLE han
dle); |
| 7443 #else /* _WIN32 */ |
| 7444 CHROMIUM_SQLITE_API |
| 7445 void chromium_sqlite3_initialize_unix_sqlite3_file(sqlite3_file* file); |
| 7446 CHROMIUM_SQLITE_API |
| 7447 int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, |
| 7448 int fd, |
| 7449 int dirfd, |
| 7450 sqlite3_file* file, |
| 7451 const char* fileName, |
| 7452 int noLock); |
| 7453 CHROMIUM_SQLITE_API |
| 7454 int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file, |
| 7455 const char* fileName, |
| 7456 int flags, |
| 7457 int* fd); |
| 7458 CHROMIUM_SQLITE_API |
| 7459 void chromium_sqlite3_update_reusable_file_handle(sqlite3_file* file, |
| 7460 int fd, |
| 7461 int flags); |
| 7462 CHROMIUM_SQLITE_API |
| 7463 void chromium_sqlite3_destroy_reusable_file_handle(sqlite3_file* file); |
| 7464 #endif /* _WIN32 */ |
| 7465 #endif /* CHROMIUM_SQLITE_INTERNALS */ |
| 7466 /* End WebDatabase patch for Chromium */ |
7426 | 7467 |
7427 /* | 7468 /* |
7428 ** Undo the hack that converts floating point types to integer for | 7469 ** Undo the hack that converts floating point types to integer for |
7429 ** builds on processors without floating point support. | 7470 ** builds on processors without floating point support. |
7430 */ | 7471 */ |
7431 #ifdef SQLITE_OMIT_FLOATING_POINT | 7472 #ifdef SQLITE_OMIT_FLOATING_POINT |
7432 # undef double | 7473 # undef double |
7433 #endif | 7474 #endif |
7434 | 7475 |
7435 #ifdef __cplusplus | 7476 #ifdef __cplusplus |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7545 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */ | 7586 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */ |
7546 #define FULLY_WITHIN 2 /* Object fully contained within query region */ | 7587 #define FULLY_WITHIN 2 /* Object fully contained within query region */ |
7547 | 7588 |
7548 | 7589 |
7549 #ifdef __cplusplus | 7590 #ifdef __cplusplus |
7550 } /* end of the 'extern "C"' block */ | 7591 } /* end of the 'extern "C"' block */ |
7551 #endif | 7592 #endif |
7552 | 7593 |
7553 #endif /* ifndef _SQLITE3RTREE_H_ */ | 7594 #endif /* ifndef _SQLITE3RTREE_H_ */ |
7554 | 7595 |
OLD | NEW |