From f565cf41ab8d71df0f4bece5443679d249258b17 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 18 Jan 2000 23:30:24 +0000 Subject: another set of cleanups --- src/bin/psql/input.h | 52 ++++++++++++++++++++++++---------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) (limited to 'src/bin/psql/input.h') diff --git a/src/bin/psql/input.h b/src/bin/psql/input.h index 675953efb4e..b8e7082900a 100644 --- a/src/bin/psql/input.h +++ b/src/bin/psql/input.h @@ -1,51 +1,47 @@ +/* + * psql - the PostgreSQL interactive terminal + * + * Copyright 2000 by PostgreSQL Global Development Team + * + * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.5 2000/01/18 23:30:23 petere Exp $ + */ #ifndef INPUT_H #define INPUT_H -#include #include #include -#include "settings.h" - -/* If some other file needs to have access to readline/history, include this +/* + * If some other file needs to have access to readline/history, include this * file and save yourself all this work. * * USE_READLINE and USE_HISTORY are the definite pointers regarding existence or not. */ #ifdef HAVE_LIBREADLINE -#ifdef HAVE_READLINE_H -#include -#define USE_READLINE 1 -#else -#if defined(HAVE_READLINE_READLINE_H) -#include -#define USE_READLINE 1 -#endif -#endif +# ifdef HAVE_READLINE_H +# include +# define USE_READLINE 1 +# elif defined(HAVE_READLINE_READLINE_H) +# include +# define USE_READLINE 1 +# endif #endif #if defined(HAVE_LIBHISTORY) || (defined(HAVE_LIBREADLINE) && defined(HAVE_HISTORY_IN_READLINE)) -#if defined(HAVE_HISTORY_H) -#include -#define USE_HISTORY 1 -#else -#if defined(HAVE_READLINE_HISTORY_H) -#include -#define USE_HISTORY 1 -#endif +# ifdef HAVE_HISTORY_H +# include +# define USE_HISTORY 1 +# elif defined(HAVE_READLINE_HISTORY_H) +# include +# define USE_HISTORY 1 +# endif #endif -#endif - char * gets_interactive(const char *prompt); - char * gets_fromFile(FILE *source); - void initializeInput(int flags); - bool saveHistory(const char *fname); - void finishInput(void); -#endif +#endif /* INPUT_H */ -- cgit v1.2.3