(setf (slot-value x '%documentation) new-value)
(setf (%fun-doc x) new-value)))
+;;; FIXME: There's already fun-name in code/describe.lisp, but it's
+;;; loaded after PCL, so it cannot be used, because we set
+;;; some documentation at the end of this file.
+(defun fun-name (x)
+ (if (typep x 'generic-function)
+ (sb-pcl:generic-function-name x)
+ (%fun-name x)))
+
(defun real-function-name (name)
;; Resolve the actual name of the function named by NAME
;; e.g. (setf (name-function 'x) #'car)
(eq (car name) 'macro-function)
(cadr name))))
(t
- (sb-impl::fun-name (fdefinition name)))))
+ (fun-name (fdefinition name)))))
(defun set-function-name-documentation (name documentation)
(cond ((not (legal-fun-name-p name))