-C Minor\schanges\sto\savoid\swarnings\son\ssome\scompilers.\s(CVS\s2267)
-D 2005-01-23T22:41:37
+C Modification\sto\sshell.c\sto\savoid\sa\scompiler\swarning\son\ssome\scompilers.\s(CVS\s2268)
+D 2005-01-23T23:43:22
F Makefile.in ffd81f5e926d40b457071b4de8d7c1fa18f39b5a
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
F src/printf.c 3d20b21cfecadacecac3fb7274e746cb81d3d357
F src/random.c eff68e3f257e05e81eae6c4d50a51eb88beb4ff3
F src/select.c e204ca5292751ed889f2cbcf2d2808a4d29edd2c
-F src/shell.c 591364a0e9ca4ce53873e21e0294476c0c2b4770
+F src/shell.c 1f0da77ef0520afd6df71f4781076021874310f3
F src/sqlite.h.in 7d7c28344e2bd770491b56ed9169be20859c707d
F src/sqliteInt.h be6fa5e31c65e2b8e10112ee47a6e63ec7de37b5
F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
F www/whentouse.tcl 3e522a06ad41992023c80ca29a048ae2331ca5bd
-P 1a64295e055d083539e05f069df6f1bea12e14b2
-R d8849dc8719dcdd857520d8fcc0fa116
+P 4daf1d1f9d4d32397d785d660394c5579c296b1f
+R 8df86275dd33cf0b616f418209c56803
U danielk1977
-Z b4da30a39691547fb689e1e570bb8249
+Z d19cfe2e48a816a764328ffd26ac041f
-4daf1d1f9d4d32397d785d660394c5579c296b1f
\ No newline at end of file
+0778383b6f9e6f58202ca20e74b399f8dce90ec4
\ No newline at end of file
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
-** $Id: shell.c,v 1.119 2005/01/13 11:10:25 danielk1977 Exp $
+** $Id: shell.c,v 1.120 2005/01/23 23:43:22 danielk1977 Exp $
*/
#include <stdlib.h>
#include <string.h>
zPrompt = mainPrompt;
}
zResult = readline(zPrompt);
+#if defined(HAVE_READLINE) && HAVE_READLINE==1
if( zResult ) add_history(zResult);
+#endif
return zResult;
}
}
}
+#ifdef SIGINT
/*
** This routine runs when the user presses Ctrl-C
*/
seenInterrupt = 1;
if( db ) sqlite3_interrupt(db);
}
+#endif
/*
** This is the callback routine that the SQLite library
if( zHome && (zHistory = malloc(strlen(zHome)+20))!=0 ){
sprintf(zHistory,"%s/.sqlite_history", zHome);
}
+#if defined(HAVE_READLINE) && HAVE_READLINE==1
if( zHistory ) read_history(zHistory);
+#endif
process_input(&data, 0);
if( zHistory ){
stifle_history(100);