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