| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |