When working with Gray streams, READ-LINE did not handle the EOF properly.

This commit is contained in:
Juan Jose Garcia Ripoll 2008-12-08 19:32:50 +01:00
parent 2f4aa7aa96
commit a3fdf8f7da
2 changed files with 9 additions and 1 deletions

View file

@ -200,6 +200,8 @@ ECL 8.9.0:
- WRITE-LINE did not work with gray streams (A. Vodonosov)
- When working with Gray streams, READ-LINE did not handle the EOF properly.
;;; Local Variables: ***
;;; mode:text ***
;;; fill-column:79 ***

View file

@ -1522,7 +1522,13 @@ do_read_delimited_list(int d, cl_object in, bool proper_list)
strm = stream_or_default_input(strm);
#ifdef ECL_CLOS_STREAMS
if (type_of(strm) != t_stream) {
return funcall(2, @'gray::stream-read-line', strm);
cl_object out = funcall(2, @'gray::stream-read-line', strm);
if (!Null(VALUES(1))) {
if (!Null(eof_errorp))
FEend_of_file(strm);
out = eof_value;
}
return out;
}
#endif
token = si_get_buffer_string();