]> granicus.if.org Git - postgresql/blob - src/bin/psql/input.h
Translation updates, some messages tweaked.
[postgresql] / src / bin / psql / input.h
1 /*
2  * psql - the PostgreSQL interactive terminal
3  *
4  * Copyright 2000 by PostgreSQL Global Development Group
5  *
6  * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.17 2002/09/04 20:31:36 momjian Exp $
7  */
8 #ifndef INPUT_H
9 #define INPUT_H
10
11 /*
12  * If some other file needs to have access to readline/history, include this
13  * file and save yourself all this work.
14  *
15  * USE_READLINE is the definite pointers regarding existence or not.
16  */
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)
22 #include <readline.h>
23 #endif
24 #if defined(HAVE_READLINE_HISTORY_H)
25 #include <readline/history.h>
26 #elif defined(HAVE_HISTORY_H)
27 #include <history.h>
28 #endif
29 #endif
30
31 char       *gets_interactive(char *prompt);
32 char       *gets_fromFile(FILE *source);
33
34 void            initializeInput(int flags);
35 bool            saveHistory(char *fname);
36
37 #endif   /* INPUT_H */