mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-15 17:30:37 -07:00
deftype: use destructure directly, remove unused arg
Removes ENV arg, which were ignored by using destructure directly. Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
parent
c70894f124
commit
a2ceed9cb3
2 changed files with 59 additions and 52 deletions
|
|
@ -80,7 +80,7 @@
|
|||
;; Complex types defined with DEFTYPE.
|
||||
((and (atom type)
|
||||
(setq function (get-sysprop type 'SI::DEFTYPE-DEFINITION)))
|
||||
(expand-typep form object `',(funcall function nil nil) env))
|
||||
(expand-typep form object `',(funcall function nil) env))
|
||||
;;
|
||||
;; No optimizations that take up too much space unless requested.
|
||||
((not (policy-inline-type-checks))
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
;;
|
||||
;; Complex types with arguments.
|
||||
((setf function (get-sysprop first 'SI::DEFTYPE-DEFINITION))
|
||||
(expand-typep form object `',(funcall function rest nil) env))
|
||||
(expand-typep form object `',(funcall function rest) env))
|
||||
(t
|
||||
form))))
|
||||
|
||||
|
|
@ -244,7 +244,7 @@
|
|||
;; Complex types defined with DEFTYPE.
|
||||
((and (atom type)
|
||||
(setq first (get-sysprop type 'SI::DEFTYPE-DEFINITION)))
|
||||
(expand-coerce form value `',(funcall first nil nil) env))
|
||||
(expand-coerce form value `',(funcall first nil) env))
|
||||
;;
|
||||
;; CONS types are not coercible.
|
||||
((and (consp type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue