#| -*-Scheme-*-
-$Id: port.scm,v 1.33 2004/05/26 15:20:09 cph Exp $
+$Id: port.scm,v 1.34 2004/09/14 20:00:05 cph Exp $
Copyright 1991,1992,1993,1994,1997,1999 Massachusetts Institute of Technology
Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology
(define-structure (port (type-descriptor <port>)
(conc-name port/)
(constructor %make-port (%type %state)))
- (%type #f read-only #t)
+ %type
%state
(%thread-mutex (make-thread-mutex))
(unread #f)
(guarantee-port port 'PORT/TYPE)
(port/%type port))
+(define (set-port/type! port type)
+ (guarantee-port port 'SET-PORT/TYPE!)
+ (set-port/%type! port type))
+
(define (port/state port)
(guarantee-port port 'PORT/STATE)
(port/%state port))
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.490 2004/07/15 04:05:16 cph Exp $
+$Id: runtime.pkg,v 14.491 2004/09/14 20:00:27 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
console-output-port
set-console-i/o-port!)
(export (runtime emacs-interface)
+ set-port/type!
the-console-port)
(initialization (initialize-package!)))