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

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/tool/diffdb.c

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 ** A utility for printing the differences between two SQLite database files. 2 ** A utility for printing the differences between two SQLite database files.
3 */ 3 */
4 #include <stdio.h> 4 #include <stdio.h>
5 #include <ctype.h> 5 #include <ctype.h>
6 #include <sys/types.h> 6 #include <sys/types.h>
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 24 matching lines...) Expand all
35 while( read(db1, a1, PAGESIZE)==PAGESIZE && read(db2,a2,PAGESIZE)==PAGESIZE ){ 35 while( read(db1, a1, PAGESIZE)==PAGESIZE && read(db2,a2,PAGESIZE)==PAGESIZE ){
36 if( memcmp(a1,a2,PAGESIZE) ){ 36 if( memcmp(a1,a2,PAGESIZE) ){
37 printf("Page %d\n", iPg); 37 printf("Page %d\n", iPg);
38 } 38 }
39 iPg++; 39 iPg++;
40 } 40 }
41 printf("%d pages checked\n", iPg-1); 41 printf("%d pages checked\n", iPg-1);
42 close(db1); 42 close(db1);
43 close(db2); 43 close(db2);
44 } 44 }
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/tool/checkSpacing.c ('k') | third_party/sqlite/sqlite-src-3080704/tool/extract.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698