X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-cltl2%2Fenv.lisp;h=3b90608966c60a71b4a1c31b81923adb7e392c0c;hb=9303b3dc86bdfe5193b403de7419dc5bc8cc79e4;hp=52152d9d2a2dfa607b9378f164ebb06402c91bbc;hpb=ef36750fb245e78d3fc36ff6f37e0a4037323a9e;p=sbcl.git diff --git a/contrib/sb-cltl2/env.lisp b/contrib/sb-cltl2/env.lisp index 52152d9..3b90608 100644 --- a/contrib/sb-cltl2/env.lisp +++ b/contrib/sb-cltl2/env.lisp @@ -155,7 +155,7 @@ nil)) -(declaim (ftype (sfunction (symbol &optional (or null lexenv)) +(declaim (ftype (sfunction ((or symbol cons) &optional (or null lexenv)) (values (member nil :function :macro :special-form) boolean list)) @@ -291,7 +291,7 @@ The second value is true if NAME is bound locally. This is currently always NIL for special variables, although arguably it should be T when there is a lexically apparent binding for the special variable. -The third value is an alist describind the declarations that apply to +The third value is an alist describing the declarations that apply to the function NAME. Standard declaration specifiers that may appear in CARS of the alist include: @@ -389,7 +389,7 @@ the condition types that have been muffled." (let ((policy (sb-c::lexenv-policy env))) (collect ((res)) (dolist (name sb-c::*policy-qualities*) - (res (list name (cdr (assoc name policy))))) + (res (list name (sb-c::policy-quality policy name)))) (loop for (name . nil) in sb-c::*policy-dependent-qualities* do (res (list name (sb-c::policy-quality policy name)))) (res)))) @@ -414,8 +414,8 @@ the condition types that have been muffled." (defun parse-macro (name lambda-list body &optional env) "Process a macro definition of the kind that might appear in a DEFMACRO form into a lambda expression of two variables: a form and an environment. The -lambda edxpression will parse its form argument, binding the variables in -LAMBDA-LIST appropriately, and then excute BODY with those bindings in +lambda expression will parse its form argument, binding the variables in +LAMBDA-LIST appropriately, and then execute BODY with those bindings in effect." (declare (ignore env)) (with-unique-names (whole environment)