1 /* Copyright (C) 1999 artofcode LLC. All rights reserved.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2 of the License, or (at your
6 option) any later version.
7
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 59 Temple Place, Suite 330, Boston, MA, 02111-1307.
16
17 */
18
19 /*$Id: gp_strdl.c,v 1.2.6.1.2.1 2003/01/17 00:49:02 giles Exp $ */
20 /* Default, stream-based readline implementation */
21 #include "std.h"
22 #include "gstypes.h"
23 #include "gsmemory.h"
24 #include "gp.h"
25
26 int
gp_readline_init(void ** preadline_data,gs_memory_t * mem)27 gp_readline_init(void **preadline_data, gs_memory_t * mem)
28 {
29 return 0;
30 }
31
32 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)(P1 (const stream *)))33 gp_readline(stream *s_in, stream *s_out, void *readline_data,
34 gs_const_string *prompt, gs_string * buf,
35 gs_memory_t * bufmem, uint * pcount, bool *pin_eol,
36 bool (*is_stdin)(P1(const stream *)))
37 {
38 return sreadline(s_in, s_out, readline_data, prompt, buf, bufmem, pcount,
39 pin_eol, is_stdin);
40 }
41
42 void
gp_readline_finit(void * readline_data)43 gp_readline_finit(void *readline_data)
44 {
45 }
46