X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=buff-input.lisp;h=3d678431776039b30db330cb0588bc26c85496da;hb=23502ca70f35ba1f3a03dd623ca21a92a6064e14;hp=f0802bc0bff2b141479a24a27668c0c7ab7fbf57;hpb=8d831065b8e830ea8b257aa7befd53bee7f49d5d;p=kmrcl.git diff --git a/buff-input.lisp b/buff-input.lisp index f0802bc..3d67843 100644 --- a/buff-input.lisp +++ b/buff-input.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: buff-input.lisp,v 1.5 2003/05/05 19:54:14 kevin Exp $ +;;;; $Id: buff-input.lisp,v 1.7 2003/05/06 01:45:44 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -40,7 +40,8 @@ (setf (aref bufs i) (make-array max-field-len :element-type 'character :fill-pointer 0 :adjustable nil))) bufs)) -(defun read-buffered-fields (fields strm &optional (field-delim +field-delim+)) +(defun read-buffered-fields (fields strm &optional (field-delim +field-delim+) + (eof 'eof)) "Read a line from a stream into a field buffers" (declare (type base-char field-delim) (type vector fields)) @@ -48,7 +49,7 @@ (do ((ifield 0 (1+ ifield)) (linedone nil) (eof nil)) - (linedone (if eof 'eof fields)) + (linedone (if eof eof fields)) (declare (type fixnum ifield) (type boolean linedone eof)) (let ((field (aref fields ifield)))