X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fearly-pprint.lisp;h=407059c255a55bc665e1cbb57115a2815b7a71d3;hb=0e03a9ac950b78d776c4869c809e202d9e929f39;hp=e620d16bf29fd8ce95546e621042317ba0454a2d;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/early-pprint.lisp b/src/code/early-pprint.lisp index e620d16..407059c 100644 --- a/src/code/early-pprint.lisp +++ b/src/code/early-pprint.lisp @@ -76,17 +76,16 @@ (let ((,count-name 0)) (declare (type index ,count-name) (ignorable ,count-name)) ,@(when (and (or prefixp per-line-prefix-p) - (not (and (sb!xc:constantp (or prefix per-line-prefix) env) - ;; KLUDGE: EVAL-IN-ENV would - ;; be useful here. - (typep (eval (or prefix per-line-prefix)) 'string)))) + (not (sb!int:constant-typep + (or prefix per-line-prefix) + 'string + env))) `((unless (typep ,(or prefix per-line-prefix) 'string) (error 'type-error :datum ,(or prefix per-line-prefix) :expected-type 'string)))) ,@(when (and suffixp - (not (and (sb!xc:constantp suffix env) - (typep (eval suffix) 'string)))) + (not (sb!int:constant-typep suffix 'string env))) `((unless (typep ,suffix 'string) (error 'type-error :datum ,suffix