mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-25 14:01:07 -08:00
FLET/LABEL would not compile as toplevel forms because the value of *CURRENT-FUNCTION* is NIL for toplevel forms
This commit is contained in:
parent
22581ee106
commit
4bd4b5a32a
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue