Overview
| Comment: | Flush output in SQL command line mode. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
70ae21443d263a8b84e5b55173ad819f |
| User & Date: | user on 2022-01-08 06:06:51.092 |
| Other Links: | manifest | tags |
Context
|
2022-01-12
| ||
| 02:28 | Use 23-bit code page numbers. check-in: 0ced76ece7 user: user tags: trunk | |
|
2022-01-08
| ||
| 06:06 | Flush output in SQL command line mode. check-in: 70ae21443d user: user tags: trunk | |
|
2022-01-07
| ||
| 05:46 | Implement divisions of levels in the list of levels menu in the game (only for puzzle sets that have any divisions). check-in: 5c59b19d96 user: user tags: trunk | |
Changes
Modified main.c
from [1f3827f98d]
to [d1bd9cc799].
| ︙ | |||
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 | 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 | + + |
case 'f': sqlite3_db_cacheflush(userdb); sqlite3_db_release_memory(userdb); break;
case 'i': puts(sqlite3_db_filename(userdb,"main")); break;
case 'q': exit(0); break;
case 'u': flush_usercache(); break;
case 'x': sqlite3_enable_load_extension(userdb,strtol(txt+2,0,0)); break;
default: fatal("Invalid dot command .%c\n",txt[1]);
}
fflush(stdout);
} else {
txt[n]=0;
if(sqlite3_complete(txt)) {
n=sqlite3_exec(userdb,txt,test_sql_callback,0,0);
if(bail && n) fatal("SQL error (%d): %s\n",n,sqlite3_errmsg(userdb));
else if(n) fprintf(stderr,"SQL error (%d): %s\n",n,sqlite3_errmsg(userdb));
n=0;
fflush(stdout);
} else {
txt[n++]='\n';
}
}
if(c==EOF) break;
} else {
txt[n++]=c;
|
| ︙ |