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

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

Issue 2363173002: [sqlite] Remove obsolete reference version 3.8.7.4. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/tool/diffdb.c
diff --git a/third_party/sqlite/sqlite-src-3080704/tool/diffdb.c b/third_party/sqlite/sqlite-src-3080704/tool/diffdb.c
deleted file mode 100644
index 0537d38723e6622ca13e47f036c72a1924fb4c77..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3080704/tool/diffdb.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
-** A utility for printing the differences between two SQLite database files.
-*/
-#include <stdio.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdlib.h>
-
-
-#define PAGESIZE 1024
-static int db1 = -1;
-static int db2 = -1;
-
-int main(int argc, char **argv){
- int iPg;
- unsigned char a1[PAGESIZE], a2[PAGESIZE];
- if( argc!=3 ){
- fprintf(stderr,"Usage: %s FILENAME FILENAME\n", argv[0]);
- exit(1);
- }
- db1 = open(argv[1], O_RDONLY);
- if( db1<0 ){
- fprintf(stderr,"%s: can't open %s\n", argv[0], argv[1]);
- exit(1);
- }
- db2 = open(argv[2], O_RDONLY);
- if( db2<0 ){
- fprintf(stderr,"%s: can't open %s\n", argv[0], argv[2]);
- exit(1);
- }
- iPg = 1;
- while( read(db1, a1, PAGESIZE)==PAGESIZE && read(db2,a2,PAGESIZE)==PAGESIZE ){
- if( memcmp(a1,a2,PAGESIZE) ){
- printf("Page %d\n", iPg);
- }
- iPg++;
- }
- printf("%d pages checked\n", iPg-1);
- close(db1);
- close(db2);
-}
« 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