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

Side by Side Diff: third_party/sqlite/src/src/test_osinst.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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 | « third_party/sqlite/src/src/test_onefile.c ('k') | third_party/sqlite/src/src/test_quota.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 ** 2008 April 10 2 ** 2008 April 10
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 637
638 #ifdef SQLITE_TEST 638 #ifdef SQLITE_TEST
639 sqlite3_io_error_pending = pending; 639 sqlite3_io_error_pending = pending;
640 sqlite3_io_error_persist = persist; 640 sqlite3_io_error_persist = persist;
641 sqlite3_diskfull_pending = diskfull; 641 sqlite3_diskfull_pending = diskfull;
642 #endif 642 #endif
643 } 643 }
644 644
645 static void put32bits(unsigned char *p, unsigned int v){ 645 static void put32bits(unsigned char *p, unsigned int v){
646 p[0] = v>>24; 646 p[0] = v>>24;
647 p[1] = v>>16; 647 p[1] = (unsigned char)(v>>16);
648 p[2] = v>>8; 648 p[2] = (unsigned char)(v>>8);
649 p[3] = v; 649 p[3] = (unsigned char)v;
650 } 650 }
651 651
652 static void vfslog_call( 652 static void vfslog_call(
653 sqlite3_vfs *pVfs, 653 sqlite3_vfs *pVfs,
654 int eEvent, 654 int eEvent,
655 int iFileid, 655 int iFileid,
656 sqlite3_int64 nClick, 656 sqlite3_int64 nClick,
657 int return_code, 657 int return_code,
658 int size, 658 int size,
659 int offset 659 int offset
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 } 1097 }
1098 #endif /* SQLITE_OMIT_VIRTUALTABLE */ 1098 #endif /* SQLITE_OMIT_VIRTUALTABLE */
1099 1099
1100 /************************************************************************** 1100 /**************************************************************************
1101 *************************************************************************** 1101 ***************************************************************************
1102 ** Tcl interface starts here. 1102 ** Tcl interface starts here.
1103 */ 1103 */
1104 1104
1105 #if defined(SQLITE_TEST) || defined(TCLSH) 1105 #if defined(SQLITE_TEST) || defined(TCLSH)
1106 1106
1107 #include <tcl.h> 1107 #if defined(INCLUDE_SQLITE_TCL_H)
1108 # include "sqlite_tcl.h"
1109 #else
1110 # include "tcl.h"
1111 # ifndef SQLITE_TCLAPI
1112 # define SQLITE_TCLAPI
1113 # endif
1114 #endif
1108 1115
1109 static int test_vfslog( 1116 static int SQLITE_TCLAPI test_vfslog(
1110 void *clientData, 1117 void *clientData,
1111 Tcl_Interp *interp, 1118 Tcl_Interp *interp,
1112 int objc, 1119 int objc,
1113 Tcl_Obj *CONST objv[] 1120 Tcl_Obj *CONST objv[]
1114 ){ 1121 ){
1115 struct SqliteDb { sqlite3 *db; }; 1122 struct SqliteDb { sqlite3 *db; };
1116 sqlite3 *db; 1123 sqlite3 *db;
1117 Tcl_CmdInfo cmdInfo; 1124 Tcl_CmdInfo cmdInfo;
1118 int rc = SQLITE_ERROR; 1125 int rc = SQLITE_ERROR;
1119 1126
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 1215
1209 return TCL_OK; 1216 return TCL_OK;
1210 } 1217 }
1211 1218
1212 int SqlitetestOsinst_Init(Tcl_Interp *interp){ 1219 int SqlitetestOsinst_Init(Tcl_Interp *interp){
1213 Tcl_CreateObjCommand(interp, "vfslog", test_vfslog, 0, 0); 1220 Tcl_CreateObjCommand(interp, "vfslog", test_vfslog, 0, 0);
1214 return TCL_OK; 1221 return TCL_OK;
1215 } 1222 }
1216 1223
1217 #endif /* SQLITE_TEST */ 1224 #endif /* SQLITE_TEST */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/test_onefile.c ('k') | third_party/sqlite/src/src/test_quota.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698