annotate lib/readline.h @ 17249:e542fd46ad6f

maint: update all copyright year number ranges Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 01 Jan 2013 00:50:58 +0000
parents 8250f2777afc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6023
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
1 /* readline.h --- Simple implementation of readline.
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc.
6023
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3 Written by Simon Josefsson
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 6023
diff changeset
5 This program is free software: you can redistribute it and/or modify
6023
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 6023
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 6023
diff changeset
8 (at your option) any later version.
6023
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
9
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
13 GNU General Public License for more details.
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
14
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 6023
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
6023
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
17
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
18 #ifndef GL_READLINE_H
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
19 #define GL_READLINE_H
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
20
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
21 #if HAVE_READLINE_READLINE_H
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
22 /* <readline/readline.h> makes use of the FILE type without including
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
23 <stdio.h> itself. */
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
24 # include <stdio.h>
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
25 # include <readline/readline.h>
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
26 #else
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
27 /* Prints a prompt PROMPT and then reads and returns a single line of
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
28 text from the user. If PROMPT is NULL or the empty string, no
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
29 prompt is displayed. The returned line is allocated with malloc;
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
30 the caller should free the line when it has finished with it. */
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
31 extern char *readline (const char *prompt);
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
32 #endif
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
33
dc4cf8f3232e Add readline.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
34 #endif /* GL_READLINE_H */