Add new operations `with-cmdl/{in,out}put-port'.
authorChris Hanson <org/chris-hanson/cph>
Mon, 6 Mar 1989 19:59:42 +0000 (19:59 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 6 Mar 1989 19:59:42 +0000 (19:59 +0000)
v7/src/runtime/rep.scm

index d26605146f6baf55d3294105da3f6ad151b70303..abd0b97d5869347373599a14a941cc2eb80fcd8c 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/rep.scm,v 14.8 1988/10/29 00:12:47 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/rep.scm,v 14.9 1989/03/06 19:59:42 cph Rel $
 
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -39,6 +39,10 @@ MIT in each case. |#
 \f
 (define (initialize-package!)
   (set! *nearest-cmdl* false)
+  (set! with-cmdl/input-port
+       (object-component-binder cmdl/input-port set-cmdl/input-port!))
+  (set! with-cmdl/output-port
+       (object-component-binder cmdl/output-port set-cmdl/output-port!))
   (set! hook/cmdl-prompt default/cmdl-prompt)
   (set! hook/cmdl-message default/cmdl-message)
   (set! cmdl-interrupt/breakpoint default/breakpoint)
@@ -132,6 +136,9 @@ MIT in each case. |#
     (if parent
        (cmdl/base parent)
        cmdl)))
+
+(define with-cmdl/input-port)
+(define with-cmdl/output-port)
 \f
 ;;;; Messages