/ Check-in [e474fd9e]
Login

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

Overview
Comment:Changes to the shell which should, in theory, allow it to work with libeditline as an alternative to libreadline.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e474fd9e7f89644a7840e33e9df03dbaa4dd28bd
User & Date: drh 2010-12-08 00:02:26
Context
2010-12-08
03:28
The command-line shell ignore errors in sqlite3_close() when shutting down. check-in: 925332c3 user: drh tags: trunk
00:02
Changes to the shell which should, in theory, allow it to work with libeditline as an alternative to libreadline. check-in: e474fd9e user: drh tags: trunk
2010-12-07
23:24
Improved documentation for SQLITE_FCNTL_FILE_POINTER. check-in: 43935548 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

    34     34   # include <sys/types.h>
    35     35   #endif
    36     36   
    37     37   #ifdef __OS2__
    38     38   # include <unistd.h>
    39     39   #endif
    40     40   
           41  +#ifdef HAVE_EDITLINE
           42  +# include <editline/editline.h>
           43  +#endif
    41     44   #if defined(HAVE_READLINE) && HAVE_READLINE==1
    42     45   # include <readline/readline.h>
    43     46   # include <readline/history.h>
    44         -#else
           47  +#endif
           48  +#if !defined(HAVE_EDITLINE) && (!defined(HAVE_READLINE) || HAVE_READLINE!=1)
    45     49   # define readline(p) local_getline(p,stdin)
    46     50   # define add_history(X)
    47     51   # define read_history(X)
    48     52   # define write_history(X)
    49     53   # define stifle_history(X)
    50     54   #endif
    51     55