Simplify the with-*-syntax macros using with-clean-symbols

This commit is contained in:
Juan Jose Garcia Ripoll 2012-11-29 23:03:41 +01:00
parent 61e4cdb065
commit 4e17f5d1d8

View file

@ -247,8 +247,8 @@ the one defined in the ANSI standard. *print-base* is 10, *print-array* is t,
*package* is \"CL-USER\", etc."
(with-clean-symbols (%progv-list)
`(let ((%progv-list +io-syntax-progv-list+))
(progv (car (ext:truly-the cons %progv-list))
(cdr (ext:truly-the cons %progv-list))
(progv (si:cons-car %progv-list)
(si:cons-cdr %progv-list)
,@body))))
(defmacro with-ecl-io-syntax (&body body)
@ -257,8 +257,8 @@ The forms of the body are executed in a print environment that corresponds to
the one used internally by ECL compiled files."
(with-clean-symbols (%progv-list)
`(let ((%progv-list +ecl-syntax-progv-list+))
(progv (car (ext:truly-the cons %progv-list))
(cdr (ext:truly-the cons %progv-list))
(progv (si:cons-car %progv-list)
(si:cons-cdr %progv-list)
,@body))))
#-formatter