Changeset 11422


Ignore:
Timestamp:
12/06/08 12:16:01 (12 years ago)
Author:
ehuelsmann
Message:

Fix CLEAR-INPUT tests.

  • Stream.java:Stream::_clearInput(): Check for end-of-stream (-1) return value in

_readChar().

  • Stream.java:Stream::reader: make protected so that it becomes available to subclasses.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/open-external-format/src/org/armedbear/lisp/Stream.java

    r11419 r11422  
    6666  private boolean interactive;
    6767  private boolean open = true;
    68 
     68 
    6969  // Character input.
    70   private PushbackReader reader;
     70  protected PushbackReader reader;
    7171  protected int offset;
    7272  protected int lineNumber;
     
    20692069    if (reader != null)
    20702070      {
    2071         while (_charReady())
    2072           _readChar();
     2071        int c = 0;
     2072        while (_charReady() && (c >= 0))
     2073          c = _readChar();
    20732074      }
    20742075    else if (in != null)
Note: See TracChangeset for help on using the changeset viewer.