OLD | NEW |
1 /* | 1 /* |
2 ** 2004 May 22 | 2 ** 2004 May 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 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2777 assert(winSysInfo.dwAllocationGranularity > 0); | 2777 assert(winSysInfo.dwAllocationGranularity > 0); |
2778 #endif | 2778 #endif |
2779 | 2779 |
2780 sqlite3_vfs_register(&winVfs, 1); | 2780 sqlite3_vfs_register(&winVfs, 1); |
2781 return SQLITE_OK; | 2781 return SQLITE_OK; |
2782 } | 2782 } |
2783 int sqlite3_os_end(void){ | 2783 int sqlite3_os_end(void){ |
2784 return SQLITE_OK; | 2784 return SQLITE_OK; |
2785 } | 2785 } |
2786 | 2786 |
2787 void chromium_sqlite3_initialize_win_sqlite3_file(sqlite3_file* file, HANDLE han
dle) { | |
2788 winFile* winSQLite3File = (winFile*)file; | |
2789 memset(file, 0, sizeof(*file)); | |
2790 winSQLite3File->pMethod = &winIoMethod; | |
2791 winSQLite3File->h = handle; | |
2792 } | |
2793 | |
2794 #endif /* SQLITE_OS_WIN */ | 2787 #endif /* SQLITE_OS_WIN */ |
OLD | NEW |