readline.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef READLINEH
  2. #define READLINEH
  3. /* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
  4. *
  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.
  9. *
  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.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this software; see the file COPYING. If not, write to
  17. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301 USA
  19. *
  20. */
  21. #include "libguile/__scm.h"
  22. extern scm_t_option scm_readline_opts[];
  23. #define SCM_HISTORY_FILE_P scm_readline_opts[0].val
  24. #define SCM_HISTORY_LENGTH scm_readline_opts[1].val
  25. #define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val
  26. #define SCM_N_READLINE_OPTIONS 3
  27. extern SCM scm_readline_options (SCM setting);
  28. extern void scm_readline_init_ports (SCM inp, SCM outp);
  29. extern SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook);
  30. extern SCM scm_add_history (SCM txt);
  31. extern SCM scm_clear_history (void);
  32. extern SCM scm_read_history (SCM file);
  33. extern SCM scm_write_history (SCM file);
  34. extern SCM scm_filename_completion_function (SCM text, SCM continuep);
  35. extern void scm_init_readline (void);
  36. #ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL
  37. void rl_cleanup_after_signal ();
  38. void rl_free_line_state ();
  39. #endif
  40. #endif
  41. /*
  42. Local Variables:
  43. c-file-style: "gnu"
  44. End:
  45. */