# HG changeset patch # User jwe # Date 1112716190 0 # Node ID 3fe873712e079615b3b6957e8c4b35d238b7c668 # Parent 86185152b7a44c005f4cdfb6e656be0b04a9972b [project @ 2005-04-05 15:49:50 by jwe] diff -r 86185152b7a4 -r 3fe873712e07 src/ChangeLog --- a/src/ChangeLog Tue Apr 05 13:28:49 2005 +0000 +++ b/src/ChangeLog Tue Apr 05 15:49:50 2005 +0000 @@ -1,5 +1,8 @@ 2005-04-05 John W. Eaton + * oct-stream.cc (BEGIN_C_CONVERSION): Clear stream state if + we hit EOF after we read something. + * pt-assign.cc (tree_multi_assignment::rvalue): Allow assignments of the form [a,b,c] = x{:}. diff -r 86185152b7a4 -r 3fe873712e07 src/oct-stream.cc --- a/src/oct-stream.cc Tue Apr 05 13:28:49 2005 +0000 +++ b/src/oct-stream.cc Tue Apr 05 15:49:50 2005 +0000 @@ -1460,6 +1460,9 @@ \ tbuf[n] = '\0'; \ \ + if (n > 0 && c == EOF) \ + is.clear (); \ + \ std::string tmp = tbuf; \ \ delete [] tbuf