mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Enhance the CLI and the fuzzcheck utility programs to report whether they
are compiled as 32-bit or 64-bit for things like the --version option. FossilOrigin-Name: ec7eeb055bfb0e5a4467d8a45fa53d84bb8ae80ca0474b687e2783e971648008
This commit is contained in:
@ -2031,7 +2031,9 @@ int main(int argc, char **argv){
|
||||
if( strcmp(z,"version")==0 ){
|
||||
int ii;
|
||||
const char *zz;
|
||||
printf("SQLite %s %s\n", sqlite3_libversion(), sqlite3_sourceid());
|
||||
printf("SQLite %s %s (%d-bit)\n",
|
||||
sqlite3_libversion(), sqlite3_sourceid(),
|
||||
8*(int)sizeof(char*));
|
||||
for(ii=0; (zz = sqlite3_compileoption_get(ii))!=0; ii++){
|
||||
printf("%s\n", zz);
|
||||
}
|
||||
@ -2536,9 +2538,10 @@ int main(int argc, char **argv){
|
||||
printf("fuzzcheck: %u query invariants checked\n", g.nInvariant);
|
||||
}
|
||||
printf("fuzzcheck: 0 errors out of %d tests in %d.%03d seconds\n"
|
||||
"SQLite %s %s\n",
|
||||
"SQLite %s %s (%d-bit)\n",
|
||||
nTest, (int)(iElapse/1000), (int)(iElapse%1000),
|
||||
sqlite3_libversion(), sqlite3_sourceid());
|
||||
sqlite3_libversion(), sqlite3_sourceid(),
|
||||
8*(int)sizeof(char*));
|
||||
}
|
||||
free(azSrcDb);
|
||||
free(pHeap);
|
||||
|
Reference in New Issue
Block a user