Changeset 539


Ignore:
Timestamp:
Feb 15, 2004, 8:16:15 AM (21 years ago)
Author:
Gary Byers
Message:

WITH-OUTPUT-TO-STRING: don't quote element-type.

File:
1 edited

Legend:

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

    r496 r539  
    12561256        ,@(if index `((setf ,index (string-input-stream-index ,var))))))))
    12571257
    1258 (defmacro with-output-to-string ((var &optional string &key (element-type 'base-char))
     1258(defmacro with-output-to-string ((var &optional string &key (element-type 'base-char element-type-p))
    12591259                                 &body body
    12601260                                 &environment env)
     
    12621262    `(let ((,var ,(if string
    12631263                    `(%make-string-output-stream ,string)
    1264                     `(make-string-output-stream :element-type ',element-type))))
     1264                    `(make-string-output-stream :element-type ,(if element-type-p element-type `'base-char)))))
    12651265       ,@decls
    12661266       (unwind-protect
Note: See TracChangeset for help on using the changeset viewer.