readline.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef READLINEH
  2. #define READLINEH
  3. /* Copyright (C) 1997, 1999, 2000 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., 59 Temple Place, Suite 330,
  18. * Boston, MA 02111-1307 USA
  19. *
  20. */
  21. #include "libguile/__scm.h"
  22. extern scm_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_read_history (SCM file);
  32. extern SCM scm_write_history (SCM file);
  33. extern SCM scm_filename_completion_function (SCM text, SCM continuep);
  34. extern void scm_init_readline (void);
  35. #ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL
  36. void rl_cleanup_after_signal ();
  37. void rl_free_line_state ();
  38. #endif
  39. #endif
  40. /*
  41. Local Variables:
  42. c-file-style: "gnu"
  43. End:
  44. */