#| -*-Scheme-*-
-$Id: genio.scm,v 1.57 2008/01/30 20:02:31 cph Exp $
+$Id: genio.scm,v 1.58 2008/02/02 01:48:51 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(lambda (string start end)
(channel-read channel string start end))))
-(define (make-non-channel-source has-input? read-substring)
+(define (make-non-channel-port-source has-input? read-substring)
(let ((port #f)
(open? #t))
(make-gsource (lambda () #f)
(lambda (string start end)
(channel-write channel string start end))))
-(define (make-non-channel-sink write-substring)
+(define (make-non-channel-port-sink write-substring)
(let ((port #f)
(open? #t))
(make-gsink (lambda () #f)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.631 2008/02/02 01:19:13 cph Exp $
+$Id: runtime.pkg,v 14.632 2008/02/02 01:48:52 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
generic-io/close-output
generic-io/flush-output
generic-io/read-char
- make-generic-i/o-port)
+ make-generic-i/o-port
+ make-non-channel-port-source
+ make-non-channel-port-sink)
(export (runtime console-i/o-port)
input-buffer-contents
make-gstate
port-input-buffer
port-output-buffer)
(export (runtime string-input)
- make-gstate
- make-non-channel-source)
+ make-gstate)
(export (runtime string-output)
- make-gstate
- make-non-channel-sink)
+ make-gstate)
(export (runtime truncated-string-output)
- make-gstate
- make-non-channel-sink)
+ make-gstate)
(initialization (initialize-package!)))
(define-package (runtime gensym)
#| -*-Scheme-*-
-$Id: strnin.scm,v 14.21 2008/01/30 20:02:35 cph Exp $
+$Id: strnin.scm,v 14.22 2008/02/02 01:48:54 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (make-string-source string start end)
(let ((index start))
- (make-non-channel-source
+ (make-non-channel-port-source
(lambda ()
(fix:< index end))
(lambda (string* start* end*)
#| -*-Scheme-*-
-$Id: strott.scm,v 14.18 2008/01/30 20:02:35 cph Exp $
+$Id: strott.scm,v 14.19 2008/02/02 01:48:55 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(set! index 0)
(k (cons #t s))))
- (values (make-non-channel-sink
+ (values (make-non-channel-port-sink
(lambda (string start end)
(without-interrupts
(lambda ()
#| -*-Scheme-*-
-$Id: strout.scm,v 14.29 2008/01/30 20:02:35 cph Exp $
+$Id: strout.scm,v 14.30 2008/02/02 01:48:56 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
n
(loop (fix:+ n n))))))
- (values (make-non-channel-sink
+ (values (make-non-channel-port-sink
(lambda (string start end)
(without-interrupts
(lambda ()