Changeset 5290


Ignore:
Timestamp:
Oct 5, 2006, 3:59:08 AM (18 years ago)
Author:
Gary Byers
Message:

Set class-prototypes for basic-streams just before we make the first one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-boot-2.lisp

    r5244 r5290  
    7373(defvar *stdout* ())
    7474(defvar *stderr* ())
     75
     76
     77(defun set-basic-stream-prototype (class)
     78  (when (subtypep class 'basic-stream)
     79    (setf (%class.prototype class) (or (%class.prototype class)
     80                                       (allocate-basic-stream class)))
     81    (dolist (subclass (class-direct-subclasses class))
     82      (set-basic-stream-prototype subclass))))
     83
     84(set-basic-stream-prototype (find-class 'basic-stream))
     85
    7586
    7687;;; The hard parts here have to do with setting up *TERMINAL-IO*.
Note: See TracChangeset for help on using the changeset viewer.