* Checked everything into CVS.
[bpt/guile.git] / guile-readline / readline.h
CommitLineData
c374ab69
MV
1#ifndef READLINEH
2#define READLINEH
3
4/* Copyright (C) 1997 Free Software Foundation, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 */
21
22#include "libguile/__scm.h"
23
24extern scm_option scm_readline_opts[];
25
26#define SCM_HISTORY_FILE_P scm_readline_opts[0].val
27#define SCM_HISTORY_LENGTH scm_readline_opts[1].val
28#define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val
29#define SCM_N_READLINE_OPTIONS 3
30
31extern SCM scm_readline_options (SCM setting);
32extern SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook);
33extern SCM scm_add_history (SCM txt);
34extern SCM scm_read_history (SCM file);
35extern SCM scm_write_history (SCM file);
36extern SCM scm_filename_completion_function (SCM text, SCM continuep);
37extern void scm_init_readline (void);
38
39#endif