Changeset 5405
- Timestamp:
- Oct 23, 2006, 4:26:33 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/lib/macros.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/lib/macros.lisp
r5397 r5405 1377 1377 executed as an implicit progn with VAR bound to an output string stream. 1378 1378 All output to that string stream is saved in a string." 1379 (let (( e-type (gensym "e-type")))1379 (let ((string-var (gensym "string"))) 1380 1380 (multiple-value-bind (forms decls) (parse-body body env nil) 1381 `(let* ((, e-type ,(if element-type-p element-type `'base-char))1382 (,var (if ,string 1381 `(let* ((,string-var ,string) 1382 (,var (if ,string-var 1383 1383 (%make-string-output-stream ,string) 1384 (make-string-output-stream :element-type ,e-type)))) 1384 ,@(if element-type-p 1385 `((make-string-output-stream :element-type ',element-type)) 1386 `((make-string-output-stream)))))) 1385 1387 ,@decls 1386 1388 (unwind-protect
Note:
See TracChangeset
for help on using the changeset viewer.
