/* * psql - the PostgreSQL interactive terminal * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.23.4.1 2009/08/24 16:18:42 tgl Exp $ */ #ifndef INPUT_H #define INPUT_H /* * If some other file needs to have access to readline/history, include this * file and save yourself all this work. * * USE_READLINE is the definite pointers regarding existence or not. */ #ifdef HAVE_LIBREADLINE #define USE_READLINE 1 #if defined(HAVE_READLINE_READLINE_H) #include #if defined(HAVE_READLINE_HISTORY_H) #include #endif #elif defined(HAVE_EDITLINE_READLINE_H) #include #if defined(HAVE_EDITLINE_HISTORY_H) #include #endif #elif defined(HAVE_READLINE_H) #include #if defined(HAVE_HISTORY_H) #include #endif #endif /* HAVE_READLINE_READLINE_H, etc */ #endif /* HAVE_LIBREADLINE */ char *gets_interactive(const char *prompt); char *gets_fromFile(FILE *source); void initializeInput(int flags); bool saveHistory(char *fname); #endif /* INPUT_H */