mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 12:33:39 -08:00
defsetf: remove local function SETF-METHOD-WRAPPER
It was called only once and only unnecessarily fragmented the code. Incorporated in DO-DEFSETF.
This commit is contained in:
parent
8105ae6ca7
commit
aaa0b43e99
1 changed files with 4 additions and 7 deletions
|
|
@ -39,17 +39,14 @@
|
|||
`(funcall #'(setf ,name) ,store ,@all))
|
||||
(cons name all)))))
|
||||
|
||||
(defun setf-method-wrapper (name setf-lambda)
|
||||
(declare (si::c-local))
|
||||
#'(lambda (env &rest args)
|
||||
(declare (ignore env))
|
||||
(do-setf-method-expansion name setf-lambda args)))
|
||||
|
||||
(defun do-defsetf (access-fn function)
|
||||
(declare (type-assertions nil))
|
||||
(if (symbolp function)
|
||||
(do-defsetf access-fn #'(lambda (store &rest args) `(,function ,@args ,store)))
|
||||
(do-define-setf-method access-fn (setf-method-wrapper access-fn function))))
|
||||
(do-define-setf-method access-fn
|
||||
#'(lambda (env &rest args)
|
||||
(declare (ignore env))
|
||||
(do-setf-method-expansion access-fn function args)))))
|
||||
|
||||
(defun do-define-setf-method (access-fn function)
|
||||
(declare (type-assertions nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue