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

Side by Side Diff: third_party/sqlite/src/tool/varint.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/tool/tostr.tcl ('k') | third_party/sqlite/src/tool/vdbe_profile.tcl » ('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 ** A utility program to translate SQLite varints into decimal and decimal 2 ** A utility program to translate SQLite varints into decimal and decimal
3 ** integers into varints. 3 ** integers into varints.
4 */ 4 */
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #if defined(_MSC_VER) || defined(__BORLANDC__) 9 #if defined(_MSC_VER) || defined(__BORLANDC__)
10 typedef __int64 i64; 10 typedef __int64 i64;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 } 115 }
116 n = putVarint(zHex, uX); 116 n = putVarint(zHex, uX);
117 printf("%lld =", (i64)uX); 117 printf("%lld =", (i64)uX);
118 for(i=0; i<n; i++){ 118 for(i=0; i<n; i++){
119 printf(" %c%c", toHex(zHex[i]>>4), toHex(zHex[i]&0x0f)); 119 printf(" %c%c", toHex(zHex[i]>>4), toHex(zHex[i]&0x0f));
120 } 120 }
121 printf("\n"); 121 printf("\n");
122 return 0; 122 return 0;
123 } 123 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/tostr.tcl ('k') | third_party/sqlite/src/tool/vdbe_profile.tcl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698