mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Remove forward declaration.
This commit is contained in:
parent
22898a0bda
commit
f0cd4d09c0
|
|
@ -103,3 +103,12 @@
|
|||
(declare (inline (setf slot-value)) (ignorable #'(setf slot-value)))
|
||||
(block ,(fun-name-block-name name) ,@forms)))))
|
||||
(sb-c:source-location))))))
|
||||
|
||||
(define-source-context defmethod (name &rest stuff)
|
||||
(let ((arg-pos (position-if #'listp stuff)))
|
||||
(if arg-pos
|
||||
`(defmethod ,name ,@(subseq stuff 0 arg-pos)
|
||||
,(handler-case
|
||||
(nth-value 2 (parse-specialized-lambda-list (elt stuff arg-pos)))
|
||||
(error () "<illegal syntax>")))
|
||||
`(defmethod ,name "<illegal syntax>"))))
|
||||
|
|
|
|||
|
|
@ -46,17 +46,6 @@
|
|||
((not (types-equal-or-intersect otype standard-object)) nil)
|
||||
(t `(%pcl-instance-p object)))))
|
||||
|
||||
(declaim (ftype function sb-pcl::parse-specialized-lambda-list))
|
||||
(define-source-context defmethod (name &rest stuff)
|
||||
(let ((arg-pos (position-if #'listp stuff)))
|
||||
(if arg-pos
|
||||
`(defmethod ,name ,@(subseq stuff 0 arg-pos)
|
||||
,(handler-case
|
||||
(nth-value 2 (sb-pcl::parse-specialized-lambda-list
|
||||
(elt stuff arg-pos)))
|
||||
(error () "<illegal syntax>")))
|
||||
`(defmethod ,name "<illegal syntax>"))))
|
||||
|
||||
(define-load-time-global sb-pcl::*internal-pcl-generalized-fun-name-symbols* nil)
|
||||
|
||||
(defmacro define-internal-pcl-function-name-syntax (name (var) &body body)
|
||||
|
|
|
|||
Loading…
Reference in a new issue