FLET/LABEL would not compile as toplevel forms because the value of *CURRENT-FUNCTION* is NIL for toplevel forms

This commit is contained in:
jjgarcia 2005-02-21 11:18:51 +00:00
parent 22581ee106
commit 4bd4b5a32a

View file

@ -226,9 +226,10 @@
(return nil))
((and (fun-p fun) (same-fname-p (fun-name fun) fname))
(incf (fun-ref fun))
(if build-object
(setf (fun-ref-ccb fun) t)
(push fun (fun-referred-funs *current-function*)))
(cond (build-object
(setf (fun-ref-ccb fun) t))
(*current-function*
(push fun (fun-referred-funs *current-function*))))
;; we introduce a variable to hold the funob
(let ((var (fun-var fun)))
(cond (ccb (when build-object