gp_strdl.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gp_strdl.c,v 1.5 2002/06/16 05:48:55 lpd Exp $ */
  14. /* Default, stream-based readline implementation */
  15. #include "std.h"
  16. #include "gstypes.h"
  17. #include "gsmemory.h"
  18. #include "gp.h"
  19. int
  20. gp_readline_init(void **preadline_data, gs_memory_t * mem)
  21. {
  22. return 0;
  23. }
  24. int
  25. gp_readline(stream *s_in, stream *s_out, void *readline_data,
  26. gs_const_string *prompt, gs_string * buf,
  27. gs_memory_t * bufmem, uint * pcount, bool *pin_eol,
  28. bool (*is_stdin)(const stream *))
  29. {
  30. return sreadline(s_in, s_out, readline_data, prompt, buf, bufmem, pcount,
  31. pin_eol, is_stdin);
  32. }
  33. void
  34. gp_readline_finit(void *readline_data)
  35. {
  36. }