Skip to content
Snippets Groups Projects
Commit 538c8ab2 authored by ram's avatar ram
Browse files

Declared the stream slots to be functions so that we don't have to mess around

doing type checks.
parent 0d403a63
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/struct.lisp,v 1.10 1991/03/04 16:51:30 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/struct.lisp,v 1.11 1991/05/21 21:25:15 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -60,15 +60,17 @@ ...@@ -60,15 +60,17 @@
(defconstant in-buffer-length 100 "The size of a stream in-buffer.") (defconstant in-buffer-length 100 "The size of a stream in-buffer.")
(defstruct (stream (:predicate streamp) (:print-function %print-stream)) (defstruct (stream (:predicate streamp) (:print-function %print-stream))
(in-buffer nil) ; Buffered input ;;
(in-index in-buffer-length :type fixnum) ; Index into in-buffer ;; Buffered input.
(in #'ill-in) ; Read-Char function (in-buffer nil :type (or (simple-array * (*)) null))
(bin #'ill-bin) ; Byte input function (in-index in-buffer-length :type index) ; Index into in-buffer
(n-bin #'ill-bin) ; N-Byte input function (in #'ill-in :type function) ; Read-Char function
(out #'ill-out) ; Write-Char function (bin #'ill-bin :type function) ; Byte input function
(bout #'ill-bout) ; Byte output function (n-bin #'ill-bin :type function) ; N-Byte input function
(sout #'ill-out) ; String output function (out #'ill-out :type function) ; Write-Char function
(misc #'do-nothing)) ; Less used methods (bout #'ill-bout :type function) ; Byte output function
(sout #'ill-out :type function) ; String output function
(misc #'do-nothing :type function)) ; Less used methods
;;;; Alien structures: ;;;; Alien structures:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment