Skip to content
Snippets Groups Projects
Commit 62aad356 authored by toy's avatar toy
Browse files

Marco Antoniotti's read-sequence and write-sequence routines that

"tries to be more intelligent about a bunch of `commonly' used
external format."
parent df25ed3e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.57 2001/07/08 17:37:52 pw Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.58 2002/02/04 17:22:14 toy Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -852,7 +852,10 @@
(fd-stream-bin stream) #'ill-bin)
(setf (fd-stream-in stream) #'ill-in
(fd-stream-bin stream) routine))
(when (eql size 1)
(when (or (eql size 1)
(eql size 2)
(eql size 4))
;; Support for n-byte operations on 8-, 16-, and 32-bit streams
(setf (fd-stream-n-bin stream) #'fd-stream-read-n-bytes)
(when buffer-p
(setf (lisp-stream-in-buffer stream)
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/struct.lisp,v 1.20 1998/05/04 01:27:16 dtc Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/struct.lisp,v 1.21 2002/02/04 17:22:15 toy Rel $")
;;;
;;; **********************************************************************
;;;
......@@ -33,7 +33,7 @@
(in-index in-buffer-length :type index) ; Index into in-buffer
(in #'ill-in :type function) ; Read-Char function
(bin #'ill-bin :type function) ; Byte input function
(n-bin #'ill-bin :type function) ; N-Byte input function
(n-bin #'ill-n-bin :type function) ; N-Byte input function
(out #'ill-out :type function) ; Write-Char function
(bout #'ill-bout :type function) ; Byte output function
(sout #'ill-out :type function) ; String output function
......
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