X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fearly-extensions.lisp;h=a3c401c8c42bb2b58b78cecca0f51b82d63c5020;hb=e76ddf242a31a2acaae3a9cb818fa31500ebbf92;hp=a23f10faf60a63603b8f0610532c777e8d7a4680;hpb=34e8e7fd14989e1c86e9408733b4a73c46dd0a92;p=sbcl.git diff --git a/src/code/early-extensions.lisp b/src/code/early-extensions.lisp index a23f10f..a3c401c 100644 --- a/src/code/early-extensions.lisp +++ b/src/code/early-extensions.lisp @@ -619,8 +619,14 @@ :format-control "invalid function name: ~S" :format-arguments (list name)))) -;;; Given a function name, return the name for the BLOCK which -;;; encloses its body (e.g. in DEFUN, DEFINE-COMPILER-MACRO, or FLET). +;;; Given a function name, return the symbol embedded in it. +;;; +;;; The ordinary use for this operator (and the motivation for the +;;; name of this operator) is to convert from a function name to the +;;; name of the BLOCK which encloses its body. +;;; +;;; Occasionally the operator is useful elsewhere, where the operator +;;; name is less mnemonic. (Maybe it should be changed?) (declaim (ftype (function ((or symbol cons)) symbol) fun-name-block-name)) (defun fun-name-block-name (fun-name) (cond ((symbolp fun-name)