Bump versions.
[gsasl.git] / gl / readline.h
bloba5d339acc1cad3da5f77a951cbc1979795f9bc5a
1 /* readline.h --- Simple implementation of readline.
2 Copyright (C) 2005 Free Software Foundation, Inc.
3 Written by Simon Josefsson
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 #ifndef GL_READLINE_H
20 #define GL_READLINE_H
22 #if HAVE_READLINE_READLINE_H
23 /* <readline/readline.h> makes use of the FILE type without including
24 <stdio.h> itself. */
25 # include <stdio.h>
26 # include <readline/readline.h>
27 #else
28 /* Prints a prompt PROMPT and then reads and returns a single line of
29 text from the user. If PROMPT is NULL or the empty string, no
30 prompt is displayed. The returned line is allocated with malloc;
31 the caller should free the line when it has finished with it. */
32 extern char *readline (const char *prompt);
33 #endif
35 #endif /* GL_READLINE_H */