X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Ftime.lisp;h=d147a5933b73936f27f9487ea6a8d5590ddfb370;hb=760349abe9068fe4e5e3c03013f3533b64602a93;hp=1f2bacbec457c270cc4ce07fff5a3d05f2b222c7;hpb=5ec8d0c1c8b7939818b75118b472fac1af554f9a;p=sbcl.git diff --git a/src/pcl/time.lisp b/src/pcl/time.lisp index 1f2bacb..d147a59 100644 --- a/src/pcl/time.lisp +++ b/src/pcl/time.lisp @@ -98,14 +98,14 @@ (time (constant-keys-make-instance n))) (defun expand-all-macros (form) - (walk-form form nil #'(lambda (form context env) - (if (and (eq context :eval) - (consp form) - (symbolp (car form)) - (not (special-form-p (car form))) - (macro-function (car form))) - (values (macroexpand form env)) - form)))) + (walk-form form nil (lambda (form context env) + (if (and (eq context :eval) + (consp form) + (symbolp (car form)) + (not (special-form-p (car form))) + (macro-function (car form))) + (values (macroexpand form env)) + form)))) (push (cons "Macroexpand meth-structure-slot-value" '(pprint (multiple-value-bind (pgf pm) @@ -114,7 +114,7 @@ (expand-defmethod 'meth-structure-slot-value pgf pm nil '((object str)) - '(#'(lambda () (slot-value object 'slot))) + '((lambda () (slot-value object 'slot))) nil)))) *tests*) @@ -122,24 +122,24 @@ '(disassemble (meth-structure-slot-value str))) *tests*) (defmethod meth-structure-slot-value ((object str)) - #'(lambda () (slot-value object 'slot))) + (lambda () (slot-value object 'slot))) #|| ; interesting, but long. (produces 100 lines of output) (push (cons "Macroexpand meth-standard-slot-value" '(pprint (expand-all-macros (expand-defmethod-internal 'meth-standard-slot-value nil '((object standard-method)) - '(#'(lambda () (slot-value object 'function))) + '((lambda () (slot-value object 'function))) nil)))) *tests*) (push (cons "Show code for slot-value inside a defmethod for a standard-class. Case (4)." '(disassemble (meth-standard-slot-value m))) *tests*) (defmethod meth-standard-slot-value ((object standard-method)) - #'(lambda () (slot-value object 'function))) + (lambda () (slot-value object 'function))) ||# -(defun do-tests () +(defun run-tests () (dolist (doc+form (reverse *tests*)) (format t "~&~%~A~%" (car doc+form)) (pprint (cdr doc+form))