|
#ifndef READLINEH |
|
#define READLINEH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <libguile.h> |
|
|
|
|
|
|
|
|
|
|
|
#if defined (SCM_RL_IMPORT) |
|
# define SCM_RL_API __declspec (dllimport) extern |
|
#elif defined (SCM_RL_EXPORT) || defined (DLL_EXPORT) |
|
# define SCM_RL_API __declspec (dllexport) extern |
|
#else |
|
# define SCM_RL_API extern |
|
#endif |
|
|
|
SCM_RL_API scm_t_option scm_readline_opts[]; |
|
|
|
#define SCM_HISTORY_FILE_P scm_readline_opts[0].val |
|
#define SCM_HISTORY_LENGTH scm_readline_opts[1].val |
|
#define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val |
|
#define SCM_READLINE_BRACKETED_PASTE scm_readline_opts[3].val |
|
#define SCM_N_READLINE_OPTIONS 4 |
|
|
|
SCM_RL_API SCM scm_readline_options (SCM setting); |
|
SCM_RL_API void scm_readline_init_ports (SCM inp, SCM outp); |
|
SCM_RL_API SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook); |
|
SCM_RL_API SCM scm_add_history (SCM txt); |
|
SCM_RL_API SCM scm_clear_history (void); |
|
SCM_RL_API SCM scm_read_history (SCM file); |
|
SCM_RL_API SCM scm_write_history (SCM file); |
|
SCM_RL_API SCM scm_filename_completion_function (SCM text, SCM continuep); |
|
SCM_RL_API void scm_init_readline (void); |
|
|
|
#ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL |
|
void rl_cleanup_after_signal (); |
|
void rl_free_line_state (); |
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|