#| -*-Scheme-*-
-$Id: genio.scm,v 1.19 2003/03/21 17:50:58 cph Exp $
+$Id: genio.scm,v 1.20 2004/01/11 07:17:57 cph Exp $
Copyright 1991,1993,1995,1996,1999,2002 Massachusetts Institute of Technology
-Copyright 2003 Massachusetts Institute of Technology
+Copyright 2003,2004 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
(CHAR-READY? ,operation/char-ready?)
(CHARS-REMAINING ,operation/chars-remaining)
(CLOSE-INPUT ,operation/close-input)
- (DISCARD-CHAR ,operation/discard-char)
+ (DISCARD-CHAR ,operation/read-char)
(DISCARD-CHARS ,operation/discard-chars)
(EOF? ,operation/eof?)
(INPUT-BLOCKING-MODE ,operation/input-blocking-mode)
(define (operation/chars-remaining port)
(input-buffer/chars-remaining (port/input-buffer port)))
-(define (operation/discard-char port)
- (input-buffer/discard-char (port/input-buffer port)))
-
(define (operation/discard-chars port delimiters)
(input-buffer/discard-until-delimiter (port/input-buffer port) delimiters))
#| -*-Scheme-*-
-$Id: io.scm,v 14.76 2003/11/11 01:53:38 cph Exp $
+$Id: io.scm,v 14.77 2004/01/11 07:18:01 cph Exp $
Copyright 1986,1987,1988,1990,1991,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1998,1999,2000,2001 Massachusetts Institute of Technology
-Copyright 2002,2003 Massachusetts Institute of Technology
+Copyright 2002,2003,2004 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
((fix:= n 0) eof-object)
(else
(string-ref (input-buffer/string buffer) 0))))))))))
-
-(define (input-buffer/discard-char buffer)
- (without-interrupts
- (lambda ()
- (let ((start-index (input-buffer/start-index buffer)))
- (cond ((fix:< start-index (input-buffer/end-index buffer))
- (set-input-buffer/start-index! buffer (fix:+ start-index 1)))
- ((input-buffer/open? buffer)
- (if (let ((n (input-buffer/fill buffer)))
- (and n
- (not (fix:= n 0))))
- (set-input-buffer/start-index! buffer 1))))))))
\f
(define (input-buffer/read-substring buffer string start end)
(define (transfer-input-buffer index)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.471 2004/01/09 21:12:19 cph Exp $
+$Id: runtime.pkg,v 14.472 2004/01/11 07:18:05 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
input-buffer/char-ready?
input-buffer/chars-remaining
input-buffer/close
- input-buffer/discard-char
input-buffer/discard-until-delimiter
input-buffer/eof?
input-buffer/open?