Commit | Line | Data |
---|---|---|
c374ab69 MV |
1 | #ifndef READLINEH |
2 | #define READLINEH | |
3 | ||
a4bfce11 | 4 | /* Copyright (C) 1997, 1999 Free Software Foundation, Inc. |
c374ab69 MV |
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 | |
c6e23ea2 JB |
18 | * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
19 | * Boston, MA 02111-1307 USA | |
c374ab69 MV |
20 | * |
21 | */ | |
22 | ||
23 | #include "libguile/__scm.h" | |
24 | ||
25 | extern scm_option scm_readline_opts[]; | |
26 | ||
27 | #define SCM_HISTORY_FILE_P scm_readline_opts[0].val | |
28 | #define SCM_HISTORY_LENGTH scm_readline_opts[1].val | |
29 | #define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val | |
30 | #define SCM_N_READLINE_OPTIONS 3 | |
31 | ||
32 | extern SCM scm_readline_options (SCM setting); | |
2e3d5987 | 33 | extern void scm_readline_init_ports (SCM inp, SCM outp); |
c374ab69 MV |
34 | extern SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook); |
35 | extern SCM scm_add_history (SCM txt); | |
36 | extern SCM scm_read_history (SCM file); | |
37 | extern SCM scm_write_history (SCM file); | |
38 | extern SCM scm_filename_completion_function (SCM text, SCM continuep); | |
39 | extern void scm_init_readline (void); | |
40 | ||
2e3d5987 MD |
41 | #ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL |
42 | void rl_cleanup_after_signal (); | |
43 | void rl_free_line_state (); | |
44 | #endif | |
45 | ||
c374ab69 | 46 | #endif |