X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fansi-stream.lisp;h=663869fa64992551765177eda2f5502c3dd7b662;hb=b36697e233ff1ef1cc3ad2e687581520656d4755;hp=dc728e0706211cb9d173dc00dee39b806014eee4;hpb=08307967c71c580058a503d46aa087cfefcf8c69;p=sbcl.git diff --git a/src/code/ansi-stream.lisp b/src/code/ansi-stream.lisp index dc728e0..663869f 100644 --- a/src/code/ansi-stream.lisp +++ b/src/code/ansi-stream.lisp @@ -89,6 +89,9 @@ (deftype ansi-stream-in-buffer () `(simple-array (unsigned-byte 8) (,+ansi-stream-in-buffer-length+))) +(deftype ansi-stream-cin-buffer () + `(simple-array character (,+ansi-stream-in-buffer-length+))) + ;;; base class for ANSI standard streams (as opposed to the Gray ;;; streams extension) (defstruct (ansi-stream (:constructor nil) @@ -100,6 +103,7 @@ ;; slot must must be NIL, and the IN-INDEX must be ;; +ANSI-STREAM-IN-BUFFER-LENGTH+.) (in-buffer nil :type (or ansi-stream-in-buffer null)) + (cin-buffer nil :type (or ansi-stream-cin-buffer null)) (in-index +ansi-stream-in-buffer-length+ :type index) ;; buffered input functions