Changeset 5397


Ignore:
Timestamp:
Oct 22, 2006, 6:59:49 AM (18 years ago)
Author:
Gary Byers
Message:

If WITH-OUTPUT-TO-STRING gets the string, do so before the stream closes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/macros.lisp

    r5296 r5397  
    13641364                    `(make-string-input-stream ,string ,(or start 0) ,end)))))
    13651365      ,@decls
    1366       (multiple-value-prog1 (unwind-protect
    1367                                  (progn ,@forms)
    1368                               (close ,var))
    1369         ,@(if index `((setf ,index (string-input-stream-index ,var))))))))
     1366      (unwind-protect
     1367           (multiple-value-prog1
     1368               (progn ,@forms)
     1369             ,@(if index `((setf ,index (string-input-stream-index ,var)))))
     1370        (close ,var)))))
    13701371
    13711372(defmacro with-output-to-string ((var &optional string &key (element-type 'base-char element-type-p))
Note: See TracChangeset for help on using the changeset viewer.