New WITH-STANDARD-IO-SYNTAX macro.

This commit is contained in:
jjgarcia 2001-09-29 11:02:05 +00:00
parent 29dcac3ccc
commit d8460be1cf
2 changed files with 24 additions and 0 deletions

View file

@ -278,6 +278,7 @@
with-open-file
with-open-stream
with-output-to-string
with-standard-io-syntax
write-to-string
y-or-n-p
yes-or-no-p

View file

@ -178,3 +178,26 @@
namestring year month day hour min sec))))))
;(provide 'iolib)
(defmacro with-standard-io-syntax (&body body)
`(let ((*package* (find-package :cl-user))
(*print-array* t)
(*print-base* 10)
(*print-case* :upcase)
(*print-circle* nil)
(*print-escape* t)
(*print-gensym* t)
(*print-length* nil)
(*print-level* nil)
(*print-lines* nil)
(*print-miser-width* nil)
(*print-pretty* nil)
(*print-radix* nil)
(*print-radably* t)
(*print-right-margin* nil)
(*read-base* 10)
(*read-default-float-format* 'single-float)
(*read-eval* t)
(*read-suppress* nil)
(*readtable* (copy-readtable (si::standard-readtable))))
,@body))