/ Check-in [9b2691aa]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add magic comments to shell.c to make it easier for scripts to insert additional version information displays for custom builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9b2691aa911289d74bfe3edf45937a33fb7eaa8d
User & Date: drh 2011-12-12 16:51:50
Context
2011-12-12
18:21
Fix for the xFileSize method of test_multiplex.c when used on a file opened with the DELETEONCLOSE flag set. check-in: 713071c4 user: dan tags: trunk
16:51
Add magic comments to shell.c to make it easier for scripts to insert additional version information displays for custom builds. check-in: 9b2691aa user: drh tags: trunk
2011-12-11
22:44
In the multiplexor shim, when using 8+3 filenames, begin numbering journal overflow files with 101 instead of 001 to avoid name collisions with the main database file. check-in: 05bf8a0b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  2340   2340     if( HAS_TIMER && c=='t' && n>=5 && strncmp(azArg[0], "timer", n)==0
  2341   2341      && nArg==2
  2342   2342     ){
  2343   2343       enableTimer = booleanValue(azArg[1]);
  2344   2344     }else
  2345   2345     
  2346   2346     if( c=='v' && strncmp(azArg[0], "version", n)==0 ){
  2347         -    printf("SQLite %s %s\n",
         2347  +    printf("SQLite %s %s\n" /*extra-version-info*/,
  2348   2348           sqlite3_libversion(), sqlite3_sourceid());
  2349   2349     }else
  2350   2350   
  2351   2351     if( c=='w' && strncmp(azArg[0], "width", n)==0 && nArg>1 ){
  2352   2352       int j;
  2353   2353       assert( nArg<=ArraySize(azArg) );
  2354   2354       for(j=1; j<nArg && j<ArraySize(p->colWidth); j++){
................................................................................
  2937   2937       /* Run commands received from standard input
  2938   2938       */
  2939   2939       if( stdin_is_interactive ){
  2940   2940         char *zHome;
  2941   2941         char *zHistory = 0;
  2942   2942         int nHistory;
  2943   2943         printf(
  2944         -        "SQLite version %s %.19s\n"
         2944  +        "SQLite version %s %.19s\n" /*extra-version-info*/
  2945   2945           "Enter \".help\" for instructions\n"
  2946   2946           "Enter SQL statements terminated with a \";\"\n",
  2947   2947           sqlite3_libversion(), sqlite3_sourceid()
  2948   2948         );
  2949   2949         zHome = find_home_dir();
  2950   2950         if( zHome ){
  2951   2951           nHistory = strlen30(zHome) + 20;