]> granicus.if.org Git - postgresql/blobdiff - src/bin/psql/input.h
Update copyright notices for year 2012.
[postgresql] / src / bin / psql / input.h
index 8c998691261b460b7c95f29dc568c428b4b64a38..ef2cc499527d787570e6de1df6d17fda50be2740 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * psql - the PostgreSQL interactive terminal
  *
- * Copyright (c) 2000-2008, PostgreSQL Global Development Group
+ * Copyright (c) 2000-2012, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.30 2008/01/01 19:45:56 momjian Exp $
+ * src/bin/psql/input.h
  */
 #ifndef INPUT_H
 #define INPUT_H
  */
 #ifdef HAVE_LIBREADLINE
 #define USE_READLINE 1
+
 #if defined(HAVE_READLINE_READLINE_H)
 #include <readline/readline.h>
+#if defined(HAVE_READLINE_HISTORY_H)
+#include <readline/history.h>
+#endif
 #elif defined(HAVE_EDITLINE_READLINE_H)
 #include <editline/readline.h>
+#if defined(HAVE_EDITLINE_HISTORY_H)
+#include <editline/history.h>
+#endif
 #elif defined(HAVE_READLINE_H)
 #include <readline.h>
-#endif
-#if defined(HAVE_READLINE_HISTORY_H)
-#include <readline/history.h>
-#elif defined(HAVE_EDITLINE_HISTORY_H)
-#include <editline/history.h>
-#elif defined(HAVE_HISTORY_H)
+#if defined(HAVE_HISTORY_H)
 #include <history.h>
 #endif
-#endif
+#endif   /* HAVE_READLINE_READLINE_H, etc */
+#endif   /* HAVE_LIBREADLINE */
 
 #include "pqexpbuffer.h"
 
@@ -39,7 +42,7 @@ char     *gets_interactive(const char *prompt);
 char      *gets_fromFile(FILE *source);
 
 void           initializeInput(int flags);
-bool           saveHistory(char *fname, bool encodeFlag);
+bool           saveHistory(char *fname, int max_lines, bool appendFlag, bool encodeFlag);
 
 void           pg_append_history(const char *s, PQExpBuffer history_buf);
 void           pg_send_history(PQExpBuffer history_buf);