2 * psql - the PostgreSQL interactive terminal
4 * Copyright 2000 by PostgreSQL Global Development Group
6 * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.17 2002/09/04 20:31:36 momjian Exp $
12 * If some other file needs to have access to readline/history, include this
13 * file and save yourself all this work.
15 * USE_READLINE is the definite pointers regarding existence or not.
17 #ifdef HAVE_LIBREADLINE
18 #define USE_READLINE 1
19 #if defined(HAVE_READLINE_READLINE_H)
20 #include <readline/readline.h>
21 #elif defined(HAVE_READLINE_H)
24 #if defined(HAVE_READLINE_HISTORY_H)
25 #include <readline/history.h>
26 #elif defined(HAVE_HISTORY_H)
31 char *gets_interactive(char *prompt);
32 char *gets_fromFile(FILE *source);
34 void initializeInput(int flags);
35 bool saveHistory(char *fname);