Skip to content

Commit

Permalink
keep docstrings from PCL bootstrap around
Browse files Browse the repository at this point in the history
* Keep documentation strings from early generics and methods.
  • Loading branch information
nikodemus committed Aug 27, 2007
1 parent ad3e2ed commit f366632
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions src/pcl/boot.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,7 @@ bootstrapping.
lambda-list-p)
argument-precedence-order
source-location
documentation
&allow-other-keys)
(declare (ignore keys))
(cond ((and existing (early-gf-p existing))
Expand All @@ -2063,18 +2064,21 @@ bootstrapping.
((assoc spec *!generic-function-fixups* :test #'equal)
(if existing
(make-early-gf spec lambda-list lambda-list-p existing
argument-precedence-order source-location)
argument-precedence-order source-location
documentation)
(bug "The function ~S is not already defined." spec)))
(existing
(bug "~S should be on the list ~S."
spec '*!generic-function-fixups*))
(t
(pushnew spec *!early-generic-functions* :test #'equal)
(make-early-gf spec lambda-list lambda-list-p nil
argument-precedence-order source-location))))
argument-precedence-order source-location
documentation))))

(defun make-early-gf (spec &optional lambda-list lambda-list-p
function argument-precedence-order source-location)
function argument-precedence-order source-location
documentation)
(let ((fin (allocate-standard-funcallable-instance
*sgf-wrapper* *sgf-slots-init*)))
(set-funcallable-instance-function
Expand All @@ -2090,10 +2094,10 @@ bootstrapping.
has not been set." fin)))))
(setf (gdefinition spec) fin)
(!bootstrap-set-slot 'standard-generic-function fin 'name spec)
(!bootstrap-set-slot 'standard-generic-function
fin
'source
source-location)
(!bootstrap-set-slot 'standard-generic-function fin
'source source-location)
(!bootstrap-set-slot 'standard-generic-function fin
'%documentation documentation)
(set-fun-name fin spec)
(let ((arg-info (make-arg-info)))
(setf (early-gf-arg-info fin) arg-info)
Expand Down Expand Up @@ -2404,7 +2408,7 @@ bootstrapping.
(setf (getf (getf initargs 'plist) :name)
(make-method-spec gf qualifiers specializers))
(let ((new (make-a-method 'standard-method qualifiers arglist
specializers initargs ())))
specializers initargs (getf initargs :documentation))))
(when existing (remove-method gf existing))
(add-method gf new))))

Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"1.0.9.4"
"1.0.9.5"

0 comments on commit f366632

Please sign in to comment.